Free tool

ADB Command Generator: Scripts for Every Connected Phone

Free tool: pick an action and get a ready-to-run ADB script for every connected Android phone. Install APKs, open apps, tap, screenshot. CMD and PowerShell.

Updated Oct 25, 20263 min readBy the RovaFlow team

Pick an action, fill in the details, and get a ready-to-run script that sends the ADB command to every connected Android phone (or one phone). Works with Windows CMD, PowerShell and PowerShell 7 (parallel). Free, nothing to install, and nothing you type leaves your browser.

Before you start: install Google's ADB platform-tools, turn on USB debugging on each phone and accept the prompt on the phone. Setup steps: How to control multiple Android phones from one PC.

ADB command generator

How the scripts work

ADB sends a command to one phone at a time, chosen with -s SERIAL. The scripts read the list from adb devices, keep only phones in the device state, and run your command once per phone. The PowerShell 7 version uses ForEach-Object -Parallel to work on several phones at once, which is much faster for installs and file transfers. More examples are in ADB commands for multiple devices.

Tips

  • Find package names with adb shell pm list packages | findstr keyword (CMD) or | Select-String keyword (PowerShell).
  • Tap and swipe use pixels. Check each model's resolution with the "Show screen resolution" action, and keep separate coordinates per model.
  • Typing text: spaces are converted to %s automatically; avoid quotes and special characters, which the Android shell may interpret.
  • Install errors? See the error table in How to install an APK with ADB.
  • Want to watch while scripts run? Open a window per phone with scrcpy for multiple devices.

Prefer buttons over scripts?

RovaFlow does all of this with clicks: mass APK install, file manager, open and close apps, one-to-many taps and no-code workflows, with a live screen wall of every phone. Windows, real devices, one-time price.

See RovaFlow pricing

FAQ

How do I run the generated script?

For CMD, paste it into Notepad, save it as a .bat file in the same folder as adb.exe (or with ADB on your PATH) and double-click it. For PowerShell, paste it into a PowerShell window. PowerShell 7 is needed for the parallel version.

Does the script work on all connected phones?

Yes. In "All connected phones" mode it reads adb devices and runs the command on every phone listed as "device", skipping unauthorized or offline phones.

Do I need root?

No. Every action in this generator works with USB debugging turned on and no root.

Why does a tap land in the wrong place on some phones?

Tap and swipe use pixel coordinates, so they only match on phones with the same screen resolution. Check a phone's resolution with adb shell wm size.

Related guides

Home Features Pricing Sign In
Chat with us