Devv Active Member Licensed User Longtime User Aug 2, 2014 #1 B4X: Process process = Runtime.getRuntime().exec("su"); DataOutputStream out = new DataOutputStream(process.getOutputStream()); out.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system\n"); out.writeBytes("cat /sdcard/myApp.adk > /system/app/myApp.adk\n"); out.writeBytes("mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system\n"); out.writeBytes("exit\n"); out.flush(); process.waitFor(); source http://stackoverflow.com/questions/19286046/copy-my-app-apk-to-system-app-using-code is doing this possible using b4a not java ?
B4X: Process process = Runtime.getRuntime().exec("su"); DataOutputStream out = new DataOutputStream(process.getOutputStream()); out.writeBytes("mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system\n"); out.writeBytes("cat /sdcard/myApp.adk > /system/app/myApp.adk\n"); out.writeBytes("mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system\n"); out.writeBytes("exit\n"); out.flush(); process.waitFor(); source http://stackoverflow.com/questions/19286046/copy-my-app-apk-to-system-app-using-code is doing this possible using b4a not java ?
NJDude Expert Licensed User Longtime User Aug 2, 2014 #2 You will need a rooted device for that to work. Upvote 0
Devv Active Member Licensed User Longtime User Aug 2, 2014 #3 yes my device is rooted what is the b4a code for doing this ? Upvote 0