java - Cp command android from assets folder -


I want to know if it is possible that the "F" / bin partition (explicitly with root access) / P>

  utility.exac ("cp & lt; file: /// and android / asset / my_file" / system / bin ");  

Is this code valid for copying system / bin from properties too?

Here's a clear example, suppose the root gets:

  asset manager assetManager = context.getAssets (); InputStream = Faucet; OutputStream OS = Faucet; Try {is = assetManager.open ("my_file"); OS = New FileOutputStream ("/ system / bin / my_file"); Byte [] buffer = new byte [1024]; Integer length; // When copying the contents of the file into byte ((length = is read.buffer) gt; 0) {os.write (buffer, 0, length); }} Hold (exception e) {// dealing with the exception, log or something} end {if (is! = Null) try {is.close (); } Hold (IOException E) {} If (os! = Tap) try {os.close (); } Hold (IOException e) {}}  

Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Algorithm negotiation fail SSH in Jenkins -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -