Giter Club home page Giter Club logo

android-native-mod's Introduction

Android Native Mod Template

A minimal native only template for Android modding.

Background

Recently i wanted to begin doing again some Android modding, but i didn't want to use any of the existing frameworks, since it messy and i don't like it.
So i created this template to make it easier for me to start a new project.

How To Use

  1. Clone the repo
  2. Open the project in Android Studio / Visual Studio Code
  3. Change the package name in app/build.gradle and library name in app/src/main/cpp/CMakeLists.txt
  4. Start coding
  5. Build the project
  6. Copy the generated .so from app/build/outputs/native/{debug/release}/lib{template}.so
  7. Load the library in your modded app
    You can use many various methods to load the library, see Injecting the library

Injecting the library

This project is merely a template, so you can use any method you want to load the library.
Here are some examples:

Note: Modify "template" to your library name

./Injector -p "com.target.package" -l "template"
const-string v0, "template"

invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V
void* handle = xdl_open("template", RTLD_NOW);
  • Other methods

As long as you can load the library into the target process, you can use any method you want.

To-Do

  • Polymorphism design pattern
  • Unity API (Vector2, Vector3, Quaternion, etc)
  • Doc: How to use
  • Doc: What need to be changed
  • Doc: What each file does
  • Doc: How to add new functions
  • Doc: How to add new classes

Credit

  • Dobby - Hooking library
  • KittyMemory - Android, IOS runtime code patching library

android-native-mod's People

Contributors

bryangig avatar

Stargazers

KopikoBluez avatar Buerck avatar  avatar Faheem Pervez avatar Lutfilah Dzaky avatar netstu avatar YoungJack avatar hhhaiai avatar Francois284Modz avatar  avatar  avatar  avatar Jonah avatar  avatar 开源群的樱 avatar  avatar  avatar

Watchers

hhhaiai avatar Francois284Modz avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.