diff options
author | Terry Wang <tytytyww@google.com> | 2021-04-16 01:03:20 -0700 |
---|---|---|
committer | Terry Wang <tytytyww@google.com> | 2021-04-23 18:20:24 -0700 |
commit | 2f8ab2bd61cf03ea7a142be5a4804b0c19f7cb7f (patch) | |
tree | d9e89f1b7294ca8d0268370b8efafd4a5d7ad37b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | a585030805f9ee81154adf95add1640985e8a31b (diff) |
Register PackageChangedReceiver to AppSearchManagerService.
The Receiver could receive ACTION_PACKAGE_FULLY_REMOVED and
ACTION_PACKAGE_DATA_CLEARED broadcast and clean the package data.
The CL has been reverted back since the receiver tries to write
to /data/system_ce/appSearch before user storage has been unlocked.
And this prevents encryption policy from being setup correctly.
Added check and only handle those actions if used is unlocked.
PatchSet 1 is the old version that has been reverted.
Bug: 145759910
Test: atest --rebuild-module-info CtsAppSearchHostTestCases
Test: atest StagedRollbackTest:com.android.tests.rollback.host.StagedRollbackTest#testRollbackDataPolicy -- --abi x86_64
Change-Id: I41dc0501ac227551ae9bf2c59f57accc66adc85f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions