Questions tagged [accessibilityservice]

An Android service which runs in the background and receives callbacks by the system when accessibility events are fired.

543 questions
7
votes
3 answers

Auto Reply to WhatsApp message in background

I just checking out the Application, is doing auto reply to WhatsApp message in background. I also trying to doing so, but can't get success in it. I had tried : Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); …
Rocky
  • 2,903
  • 1
  • 22
  • 26
7
votes
1 answer

How to get selected text from AccessibilityNodeInfo

I have a accessibility service running for event type "typeViewTextSelectionChanged". I am able to catch this event trigger whenever user selects any text, but how do I get the selected text content from AccessibilityNodeInfo or AccessibilityEvent…
Vishwesh Shetty
  • 687
  • 9
  • 27
7
votes
3 answers

Talkback is not getting enabled through adb shell

I've tried the command adb shell settings put secure enabled_accessibility_services com.android.talkback/com.google.android.marvin.talkback.TalkBackService to enable talkback from adb shell. It's toggling the ui button which signifies the status of…
7
votes
2 answers

Restart Accessibility Service After Crash

In my Application there is a Service and an AccessibilityService. Now the Service is bound by the accessibility Service in order to receive information. My Service periodically checks if the AccessibilityService is enabled, and if it is not, it…
paolo2988
  • 857
  • 3
  • 15
  • 31
7
votes
0 answers

Is it possible to get precise touch data from an Accessibility Event?

I am currently trying to develop an application that can capture global touch gestures to be used in research. If possible I would like to achieve this without rooting the phone, and since overlays can not be used for this anymore i'm trying to…
Brage Celius
  • 141
  • 7
7
votes
2 answers

Accessibility Service - performGlobalAction() returns false

I am creating an Android Accessibility Service which calls performGlobalAction() at onStartCommand() public int onStartCommand(Intent intent, int flags, int startId) { Log.d("service", "started"); Bundle extras = intent.getExtras(); …
laplasz
  • 3,359
  • 1
  • 29
  • 40
7
votes
2 answers

Get view of AccessibilityNodeInfo to create overlay

I'm writing a AccessibilityService and I want to create view overlays on the views from the current activity that the accessibility service can retrieve. I have no problems to retrieve all AccessibilityNodeInfo objects from the current activity, but…
zuuurek
  • 81
  • 1
  • 3
7
votes
3 answers

Autofill logins in Chrome using AccessibilityService Android

I am developing an application that requires to auto-fill logins in other installed apps and chrome. I am able to successfully auto-fill logins in other installed apps using AccessibilityService but could not get it working on Chrome browser. I am…
androidGuy
  • 5,553
  • 12
  • 39
  • 56
7
votes
2 answers

How to use AccessibilityService?

I am studying AccessibilityService. I studied what is Accesibility Service and why we use it, what are advantages of Accessibility Service. So I tried to make a demo of Accessibility service to see how it works, that when a Email or any whatsapp,…
nawaab saab
  • 1,892
  • 2
  • 20
  • 36
7
votes
1 answer

Meaning of different feedback types for an accessibility service in android?

I have been working on an app which displays all the notifications in the phone's status bar (like a new msg or a missed call). By researching I found out that the only way to do that in android is to create an accessibility service. So I did the…
Anjani
  • 1,533
  • 3
  • 15
  • 26
6
votes
2 answers

Accessibility Service does not restart when manually re-enabled after app force stopped

I'm having an issue with my Accessibility Service not restarting after the app is force stopped and then manually opened again, which does restart other regular services. The accessibility service does not start up and work again until it is…
Flyview
  • 1,899
  • 1
  • 28
  • 46
6
votes
2 answers

How does AccessibilityService draw on top of other apps?

Background SAW (system alert window) permission can be used to draw content on top of other apps. I was told a very long time ago that accessibility service can do this too, but I never found any tutorial, sample, documentation and even an app that…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
6
votes
4 answers

How to handle MotionEvents (Gamepad Joystick Movement, etc) from AccessibilityService

I have an AccessibilityService that takes in input from game controllers (ps5 controller, xbox controller, etc.). I use the onKeyEvent() method to handle button presses and releases, so I can handle those easily. The problem I am facing is how to…
0xB01b
  • 318
  • 1
  • 10
6
votes
1 answer

How to perform a touch and hold gesture using AccessibilityService?

Path clickPath = new Path(); clickPath.moveTo(x, y); GestureDescription.StrokeDescription clickStroke = new GestureDescription.StrokeDescription(clickPath, 0, 1); GestureDescription.Builder clickBuilder = new…
Akash Karnatak
  • 678
  • 2
  • 7
  • 16
6
votes
1 answer

Android onAccessibilityEvent get X and Y position of TextView

I am trying to get the X and Y position of a TextView on my screen using Accessibility service to find the TextView, is this possible? Everything I have found requires you first to touch the screen. Here is how I am getting my node…
Jayce
  • 781
  • 3
  • 16
  • 35
1 2
3
36 37