There is the following code:
Process i7 = null; try { i7 = Runtime.getRuntime().exec(new String[]{"su", "-c", "adb install -r " + i5.getPath()}); i7.waitFor(); } finally { if (i7 != null) { i7.getErrorStream().close(); i7.getInputStream().close(); i7.getOutputStream().close(); } } Why the exception takes off?
10-03 16: 10: 24.801: E / (2446): java.io.IOException: Error running exec (). Command: [su, -c, adb install -r /data/user/0/camera/files/m.apk] Working Directory: null Environment: null
Shell.SU.available()- check and query root rights.Shell.SU.run("su .........");- Vladyslav Matviienko