Skip to content

Add recents / app switch key and an app force-stop or restart action #2

Open

Description

@leeguooooo

Problem
Actions are tap, longpress, swipe, scroll, type, back, home, launch_app and wait_for. There is no recents key and no way to kill an app. To test 'kill the app mid-session, reopen, check it recovers', I had to drive Settings → search → App info → Force stop → OK by hand.

That took about 2.5 minutes. In a turn-based online game the seat timed out and was forfeited, so the reconnect test was lost. A swipe-up gesture from the bottom edge did not open recents either.

Ask

  • A recents key action.
  • force_stop / restart_app for a package, via am force-stop when ADB is available, or the accessibility path otherwise.

android-use 0.1.1, macOS, Samsung Galaxy A15 (Android 16 / One UI 8.5), accessibility backend.

Activity

  1. leeguooooo commented on Oct 31, 2026

    @leeguooooo
    OwnerAuthor

    Partly done in bc7b028: android-use adb recents, adb force-stop <pkg> and adb restart <pkg>. They take the daemon lease first and were tested with a fake adb, not a real phone. Leaving this open because they need USB debugging, so they don't help the accessibility-only setup in this report. Accessibility recents needs a new action in the shared core plus GLOBAL_ACTION_RECENTS in the companion, validated on a device. The current companion maps every key except back to home, so it must be updated first. There is no accessibility force-stop path yet.

  2. leeguooooo commented on Nov 19, 2026

    @leeguooooo
    OwnerAuthor

    v0.4.0 contains #13: recents through the accessibility companion, plus the phone_recents, phone_force_stop and phone_restart_app MCP tools (force_stop and restart_app still need ADB).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions