Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75b10029 authored by Svetoslav Ganov's avatar Svetoslav Ganov Committed by Android (Google) Code Review
Browse files

Merge "Properly show third-party defined permission in platform groups" into nyc-dev

parents e55628d5 eba09588
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -136,9 +136,9 @@ public final class AppPermissionGroup implements Comparable<AppPermissionGroup>
                continue;
            }

            // Don't allow toggle of non platform defined permissions for legacy apps via app ops.
            // Don't allow toggling non-platform permission groups for legacy apps via app ops.
            if (packageInfo.applicationInfo.targetSdkVersion <= Build.VERSION_CODES.LOLLIPOP_MR1
                    && !PLATFORM_PACKAGE_NAME.equals(requestedPermissionInfo.packageName)) {
                    && !PLATFORM_PACKAGE_NAME.equals(groupInfo.packageName)) {
                continue;
            }