diff options
| author | 2023-02-13 16:30:24 +0000 | |
|---|---|---|
| committer | 2023-02-23 11:39:03 +0000 | |
| commit | b49caa8541ec21c7a9d05aef890729088f10ec22 (patch) | |
| tree | b778c41f296684db6bb20303893a4fa898fa1d96 /cmds/bootanimation/BootAnimationUtil.cpp | |
| parent | ca9e2463e906508f044fc837b65567a2bf4b5b3f (diff) | |
Move initZipPathValidator() into ActivityThread
This CL is just an internal cherry-pick of aosp/2428074 because of automerger conflicts.
initZipPathValidator() relies on CompatChanges#isChangeEnabled() to work
as intended, however, the current place, RuntimeInit#commonInit(), has
a default no-op implementation of the CompatChanges callback. This
change moves initZipPathValidator() into
ActivityThread#handleBindApplication right after the CompatChanges
callback is set, meaning the compat check starts working as intended.
This change also removes the unit tests and converts them into CTS.
Bug: 268138388
Bug: 268137846
Test: atest CtsSecurityHostTestCases:android.security.cts.host.ZipPathValidatorTest
Change-Id: I539465d818e78a7f1dd4dddbe345331836e09caf
Diffstat (limited to 'cmds/bootanimation/BootAnimationUtil.cpp')
0 files changed, 0 insertions, 0 deletions