Use the following as a template to write your custom script.
The basics steps for writing a custom scripts are:
- rename the script class (has to be the same name as the module!)
- change the :py
.AndroScript._analyze
method to reflect your custom analysis - define the script requirements needed (by default everything is disabled allowing only to access the basic :py
.Apk
class)
Optional:
- use a custom logging object (e.g. to store the data to a file)
- save the results in MongoDBs gridFS if they may exceed 16MB
Note
There is a utility class for disassembling, decompiling, accessing the abstract syntrax tree etc. Have a look at :py.AnaUtil
This is the template:
androlyze/androlyze/model/script/ScriptTemplate.py