I have rooted my device and I have installed the bizbox. Now I have to go through my application / data folder files Want to use My application has super user permissions but still I can not access the file. Can anyone do this (without or without busybox)?
Please help me
code:
if ((new file ("/ data / bin / su") exists) ) SU_COMMAND = "/ data / bin / su"; And SU_COMMAND = "su"; String command1 = "busybox mount / sdcard \ n"; String command2 = "busybox mount / system \ n"; String command = "busybox cp / data / data / com.my test.app / database / / mnt / sdcard / test / \ n"; Process process = (new process builder (as)). Start (); Runtime RT = runtime.gettime (); Java.io.OutputStream outputstream = process.getOutputStream (); Outputstream.write (command1.getBytes ()); Outputstream.flush ();
Try it out:
Private bullion runs ( Boolean run AASR, string CMD) {string shell = run AASRUT? "Su": "sh"; Int exitcode = 255; Process P; Try {p = Runtime.JetTutime (). Exec (shell); DataOutputStream OS = New DataOutputStream (PJotOutputStream ()); O.Liteibites (CMD + "\ n"); Os.flush (); Os.writeBytes ("Exit \ n"); Os.flush (); ExitCode = p.waitFor (); } Hold (IOException e1) {log. ("Exception", e1.toString ()); } Grip (Interrupted ejection) {Log.e ("Exception", e.ostustring ()); } Return (exitcode! = 255); } Public Boolean Copyfile () {Return Run (true, "Busybox CP / Data / Data / Com. IMAT.AP / Database / / Mnt / SDCard / Testup /"); }
Comments
Post a Comment