Merge "Skip clearing verification for apps marked with SystemConfig <app-link>"

This commit is contained in:
Winson Chiu
2020-12-15 17:03:12 +00:00
committed by Android (Google) Code Review

View File

@@ -20730,6 +20730,11 @@ public class PackageManagerService extends IPackageManager.Stub
@GuardedBy("mLock")
void clearIntentFilterVerificationsLPw(String packageName, int userId,
boolean alsoResetStatus) {
if (SystemConfig.getInstance().getLinkedApps().contains(packageName)) {
// Nope, need to preserve the system configuration approval for this app
return;
}
if (userId == UserHandle.USER_ALL) {
if (mSettings.removeIntentFilterVerificationLPw(packageName,
mUserManager.getUserIds())) {