android-cheat
android-cheat copied to clipboard
How do I run an AOT precompiled Android ART application manually from ADB without AM start?
On a rooted Android O device, I think the executable is located at:
# file /data/app/com.android.gl2jni-*/oat/arm64/base.odex
/data/app/com.android.gl2jni-zZ1ugFZHTLkvAgtcll1NDg==/oat/arm64/base.odex: ELF shared object, 64-bit LSB arm64, stripped
however it is a shared object. So there must be some native call that calls it?
Yes, this comes down to reading the source for am start, which is located in Android O under:
aosp/frameworks/base/cmds/am/src/com/android/commands/am/Am.java