• Stars
    star
    642
  • Rank 70,096 (Top 2 %)
  • Language
    Python
  • Created almost 5 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An improved version of AndroidNativeEmu,Allow running android elf on PC

ExAndroidNativeEmu

This is a personal improved version of AndroidNativeEmu.Allow running android elf code on pc.

Improvment compare with AndroidNativeEmu

  • Rewrite memory mapping module, fully support jemalloc
  • More debug utils, pretty printing for instruction and memory.
  • Some misc bug fix
  • Stop all runing when getting exception instead of just skiping one emulator runing for easily bug detecting...
  • Auto Load dependency so.
  • Auto generate /proc/[pid]/maps according to current memory map
  • Fix R_ARM_ABS32 relocation bug.
  • Use program header to load so instead of section header
  • Support Java reflection
  • Support Arm64
  • Support multi-threaded like pthread_create etc.
  • Add Function hook feature

TODO

  • Simulate linker TLS initialization.
  • Support well known virtual file like /proc/self/maps...
  • Get rid of dependency on Section Header when loading ELF.

Usage

In the future this will be possible through pypi.

Make sure you are using python 3.7 above.

  1. Clone the repository
  2. Run pip install -r requirements.txt
  3. Run python example_jni.py

Dependencies

Text sources

Code sources