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

Commit db4ec727 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add null check before trying to give appOps to package." into sc-dev am: 7863e205

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14202944

Change-Id: Ic4b1f675a2e916a2b269b46a778a613980cb15de
parents 2ccf9c8d 7863e205
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -760,6 +760,7 @@ public final class SmsApplication {
    private static void assignExclusiveSmsPermissionsToSystemApp(Context context,
    private static void assignExclusiveSmsPermissionsToSystemApp(Context context,
            PackageManager packageManager, AppOpsManager appOps, String packageName,
            PackageManager packageManager, AppOpsManager appOps, String packageName,
            boolean sigatureMatch) {
            boolean sigatureMatch) {
        if (packageName == null) return;
        // First check package signature matches the caller's package signature.
        // First check package signature matches the caller's package signature.
        // Since this class is only used internally by the system, this check makes sure
        // Since this class is only used internally by the system, this check makes sure
        // the package signature matches system signature.
        // the package signature matches system signature.