Skip to main content

Allows you to partly emulate an Android native library.

Project description

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

Resources

All resources used while developing AndroidNativeEmu.

Text sources

Code sources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

androidemu-0.0.3.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

androidemu-0.0.3-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

Details for the file androidemu-0.0.3.tar.gz.

File metadata

  • Download URL: androidemu-0.0.3.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for androidemu-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fd52bd51f58da606b18fe64a6a74211cdbf93a7bd1614e0c2e8b3cbe6c0659d3
MD5 b3964b07502c25d41463e76f206b3c67
BLAKE2b-256 8328e8277ca6341979126cb071262fd05201190b2c5def84afa0ba9a77a15891

See more details on using hashes here.

File details

Details for the file androidemu-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: androidemu-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for androidemu-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c20a8ca5392c02fc3704684e7bd8b5241dfec5acf464fc5d4a75218d1c3592fb
MD5 e4815e87a39d1d3e1c4be40be554dcf9
BLAKE2b-256 3c007f1ae42c4671cfbfee6c706456a2d73bfee467c1f5ee19bc0c78eaa6cf7b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page