asthook package

Subpackages

Submodules

asthook.asthook_server_ast module

asthook.asthook_server_ast.main(server, port)
asthook.asthook_server_ast.proc(conn, index)

asthook.bootstrap module

asthook.conf module

asthook.config module

class asthook.config.Config

Bases: object

classmethod load(config, args)
classmethod load_file(args)

asthook.log module

class asthook.log.Log(verbose)

Bases: object

Class manage logs

class asthook.log.MyFormatter(position)

Bases: Formatter

format(record)

Format the specified record as text.

The record’s attribute dictionary is used as the operand to a string formatting operation which yields the returned string. Before formatting the dictionary, a couple of preparatory steps are carried out. The message attribute of the record is computed using LogRecord.getMessage(). If the formatting string uses the time (as determined by a call to usesTime(), formatTime() is called to format the event time. If there is exception information, it is formatted using formatException() and appended to the message.

class asthook.log.SplitStreamHandler

Bases: Handler

emit(record)

Do whatever it takes to actually log the specified logging record.

This version is intended to be implemented by subclasses and so raises a NotImplementedError.

asthook.log.debug(msg)
asthook.log.error(msg)
asthook.log.info(msg)
asthook.log.setup_logger(args)
asthook.log.warning(msg)

asthook.myadb module

class asthook.myadb.my_adb(host='127.0.0.1', port=5037)

Bases: object

Class to manage adb it’s only a wrapper

client = None
class device(device)

Bases: object

device = None
dir_exist(dir)
install(app, test=False)
install_multiple(xxhdpi)
need_su = False
pull(src, dst)
push(src, dst)
remount()
root()
set_root()
shell(arg)
spawn(arg)
uninstall(package)
devices()
start_server()

asthook.parser module

asthook.parser.parser()

Module contents

asthook.banner()
asthook.license()
asthook.main()