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

Commit 7863e205 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents 40055cde fc8f4300
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.