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
NFT profile picture
Replying to
It might be done in the background nowadays? I remember that you had to sit through a 40 minute long “verifying apps” screen after each update on older android versions (lollipop / marshmallow era)
1
3
Replying to and
That's not related. That was because the OS needed to recompile apps not built into the OS images from bytecode to native code after an update. Kotlin/Java is mostly compiled to native code on Android. Each device does it on their own. It's still done, but doesn't hurt UX now.
1
5
Even without A/B updates, ART moved away from using full ahead-of-time compilation to a hybrid system in order to save storage space. When you install an app, the default for AOSP is to start with only the JIT/interpreter. Saves JIT profiles persistently and does background AOT.
1
1
It does a daily background AOT recompilation of apps if the device is both idle and charging at some point. After a few days, a newly installed app has AOT compiled code specialized for the hardware for all the code that you actually use in your user-specific usage of the app.
1
1
Show replies