Skip to content

A reverse-engineering project within the GTA:SA backend for Android Armv8-a

Notifications You must be signed in to change notification settings

ifgpuelse/opensa-plugin

Repository files navigation

opensa-plugin (Deprecated, see sampexp-20)

All modifications are only for study purposes and only work on ARMv8-A devices

Tooling in use

  • Cmake
  • Ninja
  • Python3
  • Android Studio
  • NDK (Android Native Development Kit)

Build configuration

  • What you will need to configure in your current shell/Windows Path environment:

Expose NDK_PATH and CMAKE_ANDROID paths env variable, example: Env configuration

Creating build directory

  • Just type at root level folder (PROJECT_DIR):
PROJECT_DIR> python3 scripts/opensa.py -b

After the command successed, a new directory called build will be appear inside your root (PROJECT_DIR) folder, follows the next step!

Building the plugin

How to compile

Enter into the build dir and run 'ninja':

PROJECT_DIR> cd build
build> ninja install

After this, a shared object file called libOpenSA.so must be generated, this is own plugin and you mst install inside your Android Package game object in lib/arm64-v8a/libOpenSA.so. The same .APK object must be infected by our Dalvik Smali script, all you need is this file inside of: PROJECT_DIR/smali/GTASA.smali

All others libraries needed will be inside of output directory at the project root structure

How to clean

Clean all objects generated by the NDK compiler:

build> ninja clean
PROJECT_DIR> rm -rf output