GithubHelp home page GithubHelp logo

ju-de / crab-adb Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 168 KB

add new functionality to Android Debug Bridge and extend its usability to work with multiple devices or emulators at a time.

Shell 100.00%

crab-adb's Introduction

crab (an ADB wrapper)

Adds new functionality to Android Debug Bridge and extend its usability to work with multiple devices or emulators at a time.

Requires Android Debug Bridge

Requires aapt (only for uninstall)


Selection Filters

-d        - physical devices

-e        - emulators

-a        - selects all

-ad      - automatically selects all physical devices

-ae      - automatically selects all emulators

Commands Available

adb help                           - shows usage of the script

adb l                                 - lists connected devices

adb s                                - takes a screenshot on selected devices

adb t "text input"            - types on selected devices

adb i <file>                       - pushes this package file to selected devices and installs it (overinstall)

adb u <file>                      - removes this app package from selected devices

adb c <file>                      - force closes app and clears data

adb <adb command>      - executes command using original adb

Install

  1. Ensure that you have adb installed (and aapt if you want uninstall)

  2. Set ANDROID_HOME correctly in the PATH

  3. Download crab.sh

  4. cd into the folder with crab.sh

  5. Set up an alias for the script to redirect adb by typing the following:

alias adb=./crab.sh

Note: The alias can be removed anytime by typing the following:

unalias adb

Usage

Type commands like this:

crab <selection filter> <command>

Bugs/Future Enhancements

  • commands with | (pipes) do not work with selection filters
  • "Number of devices found: X" is outputted when running help command with a filter
  • Install/uninstall does not work if apk name has a space?
  • batch installation
  • clear data
  • screen recording

crab-adb's People

Contributors

benjaminlo avatar ju-de avatar karanarak avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.