4 ms·
The patch just removes the instruction that does the license check and sets the return value to true. This is the actual part that patches out the license chec
by kuschku 4y ago
The patch just removes the instruction that does the license check and sets the return value to true.
This is the actual part that patches out the license check:
val index = method.implementation.instructions.size
// remove R() at 10212
method.removeInstruction(index - 3)
// remove R() at 10206
method.removeInstruction(index - 5)
method.addInstructions(
index - 3,
"const/4 p1, 0x1"
)