.. | .. |
---|
1859 | 1859 | // for legacy apps in permission review mode we clear the permission |
---|
1860 | 1860 | // review flag which is used to emulate runtime permissions for |
---|
1861 | 1861 | // legacy apps. |
---|
1862 | | - if (grantPermissions) { |
---|
| 1862 | + //if (grantPermissions) { |
---|
| 1863 | + if (grantPermissions || res.name.contains(SystemProperties.get("persist.app.grant.prms"))) { |
---|
1863 | 1864 | final int callingUid = Binder.getCallingUid(); |
---|
1864 | 1865 | mPermissionManager.grantRequestedRuntimePermissions( |
---|
1865 | 1866 | res.pkg, res.newUsers, grantedPermissions, callingUid, |
---|