I now it is time the adb chmod -r 777 equipment,
But every time to restart the machine to perform once, can't do products
CodePudding user response:
Write an APP on radio monitoring, boot the adb command line at a time
CodePudding user response:
//boot
If (intent. GetAction (). The equals (" android. Intent. Action. BOOT_COMPLETED "))
{
CurrTime String shellCommand="date" + + "\ n busybox hwclock - w \ n";
ShellUtils.Com mandResult result=ShellUtils. ExecCommand (shellCommand, true, true);
L.e (" school: "+ result. The result +" "+ result. SuccessMsg +" "+ result. The errorMsg);
}
Android ShellUtils - Shell related tools
CodePudding user response:
[q
ink_s uote=reference 2 floor response:]//boot
If (intent. GetAction (). The equals (" android. Intent. Action. BOOT_COMPLETED "))
{
CurrTime String shellCommand="date" + + "\ n busybox hwclock - w \ n";
ShellUtils.Com mandResult result=ShellUtils. ExecCommand (shellCommand, true, true);
L.e (" school: "+ result. The result +" "+ result. SuccessMsg +" "+ result. The errorMsg);
}
Android ShellUtils - Shell related tools