
A demo Android project showcasing dynamic DEX loading using DexClassLoader, PathClassLoader, and in-memory execution. For educational purposes only.
This project demonstrates different methods of loading and executing DEX files in Android, with a focus on dynamic loading techniques such as DexClassLoader, PathClassLoader, and in-memory execution.
contacts.dex, which simulates reading device contacts.classes.dex, which contains a simple method that generates a random number and displays it on screen.
DexClassLoaderusage is restricted on Android 10 and above. The demo may not function properly on newer devices due to scoped storage and runtime execution limitations.
The app requests the READ_CONTACTS permission because the contacts.dex file simulates accessing the user's contact list.
contacts.dex is executed through DexClassLoader and prints contact data to logcat.classes.dex is used in both PathClassLoader and In-Memory loaders to generate a random number, which is shown in the UI.This project is intended for educational and research purposes only.
Do not use it for malicious, unethical, or illegal activities.
The author takes no responsibility for any misuse or damage caused.