Revert "Exempt Android Auto from background FGS restriction."

This reverts commit b91ee9ca7b.

Reason for revert: Do not hard code packageName in AOSP code, there is better implementation.

Change-Id: Ibc6965caf8aed2c83f27d622f401aff0042c59e9
This commit is contained in:
Hui Yu
2020-02-22 02:09:22 +00:00
parent b91ee9ca7b
commit 1d057e482b

View File

@@ -408,9 +408,6 @@ 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) {