Appearance
Free ADB command builder
In short: The ADB command builder writes adb commands for you. Choose a task, such as installing an APK, reading the log or pairing over Wi-Fi, fill in the details, and pick one phone, a phone by serial number or every connected phone, in bash or PowerShell. Copy the result into your terminal; nothing leaves your browser.
Command
adb install -r app.apk- The APK is copied from your computer and installed; "Success" means it worked.
- INSTALL_FAILED_UPDATE_INCOMPATIBLE means the installed app is signed with another key: uninstall it first.
How it works, flags and errors: adb install.
Running the same commands on a whole shelf of phones? BenchFleet shows every connected phone on one screen, with one-click control and, on Pro, group actions that install apps, launch them, reboot phones or take screenshots on many phones at once. See controlling many Android phones from one PC.
Free for up to 3 phones, with no account. Pro adds workflows, schedules and AI for up to 25 phones from £12 a month + VAT.
ADB cheat sheet
The commands people use most, with a guide to each.
Connection
| Command | What it does | Guide |
|---|---|---|
adb devices -l | Lists connected phones, their serial numbers and models | adb devices |
adb -s R58M12345 shell | Sends a command to one phone when several are connected | ADB commands |
adb kill-server | Stops the ADB server; the next command starts a fresh one | adb devices |
adb pair 192.168.1.20:37099 | Pairs a phone over Wi-Fi (Android 11 and newer) | ADB over Wi-Fi |
adb connect 192.168.1.20:41037 | Connects to a paired phone over Wi-Fi | ADB over Wi-Fi |
adb tcpip 5555 | Turns on network adb by USB, on Android 10 and older | ADB over Wi-Fi |
Apps
| Command | What it does | Guide |
|---|---|---|
adb install -r app.apk | Installs or updates an app, keeping its data | adb install |
adb install-multiple base.apk split.apk | Installs an app's split APKs together | adb install |
adb uninstall com.example.app | Removes an app | adb uninstall |
adb shell pm list packages -3 | Lists the apps you installed | adb uninstall |
adb shell pm clear com.example.app | Clears an app's data | adb shell |
adb shell am force-stop com.example.app | Stops an app at once | adb shell |
adb shell monkey -p com.example.app -c android.intent.category.LAUNCHER 1 | Opens an app by its package name | adb shell |
adb shell pm grant com.example.app android.permission.CAMERA | Grants a permission | adb shell |
Screen and input
| Command | What it does | Guide |
|---|---|---|
adb exec-out screencap -p > screen.png | Saves a screenshot on your computer (bash) | adb screenshot |
adb shell screenrecord /sdcard/demo.mp4 | Records the screen, up to 180 seconds | adb screenshot |
adb shell input text hello%sworld | Types text; %s is a space | adb shell |
adb shell input tap 540 1200 | Taps a point on the screen | adb shell |
adb shell input keyevent KEYCODE_HOME | Presses Home; KEYCODE_BACK is Back | adb shell |
adb shell am start -a android.intent.action.VIEW -d https://example.com | Opens a web address | adb shell |
Logs and files
| Command | What it does | Guide |
|---|---|---|
adb logcat | Follows the log live | adb logcat |
adb logcat -d > log.txt | Saves the log so far to a file (bash) | adb logcat |
adb logcat -c | Clears the log | adb logcat |
adb logcat -b crash -d | Shows recent crashes | adb logcat |
adb bugreport report.zip | Collects logs and much more in one file | adb logcat |
adb push report.pdf /sdcard/Download/ | Copies a file to the phone | adb push and pull |
adb pull /sdcard/DCIM/Camera | Copies the camera's photos to your computer | adb push and pull |
The phone
| Command | What it does | Guide |
|---|---|---|
adb shell getprop ro.build.version.release | Shows the Android version | adb shell |
adb shell dumpsys battery | Shows the battery's level and temperature | adb shell |
adb shell wm size | Shows the screen's size in pixels | adb shell |
adb reboot | Restarts the phone; adb reboot recovery restarts into recovery | ADB commands |
How the builder writes commands
- Quoting for two shells. Anything after
adb shellis read by your computer's shell and then by the phone's, so the builder quotes it for both. Web addresses with&and text with apostrophes come through intact. - Every phone in turn. For "every connected phone" it loops over the phones that
adb deviceslists as ready, skipping unauthorized and offline ones, and names saved files after each phone. - Windows PowerShell. Windows PowerShell 5.1 changes binary output sent to a file, so screenshots are saved on the phone and copied over instead, and logs are written as UTF-8.
- Nothing leaves the page. The builder runs in your browser; it sends and stores nothing.
New to adb? Start with ADB commands and the Android Debug Bridge, or see the other ways to control an Android phone from a PC.
Questions
Is the ADB command builder free?
Yes, with no sign-up and no limits. It is a page on this site that writes commands; you run them yourself in your terminal with Google's adb.
Does it send my commands or file names anywhere?
No. The builder runs in your browser, sends nothing and stores nothing, so the package names, paths and addresses you type stay on your computer.
Which shells does it support?
bash and zsh, as on macOS, Linux and Git Bash on Windows, and PowerShell on Windows. The commands differ where the shells do, for example in quoting and in saving screenshots.
How does it run a command on every phone?
It writes a loop over the phones that adb devices lists as ready and sends the command to each in turn with -s and its serial number, saving files under each phone's name.
Does it work with emulators?
Yes. Emulators appear in adb devices with serial numbers such as emulator-5554, and every command works on them as on phones.
Start with the Free plan
Free for up to 3 phones, with no account. Pro adds workflows, schedules and AI for up to 25 phones from £12 a month + VAT.
- A full refund within 14 days of your first payment
- Starts in Local mode, with no telemetry or analytics
- Made by WOODCOMMERCE LTD, a company registered in the UK