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

Commit b91ee9ca authored by Hui Yu's avatar Hui Yu
Browse files

Exempt Android Auto from background FGS restriction.

From the background FGS while-in-use permission restriction.

Bug: 149835015, 136219221
Test: adb shell dumpsys activity -a.
Change-Id: I08c9e5fd2e2c304afe02430c6c7e7db0eb3c383d
parent 22ca4ddb
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -408,6 +408,9 @@ public final class ActiveServices {
        if (!TextUtils.isEmpty(systemCaptionsServicePackageName)) {
        if (!TextUtils.isEmpty(systemCaptionsServicePackageName)) {
            mWhiteListAllowWhileInUsePermissionInFgs.add(systemCaptionsServicePackageName);
            mWhiteListAllowWhileInUsePermissionInFgs.add(systemCaptionsServicePackageName);
        }
        }
        // TODO change this to configurable in config.xml.
        final String projectionPackage = "com.google.android.projection.gearhead";
        mWhiteListAllowWhileInUsePermissionInFgs.add(projectionPackage);
    }
    }


    ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) {
    ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) {