Tutorial Substrate Hooking Template for Android

SecretMyAss

Rooted Member
Jul 16, 2018
14
77
13
19
Netherlands
Hi,

I know most of you just patch offsets directly with creating hacks, which is fine.
However, sometimes hooking a function can be very useful, for example when you're trying to unlink a feature.

Some time ago I made a simple template, so I thought I'd share it here.

The Github link is: joeyjurjens/Android-Hooking-Template
The instructions will be there too, if you've any message you can either message me here or on discord.

I'll include KittyMemory with it soon, so offsets can be patched from the library.
You might want to use this, so people can't just compare your modded binary with a clean binary.

Have fun! :)
 
Last edited:

BMD4E

Approved Modder
Approved Modder
Apr 4, 2017
299
48,292
1,193
29
UK
Is it possible to hook multiple libs armv7 + arm64 + x86?
and can you make a template of pthread hooking method? I have heard someone recommended pthread
 

SecretMyAss

Rooted Member
Jul 16, 2018
14
77
13
19
Netherlands
Is it possible to hook multiple libs armv7 + arm64 + x86?
and can you make a template of pthread hooking method? I have heard someone recommended pthread
The names of those libs are the same, it will hook the one the user has.
& I've never heard of it, so no.
 

Mr Ikso

Solid & Active Member
Dec 6, 2017
52
47
18
Ukraine
Is it possible to hook multiple libs armv7 + arm64 + x86?
and can you make a template of pthread hooking method? I have heard someone recommended pthread
for ideas for each architecture to write one more lib and throw in the right folder
 
  • Like
Reactions: HizroMxDz

Mr Ikso

Solid & Active Member
Dec 6, 2017
52
47
18
Ukraine
It’s better to have only one lib in your modded apk. No one has a device that runs x86 anymore. arm64 can run armv7, aka keep armv7 & remove others.
I know that armeabi-v7a is a universal platform, but x86 emulators work better, arm64 is relevant in the modern world.
 
  • Like
Reactions: Lorax3D

About us

  • Welcome to platinmods.com! We are proud to present you the place which let's dreams come true! Focusing on quality and trust we have spend much time to build a gaming community fitting to your wishes and needs. Actually we offer you the finest MODs and Games of the Android section and we slowly expand to the iOS section as well. But games, Android MODs & iOS MODs are not the only things we can offer you. We have tutorials, tools, a very friendly, active and solid community which will help you with any problem you have =) Your happiness is our goal. We hope you enjoy!

Forum statistics

Threads
32,392
Messages
618,199
Members
755,662
Latest member
Jokerzd9