Skip to content

jhshi/tools.android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Various Android tools.

Installation

Download the python file, make it executable, and place it somewhere in your $PATH.

logcat.py

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.

foreach.py

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

About

A Android logcat wrapper that support regular expressions in tag filters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages