/adbatch

Broadcast adb commands to all connected devices

Primary LanguageGoGNU General Public License v3.0GPL-3.0

ADBATCH

The adbatch is a simple way to execute adb commands to all connected devices

Get it from the Snap Store

How to use

Execute the same command used in the adb but replacing by adbatch

Example

adbatch shell ls

It will execute the shell ls command to all connected devices, print the output and save the output for each device in a file called [DEVICE_ID]-out.txt in the current directory

Compiling from source

Requirements

Go Lang with go compiler: https://golang.org/

First clone this repo and enter the directory

git clone https://github.com/brunohgv/adbatch
cd adbatch

Then use the GO CLI to install the program

go install

Done! the adbatch is installed

To test you can open the terminal and type

adbatch

# It shall display the following message:
# Adbatch is working!
# Run an adb command using adbatch to broadcast to all connected devices.
#

Installing from Release

Go to The releases page

Download the compressed file containing your OS

  • windows
  • linux
  • darwin (macOS)

Extract the content of the compressed file

Add the path to the extracted file to your path variables

To test you can open the terminal and type

adbatch

# It shall display the following message:
# Adbatch is working!
# Run an adb command using adbatch to broadcast to all connected devices.
#