Exemplo n.º 1
0
 public void doBusyboxHelper() throws Exception {
   if (!isBusyboxInstalled(false)) {
     AdbUtility.push(getBusybox(false), GlobalConfig.getProperty("deviceworkdir") + "/busybox");
     FTShell shell = new FTShell("busyhelper");
     shell.run(true);
   }
 }
Exemplo n.º 2
0
 public void reboot() throws Exception {
   if (hasRoot()) {
     FTShell s = new FTShell("reboot");
     s.runRoot(false);
   } else {
     ProcessBuilderWrapper command =
         new ProcessBuilderWrapper(new String[] {OS.getAdbPath(), "reboot"}, false);
   }
 }