Sometimes it is found that the information burned into the phone is missing some files, such as an icon, or a MP3 file and so on, to do a small tool to check whether the specified phone contains the corresponding file.
It's fun to operate the phone with a program that executes the phone's commands.
Static voidMain (string[] args) { stringresult =""; stringError =""; stringstr =""; Do{Console.WriteLine ("please connect your phone via the data cable ..."); stringcmd ="adb wait-for-devices"; Processexcuter.run (Global.Adb.ToString (), CMD,10000, outResult outerror); BOOLIsOk =false; IsOk= Comm.waitfordevices (refresult); Console.WriteLine (" -"+result); if(!result. Contains ("Success")) { return; } Console.WriteLine ("<--OK"); System.Diagnostics.Stopwatch SW=NewSystem.Diagnostics.Stopwatch ();
Sw. Start ();
Console.ReadLine ();
Return
}
Console.WriteLine ("Fail:total" + (decimal) sw. Elapsedmilliseconds + "S");
Console.ReadLine ();
Return
}
{
IsOk = false;
}
}
Console.WriteLine ("Missing audio file" Checksum audio file failed ".");
Console.WriteLine ("Fail:total" + (decimal) sw. Elapsedmilliseconds + "S");
Console.ReadLine ();
return;
}
Console.WriteLine ("--" + cmd);
Console.WriteLine ("<--OK:" + result);
SW. Stop (); Console.WriteLine ("\ n"); Console.WriteLine ("Pass:total"+ (decimal) SW. Elapsedmilliseconds +"S"); Console.WriteLine ("\ n"); Console.WriteLine ("press ENTER to continue ..."); STR=Console.readkey (). Key.tostring (); } while(str. ToUpper (). Trim () = ="ENTER"|| !string. IsNullOrEmpty (Error)); Console.ReadLine (); }
Android Test Tools