Commits

Anonymous committed a259c36 Draft

Directly use toolbox to copy over files

  • Participants
  • Parent commits 598a24a

Comments (0)

Files changed (1)

File src/com/jrummy/busybox/installer/util/BinaryInstaller.java

 		CMDProcessor.SH su = new CMDProcessor().su;
 		CMDProcessor.CommandResult result;
 
-		result = su.runWaitFor("dd if=\"" + path + "\" of=\"" + dest + "\"");
+		result = su.runWaitFor("toolbox dd if=\"" + path + "\" of=\"" + dest + "\"");
 		if (result.success()) {
 			return true;
 		}
 
-		result = su.runWaitFor("cat \"" + path + "\" > \"" + dest + "\"");
+		result = su.runWaitFor("toolbox cat \"" + path + "\" > \"" + dest + "\"");
 		if (result.success()) {
 			return true;
 		}
 
-		result = su.runWaitFor("cp \"" + path + "\" \"" + dest + "\"");
+		result = su.runWaitFor("toolbox cp \"" + path + "\" \"" + dest + "\"");
 		if (result.success()) {
 			return true;
 		}