An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.
Questions tagged [accessibilityservice]
543 questions
5
votes
3 answers
Accessibility service in Android keeps getting disabled
I have developed an Android application which is based on an accessibility service. But I have a problem and I can't find any help on the Internet. When I install the application on any device, evidently it doesn't start to work until:
I go to…

user3289695
- 740
- 1
- 9
- 20
5
votes
0 answers
Overlay views drawn offset
I'm doing a bit of prototyping to inform my code and I run into an issue and I can't identify the source. I'm trying to draw rectangles (frames) around all accessibility-clickable items on the screen, but my frames end up with a horizontal shift.…

jasiek.miko
- 471
- 6
- 12
5
votes
1 answer
How to 'interrupt' an action from being performed in AccessibilityService?
What I am trying to do/What I have done: I am trying to make a very basic version of TalkBack for visually impaired users. I have made a simple accessibility service that reads the contentDescription of a button clicked by the user and reads it out…

XenoChrist
- 571
- 4
- 13
5
votes
3 answers
How to send a custom event to AccessibilityService?
My program purpose: trigger the BACK button in a service
I tried many ways, no one can achieve this purpose, finally I discovered AccessibilityService, it may be the most possible ways to implement this function.
I created this AccessibilityService,…

CL So
- 3,647
- 10
- 51
- 95
5
votes
1 answer
Android Accessibility Service - Screen updates not consistent
I have an Android AccessibilityService deployed to a Samsung Note 4 running Android 5.0.1.
I'm using WhatsApp as a test bed, but this applies to any Application and is more a question around how the Accessibility Service fires off events.
The event…

tommed
- 1,521
- 2
- 19
- 33
5
votes
2 answers
Can I get and set textcolor of a textView using Accessibility in Android
I am developing an app for color-blind, I want to know if I can change the textcolor of a textView using Accessibility in Android.
Also, I would like to change the textSize using Accessibility.
Can I do these things?, If yes, how?

ankitjainb27
- 51
- 1
- 3
5
votes
1 answer
How do you set the Accessibility setting description for your app when creating a AccessibilityEventService?
I have a working AccessibilityEventService running for my app. How do you set the description in the general Settings menu under Accessibility, for my package, i.e., com.my.package?
All I get is the default 'No description provided.'
I've looked in…

Peter Birdsall
- 3,159
- 5
- 31
- 48
5
votes
1 answer
Using UiAutomation from an accessibility service
I am writing an accessibility service for Android which aims at providing different alternatives for people with physical disabilities to control a device, for instance, using switches, scanning, head tracking, and others.
Currently, to perform the…

Cesar Mauri
- 495
- 6
- 14
5
votes
2 answers
Detect keyboard is active outside the application on android
I am trying to detect keyboard is active or not (Outside my application) using accessibility service. For that i tried to read the notifications "choose keyboard" (When multiple key board are enabled). Following code is used.
public class…

Vishnu V
- 382
- 5
- 16
5
votes
4 answers
AccessibilityService is Destroyed when uiautomator is run
I am new to android and I am trying to explore the AccessibilityService. I have extended the AccessibilityService class, which gets the AccessibilityEvents and I am able to use the events.
I see a problem when I run "uiautomator dump". My…

Namit B
- 51
- 3
4
votes
4 answers
Android 13 - enable accessibility service for APK which installed not from Google Play
On the beta version of Android 13 user can't enable Accessibility from the Settings app. When the user try to do it there is an error:
Restricted Setting
For your security, this setting is currently unavailable.
How can I enable accessibility on…

zvi
- 3,677
- 2
- 30
- 48
4
votes
2 answers
Declaring app as not an AccessibilityTool to comply with google play requirements
When targeting Android SDK (31), google play requires us to specify the isAccessibilityTool attribute in our app, if the app is not an accessibility tool then you have to declare that in your app, but where to?
If we haven't declared that in you the…

Abed
- 3,999
- 1
- 17
- 28
4
votes
0 answers
How can I get tapped View Elements using Android Accessibility Services?
I tried to create an Android Accessibility Service to detect all Elements in an App and show Accessibility Information like Content Description or Labeled by.
At the moment I can, using the AccessibilityService Class, log the Node Hierarchy when…

Pirre
- 41
- 2
4
votes
2 answers
AccessibilityService turned on causes silence from microphone on Android 10
I'm diving into new project which is using a microphone input to transmit voice. Audio is recorded by Service, capturing may be started from UI (e.g. Activity), but also from server side (some kind of eavesdropping) or by broadcast from another app.…

snachmsm
- 17,866
- 3
- 32
- 74
4
votes
1 answer
How to switch off explore by touch for some accessibility service
How i can switch off explore by touch for some accessibility service,for example for google talkback,if i know package of this service. I try to change preferences of this service,because i know,that in talkback use PreferenceFragment key,which…

Aleksandr Kozlovskiy
- 51
- 9