I want to install .apk silently in background by BusyBox command. I`ve seen some similar questions like THIS, but I still cant get working my code properly...
I have
maybe this code will help you
Process p = null; try { p = Runtime.getRuntime().exec("su"); DataOutputStream outs=new DataOutputStream(p.getOutputStream()); String cmd="pm install /mnt/sdcard/app.apk"; outs.writeBytes(cmd+"\n"); } catch (IOException e) { e.printStackTrace(); }