During this talk, I demonstrate how to manipulate the Android 13 Runtime to replace methods with custom code. Static methods inside the application or even inside the Android framework can be replaced with custom behavior during app execution. I also release ARTful, a new open source tool for the community.
ARTful is a native Android library the allows developers to modify the Android Runtime (ART) on Android 13 + 14. With this tool, you can dynamically change the implementation of any static method within your application or the Android Framework to affect methods called from within your application. This eliminates the requirement of using plaintext references to Android ClassLoaders to execute unexpected code and thwarts Reverse Engineering by entirely removing method cross-references.
- DexFile.java
- art_method.h
- Executable.java