OSDN Git Service

[RFC] Special case system apps for profile optimizations
authorCalin Juravle <calin@google.com>
Tue, 12 Jul 2016 14:56:41 +0000 (15:56 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 14 Jul 2016 08:20:29 +0000 (08:20 +0000)
commit0bd776207999ccba17e5adb163710bd7b16ac907
tree87dc65e3ac52966e0af91ea739115bd662171ab9
parent565621328dd4fc2e179a34494d0f8b8dc1b1eae9
[RFC] Special case system apps for profile optimizations

If the OTA updates a system app which was previously preopted to a non-
preopted state the app might end up being verified at runtime. That's
because by default the apps are verify-profile but for preopted apps
there's no profile.

Do a hacky check to ensure that if we have no profiles (a reasonable
indication that before the OTA the app was preopted) system apps get
compiled with a non-profile filter (by default interpret-only).

Bug: 30032273
Test: Andreas "has verified that Calin's change to A/B works as expected
and promotes things like SystemUI to speed. From my side, that's
ready to be merged"

Change-Id: I7a052a8ea76cab7f649dc993237ea05534d6c4b9
core/java/android/os/Environment.java
services/core/java/com/android/server/pm/PackageManagerService.java