Multiple choice devices to run adb command
- Installed adb
- Python 3.7+
-
Install libs
xargs -L 1 pip3 install < requirements.txt
-
Add run permission
chmod +x madb.py
-
Link to bin path, *nix example
ln -sf "`pwd`/madb.py" /usr/local/bin/madb ln -sf "`pwd`/mscrcpy.py" /usr/local/bin/mscrcpy
-
To work adb completions add to your ~/.zshrc next strings and run
. ~/.zshrc
autoload -Uz compinit compinit compdef '_dispatch adb adb' madb
- run madb command (all command how adb)
- choice devices
- enter
- add to your env start with ADB_DEVICE, ex:
ADB_DEVICE_XIAOMI = 192.168.1.100
- run
madb connect
- choice devices
- enter
- Move to down position - arrow down or tab
- Move to up position - arrow uo or shift+tab
- Select position - right arrow or space
- Unselect position - left arrow or space
- Select all positions - ctrl+a
- Unselect all positions ctrl+q
- Confirm selected positions - enter