Various Android tools.
Download the python file, make it executable, and place it somewhere in
your $PATH
.
In a nutshell, this is an Android logcat
wrapper that supports regular
expression tag filtering. Please see my blog about how I come up with
this tool.
usage: logcat.py [-h] [--device DEVICE] [-b BUFFER] [-c] [-d] [-g] [-s]
[-v FORMAT]
[filters [filters ...]]
positional arguments:
filters Logcat filters. Python regex is supported.
optional arguments:
-h, --help show this help message and exit
--device DEVICE Device serial number to run logcat on.
-b BUFFER, --buffer BUFFER
Loads an alternate log buffer for viewing, such as
events or radio. The main buffer is used by default.
-c, --clear Clears (flushes) the entire log and exits.
-d, --dump Dumps the log to the screen and exits.
-g, --size Prints the size of the specified log buffer and exits.
-s, --silent Sets the default filter spec to silent.
-v FORMAT, --format FORMAT
Sets the output format for log messages. The default
is brief format.
The options are made intentionally similar to the logcat
tool. Please refer to
the document for further details.
Execute command for each connected Android devices. Support adb
and
fastboot
. Internally, it uses the -s
option to specify which device to use.
usage: foreach.py [-h] {adb,fastboot} [args [args ...]]
positional arguments:
{adb,fastboot} Executable to use.
args Arguments for adb or fastboot.
optional arguments:
-h, --help show this help message and exit