Smali Code Patching Guide
📌Changing the Return Value in Methods
.method public checkDebugger()Z .locals 1 .line 30 invoke-static {}, Landroid/os/Debug;->isDebuggerConnected()Z move-result v0 return v0 .end method.method public checkDebugger()Z .locals 1 .line 30 invoke-static {}, Landroid/os/Debug;->isDebuggerConnected()Z move-result v0 const v0, 0x0 # Overwrite the result to always be false return v0 .end method
📌Flipping the Logic in Conditionals (IF-ELSE-GOTO Patching)
📌Deleting Code to Alter Game Logic
📌Changing Jump Instructions
📌Additional Method: Manipulating Currency in a Game
Last updated