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)
committerAndreas Gampe <agampe@google.com>
Tue, 6 Sep 2016 17:41:04 +0000 (10:41 -0700)
commit08313b0d952b6d5fa6e7ed7e3a5e4a7154a7d2c9
tree767f3203d62ea3e7e9ecd3cbca36d132e88c4ce0
parent9438528d99a404ce10e567bbbb5f0cc9519fb5da
[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
(cherry picked from commit 0bd776207999ccba17e5adb163710bd7b16ac907)
core/java/android/os/Environment.java
services/core/java/com/android/server/pm/PackageManagerService.java