summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Billy Lau <billylau@google.com> 2022-11-15 11:14:43 -0600
committer Billy Lau <billylau@google.com> 2022-11-16 12:55:48 -0600
commit0f55c59324fb100f0957b890cc9aba8e23e3a5b9 (patch)
tree7818aa5b36bf9c49f779493b7e9564e3e2ffe1bb /libs/androidfw/StringPool.cpp
parent9ae00a02adeafa3fff8316d1bf5d97973d76cb33 (diff)
Revamp BinaryTransparencyService.
BinaryTransparencyService: - change default binary measurement method from SHA256 digest to APK content digest. This allows for more performant measurements. - got rid of in-memory caches of digest results because: a) larger scope: more binaries will be covered (in the magnitude of hundreds); b) the digest length using APK content digest might be longer than 256 bits: e.g. CHUNKED_SHA512 which is 512 bits; c) the computation of these new digests are not as computationally intensive that it causes noticible lags even when commands are invoked repeatedly in adb shell. - changed scheduled job to be scheduled periodically (once in a 24 hour period) instead of a one-off job. - make use of method calls to BackgroundInstallControlService (BICS) to obtain list of newly installed mobile bundled apps (MBAs). BinaryTransparencyServiceTest: - modified the return type for `getApexInfo` to receive a List instead of Map. Bug: 245944666 Test: atest BinaryTransparencyServiceTest. Also, adb shell cmd jobscheduler run android <job-id>. <job-id> can be found in debug printouts with TransparencyService tag. Change-Id: Ie305e71c514f4fb65b9e640301093ec83f01f718
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions