This is a wrapper script around adb that puts the user in a bash session with the PATH variable including /data/local/tmp.
adb_bash_github.mp4
Important: the tools jtrace64, bdsm, imjtool, memento and procexp
are downloaded from nightly build archives and may be unstable.
Contents:
- Automatically downloads nighly builds of Jonathan Levin's Tools
- Automatically downloads a statically linked
bash(thanks, Ubuntu!) - A
bashrcfile with extra helpers and configuration (like setting theHISTFILE) - A collection of helper functions and aliases, such as:
ip4- print the device's IPv4 address, if one is availableh- a uniform wrapper around various hash programs, like md5 and shastrip_control- removes control characters from inputf- opinionatedfindshorthandoutands- collect files or screenshots from within the shell to an output directory on the host
In the bash shell, running the command out will collect files into a special
directory in /data/local/temp that's continually adb pull'd onto the host
machine. s is a special case of out that takes and sends a screenshot.
If you set the env variable ANDROID_AUTOPEN_FILES then, on macOS only, the
pulled files will be automatically opened with a call to open.
This tool requires:
- Docker (only to get static bash for aarch64)
wgetORcurl
Clone or download this repository, cd into it and then run ./adb_bash.sh.
I gotcha - set ANDROID_SERIAL or pass the serial you want to use to the script as the first argument.
Only the first time, fam.