Skip Navigation

Android 16 has a new trick to speed up app installation

www.androidauthority.com

Android 16 has a new trick to speed up app installation

  • Android 16 now supports cloud compilation, a new feature that could speed up new app installs.
  • The goal of cloud compilation is to avoid running the dex2oat tool during app installations by offloading compilation to the cloud.
  • Dex2oat takes an APK file and generates app artifact files that the Android Runtime loads. Depending on the device and the amount of code to compile, this could take some time.

It looks like the ART (Android Runtime) JIT is playing an increasingly less important role with time.

Friendly reminder that the cloud is just someone else's computer.

18 comments
  • Without actually reading anything other than the title of the article, which I should prolly do, I'm gonna make this comment anyway.

    What apps are you installing that take more than 30 secs?

    • I quite regularly see installation stall on older and cheaper phones. One single app install is fine, but when five or ten apps update all at once the phone becomes sluggish for minutes.

      With Android consisting mostly of what, four instruction sets, this problem should've been prevented years ago in my opinion. Precompile for the most common platforms, leave the current slow processes for instruction sets nobody uses in practice, like MIPS and RISC-V.

      • Well that's a issue, for sure.

        I absolutely NEVER allow Google Play to just update my apps when it wants to. That's insane. That would be constantly updating all day everyday. There is no need for daily software updates. There is no need for weekly updates. It's borderline ridiculous.

        One can argue "but muh security" all they like and go right ahead and do it if you need that validation in your life but when 10 apps are in que for an update 24/7 around the clock it's almost suspicious.

    • You should've read the article. In an ideal world every device phone gets this process done in seconds. But, we don't and not everyone can afford to buy a decently powerful enough phone.

      For those people, downloading the optimized odex files could be faster than creating them on device. Thanks to availability of super fast internet.

      • Underpowered device or not, one thing that remains a constant is they will download a simple app very quickly, as long as the internet is there for it to do so.

        So it really has nothing to do with the device but rather the internet speed.

  • It's an interesting trick because it makes me ponder: why would google do this?

    Pre-compiling on the server means spending compute resources that are not free on something that was free before. In other words: cost. Why would google incur a cost on something that is non-user marketable or even perceptible? Were there really that many users complaining about how long it took to install x random app? Would google do this out of the kindness of their hearts?

    So here's my best theory of why they're doing this: **Automatic installing of apps / ads on the background. **

    here's why I think that:

    • Google has a history of trying this in-between state of app/website with "instant apps". Instant apps were never really "instant" though and they never really took off.
    • There are already several full screen ads for dopaming-hacking games that are partially interactive. It wouldn't take much to jump into a "pass the first level to skip the ad" kind of mechanic instead of "watch 20 seconds of this video to skip the ad" The limiting factor is how quickly does the ad install on your device.
    • Xiaomi and other Chinese companies have demonstrated how lucrative auto-installed crapware is. If one assumes that the concept generates revenue, imagine the following pitch:
    • For $20 we'll highlight your app on the play store
    • For $200 we'll show 20 full screen ads on 1000 users
    • For $2000 we'll pre-install the app on 1000 users from May 1st to June 1st
18 comments