//开机 if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) { String shellCommand = "date " + currTime + "\n busybox hwclock -w\n"; ShellUtils.CommandResult result= ShellUtils.execCommand(shellCommand, true, true); L.e("校时:"+result.result+" "+result.successMsg + " "+result.errorMsg); } Android ShellUtils-Shell相关工具类
我的好多ADB命令都是在APP里面执行的,静默安装,截屏录屏,校时,重启,都可以的
[quote=引用 1 楼 ink_s 的回复:]写个APP监听开机广播,每次开机执行adb 命令就行了
写个APP监听开机广播,每次开机执行adb 命令就行了
80,350
社区成员
91,288
社区内容
加载中
试试用AI创作助手写篇文章吧