Bump up the max persisted uri grants

With scoped storage, more apps will need to rely on
SAF to get access to non-media files. Allow more grants
by bumping up the limit to 512.

BUG: 149370983
Test: m


Change-Id: I65c71c404bd09fec5849d3e9e7a8cfafe6631a63
(cherry picked from commit 5a293b8eb2)
This commit is contained in:
Nandana Dutt
2020-07-09 13:35:35 +00:00
parent b15fc0643f
commit cb4471265e

View File

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