diff options
author | Jeff Sharkey <jsharkey@android.com> | 2016-01-13 18:52:55 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2016-01-15 16:01:17 -0700 |
commit | 0e62384ccbd00e9f78851929ca88b919679ee32e (patch) | |
tree | db18d157e9b10faf06cd2239243446c993b5c61f /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | ab3bdf09841eedded9a29569b59ccabeb577abb6 (diff) |
Prepare app data only when storage is available.
Before this change, scanning a package aggressively tried checking
to ensure that private app data was prepared. However, in an FBE
world we may not have access to that data at scan time. So this
change shifts the preparing of private app data until later: it
prepares DE storage when a user is started, and CE storage when a
user is unlocked. Wire ourselves into the user lifecycle so we can
prepare storage at both user start and unlock.
When DE/CE storage becomes available, this change reconciles any
found packages against known installed apps, and deletes any orphaned
data directories.
We now need to store the last-restorecon hash in an xattr on a
per-user directory basis, since we can't restorecon CE storage until
it's unlocked, or adopted storage until it's mounted. Remove a
bunch of used logic for loading dynamic SELinux policy at runtime;
our policy always comes from the system image.
Bug: 26466827, 26544104
Change-Id: I8d0a4ef862c35f4e4ef5c7f20d3bb8f12ba3fd4b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions