Skip to content

Android TV capabilities ​

What the driver declares black-box (without the in-app SDK). The SDK adds its domains on top.

CapabilityDeclaredNotes
key.back key.home key.menu key.media.toggle key.media.seekyesAll remotes.
key.info key.media.discrete key.media.track key.color key.numeric key.channelandroid-tv remoteNot on the fire-tv remote.
key.longpressyesExact hold duration with auto-repeat (keys).
screenshot.elementyesViewport screenshot cropped to the element's on-screen bounds.
logsyeslogcat of the app's uid plus system warnings naming the app.
videoyesscreenrecord, H.264 MP4.
network.mockwith toets.mockGranted by the core when the mock server is on; payload ports are adb reversed, the app must use mockUrl.
platform.eventsyesnetwork-lost/-restored: svc wifi and svc data off/on (adb reverse keeps the host reachable). suspend: HOME. resume: the app's task back to the front.
text.inputyesUiAutomator2 sets the focused EditText's text (unicode, no IME); type via mobile: type, erase via KEYCODE_DEL, submit via the IME action done; fill hides the IME it opened.
deeplink.launch deeplink.openyesam start -W with the intent and -p <package> (never a component), so the OS resolves the activity from the app's intent filters. Launches force-stop first and add the payload extra __toets; openDeepLink reaches a running app's onNewIntent.
tree.hierarchynoThe accessibility tree may flatten containers: React Native lists a plain View's children as its siblings (traps). The SDK tree nests.
sync.idle media.state app.statenoNeed the SDK.

Snapshot fields ​

ElementSnapshotFrom the UiAutomator2 page source
testIdresource-id without <package>:id/ (React Native testID lands here too); none on window decor (android:id/content and above)
textown text + text of displayed descendants, whitespace-normalized; hints excluded
labelcontent-desc
focusedfocused (input focus, which is the D-pad focus on TV)
selected / enabledsame-named attributes
focusablefocusable, except containers holding a focusable descendant (scroll views, lists: Android never focuses them then)
visibledisplayed and non-empty bounds
inViewportvisible and intersecting the screen
busyalways false: Android exposes no busy state; use the SDK sync domain

checked (switches, checkboxes) is not mapped to selected; they are different states.