android system-app update restoring to default after reboot
I've written a system app which is included in my system image. When I run update with the same package name and certificate, the system image is read-only so it will generate a new app in the data image with inherited system permissions. Everything works fine, but after reboot, the update is gone. There is just the default application installed, without a clue there was an update installed before.
Other settings are not affected.
Do I miss something? Do I have to set a property in the manifest of the update, or is there a problem with my platform and the application works just fine?
I've got the solution. I had to increment the versionCode, the packagemanager skips application with smaller or same versioncCode like the system app.