diff options
author | Christopher Tate <ctate@google.com> | 2020-06-12 13:42:11 -0700 |
---|---|---|
committer | Chris Tate <ctate@android.com> | 2020-06-26 17:11:31 +0000 |
commit | bccdd48eb41ff305182cb57b681d27dcfdb2f649 (patch) | |
tree | 59af8c77b7c5fcab53c26c0214a85f4e01298c80 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | f8fe1d9766b0f1f380d1887bdb6b1c6ca57374c8 (diff) |
Whitelist package verifiers for bg operation
When spinning up the package verifier at install time, whitelist it for
quiet background operation in a way that is robust to system load &
broadcast queue latency spikes.
Intent-filter (autoVerify) invocation was already being whitelisted in
this way. This CL adds the latency-insensitive whitelisting to the
PACKAGE_NEEDS_VERIFICATION and PACKAGE_NEEDS_INTEGRITY_VERIFICATION
invocations as well.
Also fix an underlying bug exposed in the course of testing this change:
temp whitelist manipulation during early boot wasn't guarding against
the system's partially-online situation in that phase, so would NPE the
system_server process. Fixed.
Bug: 156670156
Test: install apps, observe whitelist logging at broadcast dispatch
Test: atest CtsStagedInstallHostTestCases:com.android.tests.stagedinstall.host.StagedInstallTest#testInstallStagedApexAndApk
Change-Id: I1947bbfeac25fa04346be4d3970da032c3e2b022
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions