Tutorial MOD Menu for il2cpp and native Android Games

A question:
In what line in main.cpp, i mean where is the code that trigger the switch(Orig <-->Modded)?

My knowledge with c++ is very limited, i'm just relying on my knowledge on python, programming language has some similarities here and there anyways.

My goal is to try to analyze the code, and hopefully i can merge it with substrate source code.
 
I think i found the trigger, it's on line 80, right?
pthread_create(&ptid, NULL, my_test_thread, NULL);

next question, what does exactly pthread_create do?
 
1/4/2020 2:28:03 PM
Compiling APK file...

/c "java -Xmx1024m -jar "C:\Users\kaust\Desktop\APK Easy Tool v1.56 Portable\Apktool\apktool_2.3.4.jar" b -f -o "C:\Users\kaust\Desktop\odyssey\Odyssey compiled.apk" "C:\Users\kaust\Desktop\odyssey\Odyssey" "

I: Using Apktool 2.3.4
I: Smaling smali folder into classes.dex...
Exception in thread "main" org.jf.util.ExceptionWithContext: Exception occurred while writing code_item for method Landroid/support/v4/util/LongSparseArray;->clone()Landroid/support/v4/util/LongSparseArray;
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:825)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:268)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:246)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:61)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:36)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:419)
at brut.androlib.Androlib.buildSources(Androlib.java:350)
at brut.androlib.Androlib.build(Androlib.java:302)
at brut.androlib.Androlib.build(Androlib.java:269)
at brut.apktool.Main.cmdBuild(Main.java:238)
at brut.apktool.Main.main(Main.java:76)
Caused by: org.jf.util.ExceptionWithContext: Error while writing instruction at code offset 0x12
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1098)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:821)
... 10 more
Caused by: org.jf.util.ExceptionWithContext: Unsigned short value out of range: 65584
at org.jf.dexlib2.writer.DexDataWriter.writeUshort(DexDataWriter.java:116)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:348)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:1058)
... 11 more




------------------------------------------
unable to compile apk
can anyone please help?
 
This is because you have too much crap in the smali folder. You need to delete some of their smali to add yours or the building of the dex will always error. NOTE: you can add some code to a entirely NEW dex file and trigger it from there.
 
This is because you have too much crap in the smali folder. You need to delete some of their smali to add yours or the building of the dex will always error. NOTE: you can add some code to a entirely NEW dex file and trigger it from there.
Sir,
How can i make a new dex file and trigger it can you please explain.
Thank you so much.
 
Could someone do like an video about all the steps because i dont understand the last part and how to add buttons and change values in the game with the menu
 
thank you this helped me alot.
btw i have small problem i'm trying to mod garena free fire ! after adding the mod menu the app wont start! tried pmshookapplication but no way!
any idea what could i do ? also can we use the mod menu externally without injecting it into the game ?
 
Hi. I strongly understand I am late. But this is my first time doing mobile modding and not C++ triple a modding. I am not used to this java c++ thing, so I am getting VERY confused on how to make mod tabs on java like godmode_on(); function move to C++

What I mean is I don't understand how I should make the flip work with C++,you don't show an example on how to do it, Mind explaining me how and what everything does?
 
Como faz para min encontrar os códigos do jogo para colocar no mod? Algum vídeo que pode ser ensinado ou ensinado?
O que outras pessoas estão dizendo
 
c dumpar o arquivo il2cpp sem este erro
 

Attachments

  • ERRO DUMPER.png
    ERRO DUMPER.png
    21.9 KB · Views: 191
Tags Tags
hack il2cpp mod menu unity
Back
Top Bottom