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

Commit 108fe59c authored by Svetoslav's avatar Svetoslav
Browse files

The helper query bridge in AccessibilityServiceManager missing capability.

1. The helper query bridge service did not have the now capability
   to query the screen content.

2. Fixing the build.

bug:8633951

Change-Id: Ief6a3387793710a83b83c18cc6c53b51dcda9bdf
parent ca523d6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ class AccessibilityInputFilter extends InputFilter implements EventStreamTransfo
        }
    }

    private void disableFeatures() {
    void disableFeatures() {
        if (mTouchExplorer != null) {
            mTouchExplorer.clear();
            mTouchExplorer.onDestroy();
+1 −0
Original line number Diff line number Diff line
@@ -797,6 +797,7 @@ public class AccessibilityManagerService extends IAccessibilityManager.Stub {
    private Service getQueryBridge() {
        if (mQueryBridge == null) {
            AccessibilityServiceInfo info = new AccessibilityServiceInfo();
            info.setCapabilities(AccessibilityServiceInfo.CAPABILITY_CAN_RETRIEVE_WINDOW_CONTENT);
            mQueryBridge = new Service(UserHandle.USER_NULL,
                    sFakeAccessibilityServiceComponentName, info);
        }