Android Security Modules

After building the framework the easiest way to implement an ASM is to just copy the generated classes.jar to your Android SDK (Version 19).

$ cp out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar /home/sheuser/dev/android-sdks/platforms/android-19/android.jar

Here you can find the source code for a simple ASM which registers to most of the Hooks provided by ASM and simply allows every access control query while logging it via Android's standard logging facilities. The main functionality of an ASM is located inside the ASMCallbackService class. Note that the package and class name of the ASMCallbackService class should not be changed.