OSDN Git Service

[framework] Prepare profile for app code paths
authorCalin Juravle <calin@google.com>
Thu, 18 Jan 2018 23:17:29 +0000 (15:17 -0800)
committerCalin Juravle <calin@google.com>
Wed, 24 Jan 2018 01:19:24 +0000 (17:19 -0800)
commit3621be71d0fe8a349ca468aca99a53a17f6575b3
tree434d2de83aadc3056bc2ff2e1ba50ea7411e330c
parentf74e56af8c1ea49a87a73cdbc70a6b6ec540e22f
[framework] Prepare profile for app code paths

This CL is an intermediate step to enable the use of profiles shipped in
the dex metadata files.

The preparation consist of:
- creating the current profile
- merging the profile from the dex metadata file (if present) into the
reference profile

and happens:
- after the application data directory is created, to capture system
apps.
- post-install (right before we dexopt), to capture any new code paths

Test: manual (install apps and splits, take OTA)
Bug: 30934496

Change-Id: Id36474ab629ad3ffafd24381d30e3d88ac02d576
core/java/android/content/pm/dex/ArtManager.java
services/core/java/com/android/server/pm/Installer.java
services/core/java/com/android/server/pm/PackageManagerService.java
services/core/java/com/android/server/pm/dex/ArtManagerService.java