Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23f9e00d authored by Song Chun Fan's avatar Song Chun Fan
Browse files

[ADI][34/N] enable a verification policy delegate

The policy delegate is an app that is specified by the system at build
time that can change the developer verification policy on behalf of the
developer verifier. It is a fail-safe mechanism provided for situations
where the verifier cannot function properly.

This CL updates the permission check around getting and setting developer
verification policy because these two methods are now accessible by the
policy delegate app which may not have the developer verification
permission.

The CL also provides an API for the verifier to query the package name
of the policy delegate app.

API-Coverage-Bug: 420966373

BUG: 360129657
FLAG: android.content.pm.verification_service
Test: atest android.content.pm.cts.PackageInfoTest
Test: atest CtsRootDeveloperVerificationPrivInstallerTarget36TestCases CtsRootDeveloperVerificationInstallerTarget36TestCases CtsRootDeveloperVerificationPrivInstallerTarget35TestCases CtsRootDeveloperVerificationInstallerTarget35TestCases CtsRootDeveloperVerificationVerifierTestCases

Change-Id: I58ef05a85abd9f081f99de35775f596e289e3652
parent ef040c1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment