[Android Q&A, Help & Troubleshooting] Jsonkat:
:*:Tools Required :*:

(*) Il2cpp Dumper GUI

https://www.andnixsh.com/2018/07/il2cppdumper-gui-104-with-apk-extension.html?m=1

Note :: There Is An Non-GUI Version Available On Github. I Prefer GUI Its Easy To Use.

(*) Dns Spy

https://github.com/0xd4d/dnSpy/releases

(*) Hxd Hex Editor

https://mh-nexus.de/en/hxd

** You Can Use Any Hex Editor You Want To.

(*) 7zip Or Winrar

https://www.7-zip.org/

(*) Notepad ++

https://notepad-plus-plus.org/downloads

(*) Apk Easy Tool

https://xdaforums.com/android/software-hacking/tool-apk-easy-tool-v1-02-windows-gui-t3333960

### Lets Start Modding ###

Step 1: First Download Any Game Apk.

( Im Using Subway Surfers Which Is The Easiest Game To Mod )

These Are Some Sites To Download Apk

apkpure.com

apkmonk.com

apkmirror.com

Step 2: ( We Need Three Files ) Open The Apk File With 7zip/winrar Goto And Extract

1. /lib/armeabi-v7a/libil2cpp.so

2. /assets/bin/Data/Managed/Metadata/global-metadata.dat

3. /assets/bin/Data/Resources/unity_builtin_extra

Create a new folder copy these three files.( Make a additional copy of libil2cpp.so )

Step 3: Open Il2cpp Dumper

-> In The Executable File Select the libil2cpp.so and In global-metadata.dat Select global-metadata.dat

-> Open the unity_builtin_extra file with Notepad++

You Will See Something like this in first line 2018.2.21f1 that's the unity version. Just Enter 2018.2 ( it's version no ) In The "Input unity version" Leave Everything As It Is.

+++ And Start Dumping.

( It Will Create a Dummy dll folder ( Which contains C# code in dll Files ) , Dump.cs [ You Can Open And Search For Functions Using Notepad ++ But Dns Spy is Recommended ]

Script.py for IDA. )

Note :: The Assembly-CSharp.dll Does not contain the Actual C# source code It Has only the function name and offset.

Step 4: We Need One dll File named Assembly-CSharp.dll

-> Open That File With Dns Spy.

-> Search For Functions Like get_coins, get_keys ( Every Game Has Different function so take time to search for it )

and double click on it.

-> You Will See Something Similar [ offset = "0*10C70B8" ] Just copy the offset ( 10C70B8 ) It Has 7bytes.

-> Open The libil2cpp.so file in HXD Hex editor

-> Then Press ctrl+g And Paste The Offset You Have Copied.

Note :: Dont Add Extra Or Remove Anything 1char = 1byte

Note :: For Modifying If it has 8 bytes replace with 8bytes.If not then it will start at different end or start positions and causes the library to break.

MVN	R0, #0xB0000000

BX	LR - Arm Assembly Code

Note :: You Can Use - armconvertor.com -

to convert from arm opcodes to hex code

( if you have some knowledge in assembly language ).

-> It will give the Hex code - 0B 02 E0 E3 1E FF 2F E1

{** MVN - Move Not

bx - branch and exchange instruction set

lr - holds the return address

#0*B00000000 -> This is the value for

(coins,money,gems,keys)

if we convert it to decimal the value is 2952790016 this is the amount of coins for our game. ** }

-> Then Paste The Hex Code From Where Your Pointer Is.

If it has 16bytes replace with 16bytes.

-> Then Save It.

Step 5: Copy the modified - libil2cpp.so - to the original apk using winrar/7zip

-> Sign The Apk Using Apk Easy Tool.

( Signing is not required for Devices patched by lucky patcher ).

Note :: If there is arm8 or x86 folder inside lib/ folder in apk, delete these folders it is not required.

That's It Done...

Hope This Helps.

Have fun Modding. ??