I am using a android board with a custom ROM based on Android 4.4.2. I was trying to override a /system/priv-app/ app by installing an updated version in normal partition.
While testing I realised that the override only stays till reboot.So I started digging into AOSP source which is when I came across the call to disableSystemPackageLPw
which in turn calls writeLPr
.
If writeLPr
goes through I expect to see my package listed in the "/data/system/packages.xml" file. However that is not the case here and hence I suspect that to be the root cause.
It would be great to know view on expected usage of packages.xml from the community users to confirm the same.
/data/app
on update. Settings might be cached for some time. Try clearing app's data after update. Or force writepm
's cached data:dumpsys package write
.