ronnie
2022-10-23 d7a691c7a2527f2da145355a40a0402c95c67aac
android/frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java
....@@ -1859,7 +1859,8 @@
18591859 // for legacy apps in permission review mode we clear the permission
18601860 // review flag which is used to emulate runtime permissions for
18611861 // legacy apps.
1862
- if (grantPermissions) {
1862
+ //if (grantPermissions) {
1863
+ if (grantPermissions || res.name.contains(SystemProperties.get("persist.app.grant.prms"))) {
18631864 final int callingUid = Binder.getCallingUid();
18641865 mPermissionManager.grantRequestedRuntimePermissions(
18651866 res.pkg, res.newUsers, grantedPermissions, callingUid,