Fix app ops details not displaying permissions under certain conditions.
If there's a permission that is not granted, the loop is aborted instead of just skipping said permission. Change-Id: Icca567ebdd818f40ad6619f258c77590074d1deb
This commit is contained in:
@@ -525,7 +525,7 @@ public class AppOpsState {
|
|||||||
& PackageInfo.REQUESTED_PERMISSION_GRANTED) == 0) {
|
& PackageInfo.REQUESTED_PERMISSION_GRANTED) == 0) {
|
||||||
if (DEBUG) Log.d(TAG, "Pkg " + appInfo.packageName + " perm "
|
if (DEBUG) Log.d(TAG, "Pkg " + appInfo.packageName + " perm "
|
||||||
+ appInfo.requestedPermissions[j] + " not granted; skipping");
|
+ appInfo.requestedPermissions[j] + " not granted; skipping");
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (DEBUG) Log.d(TAG, "Pkg " + appInfo.packageName + ": requested perm "
|
if (DEBUG) Log.d(TAG, "Pkg " + appInfo.packageName + ": requested perm "
|
||||||
|
Reference in New Issue
Block a user