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

Commit 63f88492 authored by Guojing Yuan's avatar Guojing Yuan Committed by Android Build Coastguard Worker
Browse files

[CDM] Checks NLS component name instead of package name

Bug: 386216637
Flag: EXEMPT bugfix
Test: CTS
(cherry picked from commit f5ed187f)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:19c9b3d4e30ad6477103c46b3cdb2732215f8a12)
Merged-In: I1be52fcb3d52b8b84353ea00fd57d8360ddd966c
Change-Id: I1be52fcb3d52b8b84353ea00fd57d8360ddd966c
parent f16fa584
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,7 +123,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);