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

Commit 2c16eb43 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Merge cherrypicks of ['googleplex-android-review.googlesource.com/32222099'] into 25Q2-release.

Change-Id: Ibe1828f12b6378121c5a168c2db0c9c65233dd95
parents fa418ee7 eeac12b2
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -309,6 +309,16 @@ class AccessibilityServiceConnection extends AbstractAccessibilityServiceConnect
        }
    }

    @Override
    public void onNullBinding(ComponentName componentName) {
        // Per guidance from ServiceConnection we must call Context#unbindService here to
        // release the tracking resources associated with the ServiceConnection, to prevent
        // Background Activity Launches (BAL).
        synchronized (mLock) {
            unbindLocked();
        }
    }

    @Override
    protected boolean hasRightsToCurrentUserLocked() {
        // We treat calls from a profile as if made by its parent as profiles