ateymoori / android-ui-check
Check and drive an Android app's UI on an emulator or phone with the oh-my-android MCP tools. Use when building or fixing Android screens, verifying a UI change, or testing dark mode, large fonts, RTL or pseudo-locales.
0
SKILL.md1.5 KB
Android UI check
Use the oh-my-android MCP tools. Positions are in dp, the same unit as layout code.
get_ui or screenshot
get_uifirst: a compact tree with refs, text and bounds in dp. Use it to find elements, read text and plan taps. It costs far fewer tokens than an image.screenshotwhen you must see the result: colors, images, clipping, overlap, alignment. It is scaled so 1 px = 1 dp.
The loop
get_uito see the current screen.- Act:
tap(by ref from the lastget_ui, visible text, or x,y in dp),type_text,swipe,press_key. get_uiagain to confirm the change. Refs can change after every action, so never reuse old refs.
On a crash, read logcat.
UI matrix check
- Call
get_device_stateand note the current dark mode, font scale and locale. Check the screen with
set_device_settingsin each setup, one at a time, withget_uiorscreenshotafter each:dark_mode: truefont_scale: 2locale: "ar"(RTL)locale: "en-XA"(pseudo-locale with long text)
- Look for cut-off or overlapping text, wrong mirroring, low contrast, and hard-coded strings.
- Restore the settings you noted in step 1.
accessibility_audit finds missing labels and touch targets smaller than 48 × 48 dp.