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

Commit 4226d772 authored by Adnan Begovic's avatar Adnan Begovic Committed by Gerrit Code Review
Browse files

pm: Allow fall through for protected apps validator activity.

  Otherwise protecting the settings application leads to some weird
  behavior.

TICKET: CYNGNOS-1915
Change-Id: I4821a07aadf73e7664c44275d8ed80709c7fde8c
parent bba19558
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -463,6 +463,9 @@ public class PackageManagerService extends IPackageManager.Stub {
    private static final long COMMON_RESOURCE_EXPIRATION = 3*60*1000; // 3 minutes
    private static final long COMMON_RESOURCE_EXPIRATION = 3*60*1000; // 3 minutes
    private static final String PROTECTED_APPS_TARGET_VALIDATION_COMPONENT =
                    "com.android.settings/com.android.settings.applications.ProtectedAppsActivity";
    /**
    /**
     * The offset in bytes to the beginning of the hashes in an idmap
     * The offset in bytes to the beginning of the hashes in an idmap
     */
     */
@@ -17223,6 +17226,11 @@ public class PackageManagerService extends IPackageManager.Stub {
            return false;
            return false;
        }
        }
        if (TextUtils.equals(PROTECTED_APPS_TARGET_VALIDATION_COMPONENT,
                componentName.flattenToString())) {
            return false;
        }
        PackageSetting pkgSetting;
        PackageSetting pkgSetting;
        ArraySet<String> components;
        ArraySet<String> components;