diff options
author | Philip P. Moltmann <moltmann@google.com> | 2019-02-11 16:29:19 -0800 |
---|---|---|
committer | Philip P. Moltmann <moltmann@google.com> | 2019-02-15 08:57:16 -0800 |
commit | 3e4961757b64622bded4cecb1605c57cb8c556c0 (patch) | |
tree | ada2b467aa31a81377caf9a3bc9dd52825ba2979 /test-mock | |
parent | 4845667a817e10276ba2877f006278866abceaa4 (diff) |
Expose permission flag APIs for tests
tests need to make sure the flags are set correctly.
Bug: 116738135
Test: atest CtsBackupTestCases:android.backup.cts.PermissionTest#testRestorePermReviewed
Change-Id: Ia1000de3594e910c3345e205679bee37be898d17
Diffstat (limited to 'test-mock')
-rw-r--r-- | test-mock/api/test-current.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test-mock/api/test-current.txt b/test-mock/api/test-current.txt index ab10800ac534..0cb8f22d8070 100644 --- a/test-mock/api/test-current.txt +++ b/test-mock/api/test-current.txt @@ -9,10 +9,12 @@ package android.test.mock { method public java.util.List<android.content.pm.PackageInfo> getInstalledPackagesAsUser(int, int); method public String[] getNamesForUids(int[]); method public String getPermissionControllerPackageName(); + method public int getPermissionFlags(String, String, android.os.UserHandle); method @NonNull public String getServicesSystemSharedLibraryPackageName(); method @NonNull public String getSharedSystemSharedLibraryPackageName(); method public void grantRuntimePermission(String, String, android.os.UserHandle); method public void revokeRuntimePermission(String, String, android.os.UserHandle); + method public void updatePermissionFlags(String, String, int, int, android.os.UserHandle); } } |