Skip to content

v0.2

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 04:47

Fork release of android-remote-control-mcp, built from this repository by GitHub Actions and signed with a test key. Uninstall any upstream-signed copy before installing (signatures differ). Requires Android 13+.

Fork changes since upstream v1.13.0

  • Screen-state diff mode — android_get_screen_state can return only the nodes added/changed/removed since the previous capture (opt-in diff), cutting token usage on repeated screen reads.
  • Settle-then-capture — opt-in settle / settle_timeout_ms waits for the UI tree to stop changing before capturing screen state.
  • android_batch_actions — new tool that runs a sequence of UI actions in a single MCP call (allowlist of 29 action tools; stops at the first failure unless continue_on_error is set).
  • interactive_only snapshot filter — opt-in android_get_screen_state filter that keeps only interactive elements (clickable, long-clickable, editable, scrollable, or carrying accessibility actions); composes with diff mode.

v0.2

  • Update check actually works now — the version parser only accepted three-part versions, so on v0.1 the installed version failed to parse and the update check misreported the build as a development build and disabled itself (the About screen showed "update checks are disabled on development builds" even with auto-check on). Two-part versions now parse (a missing patch counts as 0), so v0.1 devices can detect and offer this release, and future releases are picked up the same way.

v0.1

  • Versioning reset — first release after the repository went public. The version name restarts at 0.1; the version code keeps increasing from the git-history-derived sequence used by the v1.13.x–v1.14.x releases, so this build still installs as an upgrade over them.
  • Miuix UI migration — all screens moved to the Miuix design system with a blurred liquid-glass bottom bar, screen transition animations (slide + fade on push/pop, crossfade between tabs), and predictive back enabled.
  • CI simplified — the redroid E2E job is gone, live tunnel integration tests are tagged out of the unit-test job, and the Edge Release pipeline was repaired (gate check permissions, signing secret names) and now publishes on every green main build.

v1.14.4

  • Virtual keyboard typing — new root tool android_type_virtual_keyboard (68 → 69 tools): types text into the currently focused field as a virtual USB keyboard created through /dev/uinput by a bundled helper (source in scripts/vkbd/), running as root through the standard elevation authorization. The key events travel the input pipeline like a hardware keyboard, so they reach fields that only accept IME-committed text — notably WebView inputs while every soft keyboard is disabled, where android_edit_text cannot type. The text is fed to the helper from a file in the app's private storage: it never appears on a command line, in the server log or in the result. Printable ASCII and newline (Enter) only, max 500 characters per call.

v1.14.3

  • Re-issue of v1.14.2 (identical code): the v1.14.2 release runner wedged during the APK build step and ignored cancellation, so the version was bumped to publish from a fresh runner instead of waiting out the 90-minute job timeout.

v1.14.2

  • Root screen capture — when a working su (root) is present, screenshots are captured with screencap -p under root: SurfaceFlinger renders the default display directly (the compositor source scrcpy taps), so captures are no longer subject to the AccessibilityService API's 334 ms minimum interval, its callback timeouts, or the accessibility service being connected. The lossless PNG is piped over the process stdout and never touches a file. The su probe result is cached (60 s positive / 5 s negative), captures time out after 5 s, and any root-path failure falls back to the previous accessibility capture with its existing behaviour — non-rooted devices are unchanged.

v1.14.1

  • Screenshot annotation ignores the system bars — elements belonging to SYSTEM windows (status bar, navigation bar, taskbar) and INPUT_METHOD windows (soft keyboard) are no longer boxed or labelled on annotated screenshots. They are never interaction targets, and their labels only cluttered the top and bottom edges of the image.

v1.14.0

  • Cropped, enlarged region screenshots (carried over from the unpublished v1.13.8) — android_get_screen_state accepts crop_left, crop_top, crop_right and crop_bottom (real device pixels, all four together): the screenshot then shows only that region, enlarged so its longer side reaches the usual 700 px, instead of the whole screen. The annotation grid is drawn at the region's edges and at every 200 px multiple inside it with real device coordinates, element boxes are intersected with the region, and the response text names the shown region — so in densely packed areas the boxes and labels stay distinguishable instead of overlapping at full-screen scale. Cropping happens after Privacy Mode masking, annotate=false returns the plain enlarged region, and without the crop parameters the screenshot is unchanged from v1.13.7.
  • Merged tool families (74 → 68 tools) — android_edit_text replaces android_type_append_text / android_type_insert_text / android_type_replace_text / android_type_clear_text with a mode parameter (append | insert | replace | set | clear; set is new). android_scroll replaces android_scroll_node / android_scroll_to_node with mode (screen | node | until). android_take_camera_photo absorbs android_save_camera_photo via the optional location_id + path parameters. android_press_key no longer accepts BACK/HOME — use the dedicated android_press_back / android_press_home tools. The batch-actions allowlist, permission gates and settings screen follow the new names.

v1.13.8

  • Cropped, enlarged region screenshots — android_get_screen_state accepts crop_left, crop_top, crop_right and crop_bottom (real device pixels, all four together): the screenshot then shows only that region, enlarged so its longer side reaches the usual 700 px, instead of the whole screen. The annotation grid is drawn at the region's edges and at every 200 px multiple inside it with real device coordinates, element boxes are intersected with the region, and the response text names the shown region — so in densely packed areas the boxes and labels stay distinguishable instead of overlapping at full-screen scale. Cropping happens after Privacy Mode masking, annotate=false returns the plain enlarged region, and without the crop parameters the screenshot is unchanged from v1.13.7.

v1.13.7

  • Fix: annotated screenshots failed on real captures — v1.13.6's annotator sampled background luminance with Bitmap.getPixel() directly on the source screenshot, which Android forbids on HARDWARE bitmaps (IllegalStateException: unable to getPixel(), pixel access is not supported on Config#HARDWARE bitmaps), so android_get_screen_state with a screenshot and annotation enabled returned "Screenshot annotation failed" on device (unit tests used software bitmaps and passed). When the source is a HARDWARE bitmap, sampling now goes through a readable software copy of it; the drawing path, annotate=false and all other behavior are unchanged.

v1.13.6

  • Annotated screen-state screenshots — android_get_screen_state now composites annotations onto the returned screenshot by default: a grid in real device coordinates (200 px spacing, coordinate labels along the top and left edges) and accessibility element boxes (red for clickable elements, amber for the rest; labels only on nodes carrying text or a content description). Pass annotate=false to get the clean original image, byte-identical to earlier releases. Annotation ink is chosen per segment from the sampled luminance of the underlying pixels and drawn with a counter-tone halo, so grid lines, boxes and labels stay readable on photos, gradients and screens mixing bright and dark regions — there is no fixed dark/light mode branch. The node text listing and all other arguments are unchanged.

v1.13.5

  • File transfer speedup — the v1.13.4 chunk tools carried each chunk inside the elevated shell command line (printf '<base64>' | base64 -d | dd bs=1), which capped a chunk at ~96 KB and cost a full shell round trip per small chunk (a 4 MiB file took ~2.3 minutes per direction). Chunks now move entirely inside the server: decoded in-process and written directly when the app can reach the path, otherwise staged in the shell scratch directory and placed by one short root dd (paths and numbers only — the data never appears on a command line). The per-call cap rises to 1,048,576 raw bytes (~1.4M base64 characters), so a 4 MiB file moves in 4 calls per direction. Tool names, arguments and result JSON are unchanged.

v1.13.4

  • Chunked binary file transfer (74 tools total) — android_write_file_chunk writes a base64 chunk at a byte offset (optional truncate on the first chunk), android_read_file_chunk reads a chunk back as base64 with the total file size and an eof flag, and android_file_info reports existence, size and SHA-256 in one call. Files of any size move as a sequence of independent chunks — a failed chunk retries on its own — and every call is capped server-side at 131,072 raw bytes (~175K base64 characters), so a single MCP call stays well below the Cloudflare tunnel / JSON-RPC payload limits. Like the other root tools, each runs one fixed command through the existing elevation authorization with a mandatory justification; paths are absolute, so app-private and system files work too.

v1.13.3

  • Text input tools set text directly — type_append_text / type_insert_text / type_replace_text / type_clear_text now compute the field's new content and set it in one ACTION_SET_TEXT operation instead of simulating key events through the IME input connection, which let keyboard features (glide typing, autocomplete) corrupt values — e.g. replacing "1202" with "120" produced "120022222022000502022". The field is never clicked, so the soft keyboard is never shown; typing_speed / typing_speed_variance are still accepted but ignored. Unexpected failures inside a text tool are logged and returned as tool errors instead of propagating.
  • Settings switches toggle only from the switch — the whole-row toggleable modifier was removed from every settings switch row, so brushing a row can no longer flip a switch (this silently turned shell auto-allow off four times during overnight work).
  • Soft keyboard suppressed in the app — MainActivity uses stateAlwaysHidden|adjustNothing, and every text field in the app's own screens hides the keyboard when it gains focus, so a keyboard can never push the layout around.
  • Elevation toggle changes are logged immediately — shell_elevation_enabled and shell_auto_allow_elevation changes bypass the settings change logger's 2-second coalescing, so a change can no longer be lost when the process dies right after it (e.g. during a reinstall).
  • Root tools (71 tools total) — android_install_apk (pm install -r), android_uninstall_app (pm uninstall), android_reboot_device (reboot, logged before it runs), android_read_logcat and android_read_root_file (any absolute path). Each runs one fixed command through the existing elevation authorization — blocklist, elevation-enabled check, auto-allow / allowlist / user approval, mandatory justification — with no bypass.