Flip ENABLE_DYNAMIC_PERMISSIONS, attempt #7.

Ib0021d3fd34294bb7497c8827e7ee99d4ac64d73 fixes the app compatibility
issue(b/159995598).

Bug: 115619667
Test: atest ExternalStorageHostTest#testGrantUriPermission
Test: atest ExternalStorageHostTest#testGrantUriPermission29
Merged-In: I413ccf8c31de6525a737c8336a904456fdbeb9e1
Change-Id: I413ccf8c31de6525a737c8336a904456fdbeb9e1
(cherry picked from commit 8bf78650b2)
This commit is contained in:
Sahana Rao
2020-09-30 08:49:53 +00:00
parent 6154a49b28
commit 3b6145587f

View File

@@ -115,7 +115,7 @@ public class UriGrantsManagerService extends IUriGrantsManager.Stub {
private static final String TAG = "UriGrantsManagerService";
// Maximum number of persisted Uri grants a package is allowed
private static final int MAX_PERSISTED_URI_GRANTS = 512;
private static final boolean ENABLE_DYNAMIC_PERMISSIONS = false;
private static final boolean ENABLE_DYNAMIC_PERMISSIONS = true;
private final Object mLock = new Object();
private final H mH;