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.4.tar.gz (50.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for androidemu-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5ed5d5aa13821698c150f227d55ed65bd3bf61ff127a0565964f1a820f431ec7
MD5 00d1592c39e7910137351e9846d8a0ff
BLAKE2b-256 abd97f2e10525ae901c1f47b6ca2324248318936991d0fa9fe6d54cb96f007a3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for androidemu-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c6d2e40bddb90afc9395079ebd65e8bd270029527cfe96a911c5bf1c7a5b1b9
MD5 5985cade0ed2362645b2c0828e902134
BLAKE2b-256 fdb151dbb8c269e2102e7b198bc4672b5d61967f0717409aba95ad9c4dc1504d

See more details on using hashes here.

Supported by

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