I want my application to become a software application. I managed to do this on the phone using root and busybox. any idea how to achieve this without busybox?
Runtime.getRuntime().exec(new String[] { "su", "-c", "mount -o rw,remount -t yaffs2 /system; " + "cp `ls /data/app/xxx*` /system/app; " + "rm /data/app/xxx*; " + "mount -o ro,remount -t yaffs2 /system; " + "reboot" });
Other than that, I also ran into another problem. If I switch my application from the system application> user application and reboot. The Android system still recognizes my application as a system application, although the application is already in / data / app.
I use the following code to check if my application is a system application:
android.content.pm.ApplicationInfo.FLAG_SYSTEM
source share