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

Commit 14629c9d authored by Guojing Yuan's avatar Guojing Yuan Committed by Android (Google) Code Review
Browse files

Merge "[CDM] Checks NLS component name instead of package name" into tm-dev

parents f313de51 b0fce927
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ public class NotificationAccessConfirmationActivity extends Activity
                NLSIntent, /* flags */ 0, mUserId);
        boolean hasNLSIntentFilter = false;
        for (ResolveInfo service : matchedServiceList) {
            if (service.serviceInfo.packageName.equals(mComponentName.getPackageName())) {
            if (service.serviceInfo.getComponentName().equals(mComponentName)) {
                if (!requiredPermission.equals(service.serviceInfo.permission)) {
                    Slog.e(LOG_TAG, "Service " + mComponentName + " lacks permission "
                            + requiredPermission);