Self-updating Android system application with root access

I created my custom ROM from aosp. I also included my application by calling it myCustomInstaller.apk (1.0) in a custom ROM when building. The application is basically a Google Play store. An application has system privileges and can install or uninstall applications silently.

I can install, update or remove any other applications. The problem I encountered is that when I upgrade myCustomInstaller.apk itself to 2.0, the application is also silently installed, I can see the latest version installed in the installed applications, but when I restart the phone, myCustomInstaller application will return to the original version .

I really don’t know how to proceed, how is the Google PlayStore updated and another application installed? Do I need any other permissions to keep the updated version of myCustomInstaller app?

I use this for silent installation, yes, I made a modified code to update and remove https://code.google.com/p/auto-update-apk-client/

+3
source share
1 answer

Are you sure you are increasing the android: versionCode in the manifest? If not, the updated version, which will only be stored in the / data / directory, will be deleted at boot.

+5
source

All Articles