3 ms·
> Android apps are uploaded as bytecode, which is then AOT compiled by Google’s cloud service for the different architectures, from what I understand. No, Andr
by iggldiggl 2y ago
> Android apps are uploaded as bytecode, which is then AOT compiled by Google’s cloud service for the different architectures, from what I understand.
No, Android apps ship the original bytecode which then gets compiled (if at all) on the local device. Though that doesn't change the result re compatibility.
However – a surprising number of apps do ship native code, too. Of course especially games, but also any other media-related app (video players, music players, photo editors, even my e-book reading app) and miscellaneous other apps, too. There, only the original app developer can recompile the native code to a new CPU architecture.
- coder543 2y ago> No, Android apps ship the original bytecode which then gets compiled (if at all) on the local device. Google Play Cloud Profiles is what I was thinking of, but I see it only starts “working” a few days after the app starts being distributed. And maybe this is merely a default PGO profile, and not a form of AOT in the cloud. The document isn’t clear to me. https://developer.android.com/topic/performance/baselineprofiles/overview#cloud-profiles https://developer.android.com/topic/performance/baselineprof...
- iggldiggl 2y agoYup, it's just a PGO profile (alternatively, developers can also create their own profile and ship that for their app).