Skip to content
/ madb Public

Multiple device selection to run adb command

License

Notifications You must be signed in to change notification settings

fleytman/madb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

madb

Multiple choice devices to run adb command

Requriments

  1. Installed adb
  2. Python 3.7+

install

  1. Install libs xargs -L 1 pip3 install < requirements.txt

  2. Add run permission chmod +x madb.py

  3. Link to bin path, *nix example

     ln -sf "`pwd`/madb.py" /usr/local/bin/madb
     ln -sf "`pwd`/mscrcpy.py" /usr/local/bin/mscrcpy
    
  4. To work adb completions add to your ~/.zshrc next strings and run . ~/.zshrc

     autoload -Uz compinit
     compinit
     compdef '_dispatch adb adb' madb
    

usage

  1. run madb command (all command how adb)
  2. choice devices
  3. enter

Screenshot 2022-05-16 at 15 22 05

multiple connect device

  1. add to your env start with ADB_DEVICE, ex: ADB_DEVICE_XIAOMI = 192.168.1.100
  2. run madb connect
  3. choice devices
  4. enter

How control inquirer checkboxes

  • 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

About

Multiple device selection to run adb command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages