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

Commit 5320ee42 authored by Todd Kennedy's avatar Todd Kennedy
Browse files

throw if >1 verifier found

still allows for no verifier to be defined.

Change-Id: I0b2208edf20c2680b0aaedb6c5efaa42ac1f952d
Fixes: 31086284
parent 3512b000
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2710,10 +2710,11 @@ public class PackageManagerService extends IPackageManager.Stub {
                UserHandle.USER_SYSTEM);
        if (matches.size() == 1) {
            return matches.get(0).getComponentInfo().packageName;
        } else {
            Log.e(TAG, "There should probably be exactly one verifier; found " + matches);
        } else if (matches.size() == 0) {
            Log.e(TAG, "There should probably be a verifier, but, none were found");
            return null;
        }
        throw new RuntimeException("There must be exactly one verifier; found " + matches);
    }
    private @NonNull String getRequiredSharedLibraryLPr(String libraryName) {