An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.
Questions tagged [accessibilityservice]
543 questions
6
votes
1 answer
AccessibilityEvent.getPackageName() returns null
I am registering an AccessibilityService to listen for app changes. It works on all the phones I've tested but on the Galaxy A3 with Android 5.0 is failing because AccessibilityEvent.getPackageName() is returning null. The packageName should be set,…

Antonio Nicolás Pina
- 81
- 7
6
votes
2 answers
How to interact with USSD dialog programmatically in android
I want to use USSD dialog which comes after dialing any USSD code say *123# which asks user to enter option number to perform specific task(s) depending upon sim card vendors. I need to interact with that dialog to provide input in the text box…

zeeali
- 1,524
- 20
- 31
6
votes
0 answers
How to use an AccessibilityService to set text in an EditText within a browser
I have created an AccessibilityService which is working correctly and onAccessibilityEvent() is called on each event. What I want to do is populate an EditText in the browser from my Service. I can get this working in ordinary apps using…

Gareth Murfin
- 61
- 1
- 4
6
votes
4 answers
Read Notification Bar title, message using Accessibility Service Programmatically
Using Accessibility Service I am being able to read notification bar title & message, the issue I am facing is when first notification appear I am reading all these perfectly but after first notification & onward I am only getting title & text "you…

Creator
- 95
- 1
- 1
- 7
6
votes
2 answers
How can I use AccessibilityService.getWindows() to obtain a traversable AccessibilityNodeInfo?
I am writing an AccessibilityService for Android and, up to API level 20, I have been using the AccessibilityEvent.getSource() method to obtain a traversable AccessibilityNodeInfo when onAccessibilityEvent(AccessibilityEvent event) is triggered.…

J-Doc
- 79
- 1
- 5
6
votes
2 answers
Accessibility Dialog/DialogFragment reads text instead of content description
I have a dialog, that has few textviews.
For each textview I have set different content description and text.
For eg.

light365
- 369
- 1
- 4
- 7
5
votes
2 answers
Open accessibility permission screen on samsung with android 12 programmatically
My android application requests permission for accessibility. On older versions of android, the code below opens the
correct accessibility permission screen. But testing on a samsung with android 12, it doesn't work.
private void launchPermission()…

araraujo
- 613
- 2
- 8
- 17
5
votes
0 answers
Accessibility Service is malfunctioning
I've been using an Accessibility service for a while now on my app. It used to work fine, but there's this message on the phone at the screen where you enable the service in Settings that says This service is malfunctioning.
Now all of a sudden my…

Stasky
- 107
- 1
- 5
5
votes
1 answer
does android accessibilityService take screenshot work on api lower than 30?
I am using Android AccessibilityService to take screenshot using some method that has been added on api level 30 , I wonder to know if it works on api's lower than 30 or not
this is my overrided method
@Override
public void…

pikec96111
- 51
- 1
- 4
5
votes
1 answer
Accessibilityservice not working via Notifications
I am playing around with an Accessibilityservice.
I know how to read data from the notifications and I also know how to print the typed text into logcat.
Problem
When I get e WhatsApp message from a friend I open that message via notifications. (see…

MSeiz5
- 182
- 1
- 9
- 28
5
votes
1 answer
How to click in UI window on Android Oreo (and higher versions) with AccessibilityService?
I have followed this suggestion to uninstall my app programatically. Everything works fine till Android 7.1. But, when I tested the same on Android 8.1 and 9, this seems to not work, because no click is performed on the UI window.
What is the bug in…

FLASHCODER
- 1
- 7
- 24
5
votes
3 answers
Accessibility Service is turned off automatically on each Run since Android studio 3.5
Since I update Android Studio to 3.5, when I launch a Run to build and deploy my app, my custom accessibility service is turn off automatically (not a crash, just turn off within the settings).
Can you help me please ?

Hugo Mallet
- 200
- 7
5
votes
1 answer
Android Accessibility Service stopped working after a day or two on Oreo
Background:
I have a class which extends from AccessibilityService. Whenever a window is changed following function is called which gives me the application name of the foreground application.
@Override
public void…

Ahmad Shahwaiz
- 1,432
- 1
- 17
- 35
5
votes
1 answer
Several apps which draw view over other apps with help Accessibility service doesn't work at the same time
I have two Accessibility services in two different apps on a device. Each of them draws some view over other apps. I faced with the following problem: when 2 Accessibility services are enabled, only one draws view, another one doesn't get any…

Ruslan Leshchenko
- 4,043
- 4
- 24
- 36
5
votes
1 answer
How to get view ID using Accessibility Service in android
I am a beginner to android. I want to get view id of the view, user is currently looking at.
I make my question a bit more clear.Suppose user opens MakeMyTrip and navigates upto Flight booking page.Now i want to get the View id of that particular…

Raghu
- 51
- 1
- 3