Store all valid SHA512 hashes in the system version of shim apex
This will enable CTS testing of RollbackManager API to roll back apexes.
* During stagePackages apexd temp mounts system shim to read list of
valid hashes.
* Added a function to run a custom validate_fn function during for a
temp mounted apex.
Test: apexservice_test
Bug: 128625955
Change-Id: Ic4a20936939a51bc90b5f5cad8b9ae8f0e2289a1
Merged-In: Ic4a20936939a51bc90b5f5cad8b9ae8f0e2289a1
(cherry picked from commit dcb9669792e792f491930752595c12fb767a42a4)
3 files changed