I want to get data from another application. I used AccessibiliyService, but AccessibiliyNodeInfo does not contain the information I need. I want to get drawableLeft property from TextView. Maybe anybody know, how it to do. I have root device.
Is it possible to get an element by id? Or is there a way without using AccessibilityService?
You can't get that information utilizing accessibility service APIs. It's not available.
Accessiblity services do NOT actually connect to the App that is running, they connect to a textual representation of the app. You can find the
AccessibilityNodeInfoof an element by ID, but you don't actually end up with access to the underlyingViewobject. Just it's Assistive Technology representation.