public void doBusyboxHelper() throws Exception { if (!isBusyboxInstalled(false)) { AdbUtility.push(getBusybox(false), GlobalConfig.getProperty("deviceworkdir") + "/busybox"); FTShell shell = new FTShell("busyhelper"); shell.run(true); } }
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); } }