android-accessibility

Can a third-party accessibility service capture audio on Android 10?

时光总嘲笑我的痴心妄想 提交于 2020-01-25 06:58:04
问题 I want to build an accessibility service that can capture audio even when other applications are using the microphone (video camera, phone, voice recorder, Shazam, etc). Android 10 introduced audio sharing, but it's not clear whether third-party accessibility services can capture audio from other apps. https://developer.android.com/guide/topics/media/sharing-audio-input For the purpose of capturing audio, Android distinguishes two kinds of apps: "Ordinary" apps are installed by the user.

Accessibility Service is unable to read all of the screen content

杀马特。学长 韩版系。学妹 提交于 2019-12-24 01:23:41
问题 Issue : Not getting every text on screen in android pie, checked till nougat the code was working fine. Device : Xiomi MiA1(Android One), Version- 9.0 Xml Settings : <?xml version="1.0" encoding="utf-8"?> <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android:accessibilityEventTypes="typeAllMask" android:accessibilityFlags="flagIncludeNotImportantViews|flagReportViewIds" android:canRetrieveWindowContent="true" android:canRequestTouchExplorationMode="true"

How to send a custom event to AccessibilityService?

故事扮演 提交于 2019-12-23 03:42:17
问题 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, and tested it is work package com.accessibilityservice; public class MyAccessibilityService extends AccessibilityService { public MyAccessibilityService() { } @Override public void onAccessibilityEvent(AccessibilityEvent event) {

Double tap doesn't click the parent view in talkback mode

岁酱吖の 提交于 2019-12-21 23:08:04
问题 I have the following xml file. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:id="@+id/linear_layout1" android:layout_width="match_parent" android:layout_height="200dp" android:focusable="true" android:layout_margin="10dp" android:orientation="vertical"> <TextView android:id="@+id/text1" android:layout

Android O - fingerprint gesture callback not working

纵饮孤独 提交于 2019-12-19 05:46:23
问题 I am testing on Pixel device with Fingerprint Gestures ON from accessibility. I am trying to get the gesture callbacks using FingerprintGestureController but never getting any gestures in return even after I turn the accessibility ON for this app from Settings->Accessibility. isGestureDetectionAvailable() is always returning false to me. Can someone please help. Here is the code: my_gesture_service.xml <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" android

How to make spannable text clickable with Accessibility mode on

时间秒杀一切 提交于 2019-12-10 13:57:24
问题 I have a problem statement where i need to run my application with Accessibility setting on, to have talk back feedback, but the problem here is when i click on a TextView which have Spannable link in it, then it reads the full text but dose not allow me to click on that Spannable text separately while disabling the accessibility allows to make string multi spannable or link clickable. here is my code to make String clickable : SpannableString ss = new SpannableString("Android is a Software

How to configure Android AccessibilityService

喜欢而已 提交于 2019-12-08 01:40:49
问题 I am investigating Android AccessibilityService and wanted to see all possible types of events, gestures and Key Events. I am able to receive all public void onAccessibilityEvent(final AccessibilityEvent accessibilityEvent) {} however my service nevers receives protected boolean onGesture(int gestureId) {} or protected boolean onKeyEvent(KeyEvent event) {} calls. When I enable my accessibility service in the accessibility settings I see the service connect OK and I can see the service logging

How to send a custom event to AccessibilityService?

最后都变了- 提交于 2019-12-06 15:31:57
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, and tested it is work package com.accessibilityservice; public class MyAccessibilityService extends AccessibilityService { public MyAccessibilityService() { } @Override public void onAccessibilityEvent(AccessibilityEvent event) { performGlobalAction(AccessibilityService.GLOBAL_ACTION_BACK); } @Override public void onInterrupt() { } } <?xml version=

How to configure Android AccessibilityService

杀马特。学长 韩版系。学妹 提交于 2019-12-06 12:07:04
I am investigating Android AccessibilityService and wanted to see all possible types of events, gestures and Key Events. I am able to receive all public void onAccessibilityEvent(final AccessibilityEvent accessibilityEvent) {} however my service nevers receives protected boolean onGesture(int gestureId) {} or protected boolean onKeyEvent(KeyEvent event) {} calls. When I enable my accessibility service in the accessibility settings I see the service connect OK and I can see the service logging out from the public void onAccessibilityEvent(final AccessibilityEvent accessibilityEvent) {} method

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