apk_binder_script is developed in python and is tested on Windows and Linux. Requires apktool (included in the package) and therefore also of Java.
Operation
- Decompiles apk apk objective and binder.
- AndroidManifest.xml unifies the two apk??™s.
- Copy and smali code assets (other resources, see limitations).
- Implements a receiver that gives high on the apk objective acts ???binder??? and reacts when the charger is connected or restart the device.
- When the receiver ???awake???, invokes the class defined in the properties (it must be a service).
- The receiver and the properties are copied to the ???package??? target with random names.
- Compiles and generates an apk with the merger.
- The apk is not signed or lined.
Files
- apk_binder_script.py ??“ script
- tmp/ ??“ temporary directory to store the decompiled / compiled apks
- loader/permissions.xml ??“ base permissions used by the loader (can be extended and register those who need it)
- loader/receiver.xml ??“ receiver will be discharged in order to receive AndroidManifest.xml events held there (can be extended)
- loader/smali/Loader.smali ??“ class implementing the receiver which in turn invoke the properties declared in the class.
- loader/smali/Loader.java ??“ source code receiver.
- loader/assets/loader.properties ??“ properties containing the class to be invoked by the receiver.
- apktool/ ??“ directory containing the tools apktool decompile / compile apk??™s.