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
This commit is contained in:
Hui Yu
2020-02-21 13:26:01 -08:00
parent 22ca4ddb6a
commit b91ee9ca7b

View File

@@ -408,6 +408,9 @@ public final class ActiveServices {
if (!TextUtils.isEmpty(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) {