accessibilityservice

Android Accessibility perform touch action

心已入冬 提交于 2019-12-06 10:56:39
问题 I am wondering if it is possible to perform touch action with Android accessibility service on screen at position, e.g.: Bundle arguments = new Bundle(); arguments.putInt(/*coord X*/, /*X value*/); arguments.putInt(/*coord Y*/, /*Y value*/); node.performAction(/*touch action*/, arguments); Or, again if possible, record an action when user taps on a certain view / position. Basically, I have to perform action over soft keyboard, when it pops up (external app does not have "Submit" button to

AccessibilityService: Is possible draw password on remote smartphone screen with mouse?

梦想与她 提交于 2019-12-06 10:42:59
问题 I'm working in a project similar to Team View QuickSupport and i want know if AccessibilityService allow perform a swipe on a remote screen that can be able to draw the password that protect device? I comes trying the following code, but without success. Until now all that happens is a exception on android code that says: java.lang.IllegalStateException: Attempting to add too many strokes to a gesture here: gestureBuilder.addStroke(new GestureDescription.StrokeDescription(path, 0, time)); The

How can I programmatically start and stop an AccessibilityService?

爱⌒轻易说出口 提交于 2019-12-06 07:44:53
问题 Background I have an app that has an AccessibilityService. Android seems to keep AccessibilityServices running all the time, but I only need mine to run sometimes . (Specifically, if a user opens my app and turns it off, the AccessibilityService is no longer needed.) If my AccessibilityService is running when it isn't needed, it's wasting the device's RAM and CPU, and I want to avoid doing this to my users if possible. Question How can I programmatically start and stop my AccessibilityService

Perform swipe on screen using AccessibilityService

房东的猫 提交于 2019-12-06 03:47:38
问题 I want to perform swipe on screen using accessibility service. i tried this but this only perform a single touch. i know it is possible because when enable my service on device it says this service can perform swipe,touch,pinch etc. Point position=new Point(100,10); GestureDescription.Builder builder = new GestureDescription.Builder(); Path p = new Path(); p.moveTo(position.x, position.y); builder.addStroke(new GestureDescription.StrokeDescription(p, 100L, 50L)); GestureDescription gesture =

How to perform Other app list item click using accessibility service like Voice Access app?

≯℡__Kan透↙ 提交于 2019-12-04 21:19:05
I am developing an application like VoiceAccess app. Using accessibility service I am able to perform all clicks which are on top activity(3rd party applications). But I am facing issue with ListItem clicks. I am trying this code for FaceBook app. below is my code. Can any one help me on this. public class MyService extends AccessibilityService { /**/ private SharedPreferences S_PREF; private SharedPreferences.Editor editor; private static final String TAG = MyService.class .getSimpleName(); @Override public void onAccessibilityEvent(AccessibilityEvent event) { clickPerform

Android Accessibility perform touch action

試著忘記壹切 提交于 2019-12-04 17:49:32
I am wondering if it is possible to perform touch action with Android accessibility service on screen at position, e.g.: Bundle arguments = new Bundle(); arguments.putInt(/*coord X*/, /*X value*/); arguments.putInt(/*coord Y*/, /*Y value*/); node.performAction(/*touch action*/, arguments); Or, again if possible, record an action when user taps on a certain view / position. Basically, I have to perform action over soft keyboard, when it pops up (external app does not have "Submit" button to perform ACTION_CLICK on it), but injecting events is not permitted due to security policies. Any idea?

How can I programmatically start and stop an AccessibilityService?

試著忘記壹切 提交于 2019-12-04 13:49:59
Background I have an app that has an AccessibilityService . Android seems to keep AccessibilityService s running all the time, but I only need mine to run sometimes . (Specifically, if a user opens my app and turns it off, the AccessibilityService is no longer needed.) If my AccessibilityService is running when it isn't needed, it's wasting the device's RAM and CPU, and I want to avoid doing this to my users if possible. Question How can I programmatically start and stop my AccessibilityService ? Note that I am not asking to programmatically enable or disable the AccessibilityService in

How to interact with USSD dialog programmatically in android

柔情痞子 提交于 2019-12-04 13:28:08
问题 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 given into it programmatically. However, I am able to read the USSD response that comes in Alert Dialog after dialing any USSD code, using AccessibilityService and I'm showing the response in a Toast as shown in the code below. I haven't found any

Detect if notification has been deleted

让人想犯罪 __ 提交于 2019-12-04 11:41:32
I have the following problem. I want to detect when a notification has been removed from the notification bar. I can scan notifications with an AccessbilityService and casting its ParcelableData to a notification Notification notif = (Notification) event.getParcelableData(); One thought of mine was, utilizing if the PendingIntent of the notification has been clicked, but I can't find anything on how to detect that. Any ideas? I am kind of desperate... trying it for hours now. Michell Bak A very similar question has already been answered here on SO: Detect a new Android notification In short,

AccessibilityNodeInfo - send text

怎甘沉沦 提交于 2019-12-04 10:52:39
问题 I am developing an Android app, where I have to send text to focused EditText field of other Applications. I have done it in API level 18 and above using AccessibilityService , when I find the EditText , I paste the data from ClipBoard. Here is the code, public class TestService extends AccessibilityService { @Override public void onAccessibilityEvent(AccessibilityEvent event) { AccessibilityNodeInfo source = event.getSource(); if (source != null && event.getEventType() == AccessibilityEvent