Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Hello
I'm trying to instrument an
AccessibilityService
.My idea is to perform some actions on a dummy
Activity
.However I noticed my
AccessibilityService
gets disabled as soon as I start my Espresso test with the dummyActivity
.I tried to hack around it by assembling the APK and test-APK myself.
Enabling the service with
And starting the test with
I put a
Toast
in myAccessibilityService#onServiceConnected
,AccessibilityService#onInterrupt
andAccessibilityService#onUnbind
functions like this.I can clearly see the Enabled
Toast
However none of my otherToast
's are visible, but as soon as the test starts the service is disabled as I can see in the System Settings app. (See attached screenshot)Is this intended behaviour?
If so, can this be disabled?
Or what other alternatives are there to instrumentation test an
Accessibility Service
?Thanks in advance