Status Update
Comments
al...@truecaller.com <al...@truecaller.com> #3
Will the baseline profile be used if compilation is disabled?
cc...@google.com <cc...@google.com> #4
No. If compilation is disabled, the app will generally stay fully uncompiled, though you can separately force install the baseline profile outside the test:
adb shell cmd package compile --reset <packagename> # clear any existing compilation. note, this is currently unavailable on unrooted builds, you can instead uninstall/reinstall the app to reset compilation
adb shell am broadcast -a androidx.profileinstaller.action.INSTALL_PROFILE <packagename>/androidx.profileinstaller.ProfileInstallerReceiver
adb shell cmd package compile -f -m <packagename> speed-profile
There's also documentation for another variant here:
al...@truecaller.com <al...@truecaller.com> #6
Can't you just add a flag to keep the 1.1.0-rc01 behaviour? Looks like it is easier to stick with this version instead of executing adb commands manually.
al...@truecaller.com <al...@truecaller.com> #7
App reinstall is meaningless to us, unfortunately, because we cannot restore user state quickly
Description
Currently it is possible to disable reinstalling AND compilation. Could you please add a flag to disable reinstalling but keep the compilation?