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

Commit b80346fb authored by Rajeev Kumar's avatar Rajeev Kumar Committed by Android (Google) Code Review
Browse files

Merge "Add PM checker for AppOpsManager"

parents 2d3ffe08 4968d79e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -10291,6 +10291,9 @@ public class AppOpsManager {

        // system alert window is disable on low ram phones starting from Q
        final PackageManager pm = context.getPackageManager();
        if (null == pm) {
            return AppOpsManager.MODE_DEFAULT;
        }
        // TVs are constantly plugged in and has less concern for memory/power
        if (ActivityManager.isLowRamDeviceStatic()
                && !pm.hasSystemFeature(PackageManager.FEATURE_LEANBACK, 0)) {