I have seen some posts but not in a while. I have 91 apps that need to be optimizing after each update. It takes like an hour for 91 apps. Does anyone else have this???? Is there something i can do to help?
Optimizing apps.....ya ya ya i know..........again
My apps also need optimising after each update. However, it takes about 5 minutes maximum and even when running it doesn't affect anything. It suggests things may run skolwly but I never notice. Pixel 8 about 80 apps. What's happening exactly?
I have 3 profiles, its optimizing 120 apps, takes about an hour too (without me logging in to those 2 extra profiles after reboot).
Using my mobile every now and then meanwhile.
I would also very much like to know what's causing setups with not so many apps to optimize over an hour compared to some setups running 200 or many apps and optimizing only 10 minutes or so. Can only imagine it's how some apps are built/designed. Would like details if someone knows.
I just realised its optimizing twice.
One at BFU after update is installers and phone is rebooted and second time AFU.
I suppose its normal?
The BFU takes about 10mins, and AFU about 1 hour.
Pixel 7 with 95 apps takes about 15 minutes to optimize.
dirksche same here on pixel 8a .... Round about 15 minutes for 102 Apps. Thats okay for me
What is actually being optimized when the apps are optimized?
AlphaElwedritsch What is actually being optimized when the apps are optimized?
I believe each app is being compiled from a mixture of Java Byte Code and sometimes native code to a native-code executable. Doing this "ahead of time" (before app execution) is called "AOT". It generally improves the performance of starting the app, which to some extent balances the exec-spawning (non-Zygote) approach that GrapheneOS uses to improve security (e.g., enabling much more ASLR). I think it may also be believed to improve security by avoiding holes in the JIT.
I believe you because you're not the first one mention this issue. However 6 pro from time it was the newest Pixel until now, never had a waiting time more then just a cpl minutes. Technoob here so a queation about why you mention about the amount of apps, the updates are GrapheneOS and not something to do with the apps you did instal manualy? If I'm wrong, then one (or more apps) might be the problem because I'm not experiance the same. Around 55 apps here.
I have a P7 set to reboot after 4 hours of inactivity, which generally means it reboots at least once every 24 hours. The last reboot for release 2024110700 happened during the day and during BFU it spent less than 10 minutes optimizing apps, but AFU it spent over an hour optimizing over just over 250 apps.
Why two optimizations?
During the hour+ long AFU optimization I was unable to use the camera to shoot video as the video was very jittery.
Is this just something we have to live with or is there a way to delay/pause the AFU optimization?
Keynote at Google I/O years ago, they said this would no longer be necassary :(
freezet and it isn't... for Stock Android where everything is compiled at runtime. GrapheneOS doesn't as part of the exploit protection.
Why two optimizations? Because users want to get back in as soon as possible after an update rather than having to wait until optimization is done.
- Edited
Ammako Why two optimizations? Because users want to get back in as soon as possible after an update rather than having to wait until optimization is done.
This really makes me wonder if the second "full speed optimization" really is worth the wait compared to the end result of the first "speed-profile compilation".
And would doing the compilation for every single update twice introduce extra wear of the storage, too?
Why do you other how long the second optimization takes?
That one is set to use little resources on purpose, so that you can use your phone normally