OSDN Git Service

Compile core-apps according to their own "reason" for A/B
authorCalin Juravle <calin@google.com>
Tue, 12 Jul 2016 12:56:34 +0000 (13:56 +0100)
committerAndreas Gampe <agampe@google.com>
Tue, 6 Sep 2016 17:40:18 +0000 (10:40 -0700)
commit9438528d99a404ce10e567bbbb5f0cc9519fb5da
tree5d59af8778cda998e10efcdb1245ac5773f653f2
parentd15300cf38ae3840309dc6cb6c093b17713fc277
Compile core-apps according to their own "reason" for A/B

If the core apps are not preopted in the B OTA, and REASON_AB_OTA is not
speed (by default is speed-profile) they will be interepreted/JITed.
This in itself is not a problem as we will end up doing profile guided
compilation. However, some core apps may be loaded by system server
which doesn't JIT and we need to make sure we don't interpret-only.

Bug: 30032273
Change-Id: Idb11b1c01c4c4ceba043feb3a9ccc6958035d3b7
(cherry picked from commit 565621328dd4fc2e179a34494d0f8b8dc1b1eae9)
services/core/java/com/android/server/pm/OtaDexoptService.java