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

Commit 7c070b34 authored by Peter Visontay's avatar Peter Visontay
Browse files

Use the public OPSTR of the BIND_ACCESSIBILITY_SERVICE app op.

Bug: 63907873
Test: manually tested the logging of Talkback.
Change-Id: I8e747d28ce8d10749bf89a43cf6329c854ec5049
parent 5a2a1ef7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1280,7 +1280,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub
        }

        int servicePackageUid = serviceInfo.applicationInfo.uid;
        if (mAppOpsManager.noteOpNoThrow(AppOpsManager.OP_BIND_ACCESSIBILITY_SERVICE,
        if (mAppOpsManager.noteOpNoThrow(AppOpsManager.OPSTR_BIND_ACCESSIBILITY_SERVICE,
                servicePackageUid, serviceInfo.packageName) != AppOpsManager.MODE_ALLOWED) {
            Slog.w(LOG_TAG, "Skipping accessibility service " + new ComponentName(
                    serviceInfo.packageName, serviceInfo.name).flattenToShortString()