GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AeonLucid/AndroidNativeEmu: Allows you to partly emulate an Android native library.

BranchesTags
Open more actions menu

Latest commit

 

History

95 Commits
95 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
examples
examples
 
 
src/androidemu
src/androidemu
 
 
tests
tests
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
README_cn.md
README_cn.md
 
 
pyproject.toml
pyproject.toml
 
 
setup.cfg
setup.cfg
 
 

Repository files navigation

AndroidNativeEmu

GitHub Workflow Status PyPI PyPI - Python Version

Allows you to partly emulate an Android native library.

This is an educational project to learn more about the ELF file format and Unicorn.

Read me for chinese readers 中文README

Features

  • Emulation of the JNI Invocation API so JNI_OnLoad can be called properly.
  • Emulation of native memory for malloc / memcpy.
  • Emulation of syscalls (SVC #0) instruction.
  • Hooking through the symbol table.
  • All JavaVM, JNIEnv and hooked functions are handled by python.
  • Enable VFP support.

Installation

You can install AndroidNativeEmu with pip.

pip install androidemu

TODO

  • Improve file descriptors in vfs/file_system.py so they are re-useable.
  • Add a way for the VirtualFileSystem to give back dynamic files, such as /proc/self/status, /proc/self/status but also /dev/urandom.
  • Library consumers must be able to easily rebuild the needed Java classes for a native library, which are used by the native library through the JNIEnv.
    • Classes
    • Objects
    • Methods
    • Native methods
    • Fields
    • Types
    • Reflection

Dependencies

  • Unicorn CPU emulator framework
  • Keystone assembler framework

Resources

All resources used while developing AndroidNativeEmu.

Text sources

  • https://greek0.net/elf.html
  • https://stackoverflow.com/questions/13908276/loading-elf-file-in-c-in-user-space
  • https://programtalk.com/python-examples/pyelftools.elftools.elf.relocation.Relocation/
  • http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044f/IHI0044F_aaelf.pdf
  • https://wiki.osdev.org/ELF_Tutorial
  • https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/functions.html
  • https://android.googlesource.com/platform/dalvik/+/donut-release/vm/Jni.c

Code sources

  • https://github.com/lunixbochs/usercorn
  • https://github.com/slick1015/pad_unpacker (SVC 0 instruction)

About

Allows you to partly emulate an Android native library.

Topics

androidandroid-native-libraryarmemulatorunicorn

Resources

Readme
GPL-3.0 license
Activity

Stars

1.6k stars

Watchers

56 watching

Forks

423 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.