The default permissions of Android-Framework third-party applications do not pop up.

Code location: frameworks/base/services/core/java/com/android/server/pm/PackageManagerService.java

@@ -1853,10 +1853,10 @@ public class PackageManagerService extends IPackageManager.Stub
                         mPermissionCallback);
             }
 			
-			final String packageName = res.pkg.applicationInfo.packageName;
-			if ("com.tencent.tmgp.sgame".equals(packageName)) {
-				grantPermissions = true;
-			}
+	    //final String packageName = res.pkg.applicationInfo.packageName;
+	    //if ("com.tencent.tmgp.sgame".equals(packageName)) {
+	    		grantPermissions = true;
+	    //}
 
             // Now that we successfully installed the package, grant runtime
             // permissions if requested before broadcasting the install. Also

Guess you like

Origin blog.csdn.net/banzhuantuqiang/article/details/133994997