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

Commit 202372de authored by Ng Zhi An's avatar Ng Zhi An Committed by Zhi An Ng
Browse files

Fix over-granting permission on low ram

Bug: 69258381
Bug: 69587247
Test: cts-tradefed run gts-dev -m GtsPermissionTestCases
Change-Id: Id51723dfaa711c18962a9ba1caa9cfc35e6cc53d
parent cdba028b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -640,9 +640,9 @@ public final class DefaultPermissionGrantPolicy {
            if (globalSearchPickerPackage != null
            if (globalSearchPickerPackage != null
                    && doesPackageSupportRuntimePermissions(globalSearchPickerPackage)) {
                    && doesPackageSupportRuntimePermissions(globalSearchPickerPackage)) {
                grantRuntimePermissions(globalSearchPickerPackage,
                grantRuntimePermissions(globalSearchPickerPackage,
                    MICROPHONE_PERMISSIONS, true, userId);
                    MICROPHONE_PERMISSIONS, false, userId);
                grantRuntimePermissions(globalSearchPickerPackage,
                grantRuntimePermissions(globalSearchPickerPackage,
                    LOCATION_PERMISSIONS, true, userId);
                    LOCATION_PERMISSIONS, false, userId);
            }
            }
        }
        }