- 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") - Support for execute alias (e.g.
adb topActivity)
sudo su
curl https://raw.githubusercontent.com/darren109/sadb/main/sadb > /usr/bin/sadb && sudo chmod a+x /usr/bin/sadbor
git clone https://github.com/darren109/sadb.git ~/sadb
sudo mv ~/sadb/sadb /usr/bin/ && sudo chmod a+x /usr/bin/sadb && rm -rf ~/sadbor
$ su
$ curl https://raw.githubusercontent.com/darren109/sadb/main/install.sh | bashand then add alias adb="sadb" to ~/.bashrc or ~/.bash_profile
bash
# linux
$ sudo cp ./sadb-completion.bash /usr/share/bash-completion/completions/
# mac os
$ sudo cp ./sadb-completion.bash /usr/local/share/bash-completion/completions/zsh
# linux
$ sudo cp ./sadb-completion.bash /usr/share/bash-completion/completions/
# mac os
$ sudo cp ./sadb-completion.bash /usr/local/share/bash-completion/completions/
# zsh add config
$ cd ~
$ vim .zshrc
# adding the following content to your .zshrc file.
source /usr/share/bash-completion/completions/sadb-completion.bashbashversion needs to be greater than v3.2declare -Ais not supported before v3.2bash --versionto view bash version
- Select a device to execute a command
- Setting alias (e.g.
adb alias.ws "shell wm size")