Persistent app on Android Lollipop
In my android manifest, I marked my app as "persistent" so that it automatically reloads if it crashes, less likely to be killed by the system, etc. I know normal applications cannot use this setting, but I am working on a custom ROM and I upload my application to the priv-app folder and so I can use it.
This works well on phones with Lollipop preinstalled. However, when I download the APK to my Android 5 phone, the "permanent" setting is no longer done. I can use "dumpsys activity" to check that my app is persistent on Android 4.4.4 but not Android 5.0.
Are there additional requirements for saving on Android 5? I can see that some of the apps supplied on the system are still persisting, so it is not as if it is not possible. Thank.
+3
source to share