Conversation

I didn't realize Android verified apps on boot. I had a silly patch for Twitter (done by directly hexediting one of the overlay APKs on-device, because I'm lazy) and it worked fine until I rebooted, then Twitter disappeared. Or is this some Play Services verification thing?
4
93
I'm kind of surprised because doing a full sig check on every app on boot would probably take quite some time, and Android boots pretty fast these days. Or maybe the file mtime tipped it off?
6
42
Replying to
Play services doesn't do anything like that. You changed the apk so it couldn't use the cached data and sent it through the package manager again. It could skip the signature checks when it's in a verified image. System apps and APEX components can be updated via userdata though.
1
10
Replying to
It would usually be triggered by versionCode being incremented since metadata inside zips and the filesystems would usually all be normalized so the only thing to trigger this is versionCode or a new OS version. I think mtime would trigger it, just not normal outside userdata.
Replying to
Yeah, mtime invalidates the cache in that case since it can't assume that versionCode means it's the same thing It doesn't disallow installing an update with an equal version code and it's common to use it for development. Time would invalidate at least most of those caches.
1
2
Show replies