- Interactive adb: when connecting multiple devices, select 1, 2 or more devices to execute a command
- Support for setting alias (e.g.
adb alias.topActivity "shell dumpsys activity top | grep ACTIVITY"
)
$ sudo su
$ curl https://raw.githubusercontent.com/UncleBrook/sadb/main/sadb > /usr/bin/sadb && sudo chmod a+x /usr/bin/sadb
or
$ git clone https://github.com/UncleBrook/sadb.git ~/sadb
$ sudo mv ~/sadb/sadb /usr/bin/ && sudo chmod a+x /usr/bin/sadb && rm -rf ~/sadb
or
$ su
$ curl https://raw.githubusercontent.com/UncleBrook/sadb/main/install.sh | bash
and then add alias adb="sadb"
to ~/.bashrc
or ~/.bash_profile
bash
$ sudo cp ./sadb-completion.bash /usr/share/bash-completion/completions/
zsh
$ sudo cp ./sadb-completion.bash /usr/share/bash-completion/completions/
$ cd ~
$ vim .zshrc
# adding the following content to your .zshrc file.
source /usr/share/bash-completion/completions/sadb-completion.bash
bash
version needs to be greater than v3.2declare -A
is not supported before v3.2bash --version
to view bash version
- Select a device to execute a command
- Setting alias (e.g.
adb alias.ws "shell wm size"
)