mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-03 16:14:28 +02:00
31 lines
1.1 KiB
Kotlin
31 lines
1.1 KiB
Kotlin
package app.revanced.patches.moneymanager.patch
|
|
|
|
import app.revanced.patcher.annotation.Description
|
|
import app.revanced.patcher.annotation.Name
|
|
import app.revanced.patcher.data.BytecodeContext
|
|
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
|
import app.revanced.patcher.patch.BytecodePatch
|
|
import app.revanced.patcher.patch.PatchResult
|
|
import app.revanced.patcher.patch.PatchResultSuccess
|
|
import app.revanced.patcher.patch.annotations.Patch
|
|
import app.revanced.patches.moneymanager.annotations.UnlockProCompatibility
|
|
import app.revanced.patches.moneymanager.fingerprints.UnlockProFingerprint
|
|
|
|
@Patch
|
|
@Name("Unlock pro")
|
|
@Description("Unlocks pro features.")
|
|
@UnlockProCompatibility
|
|
class UnlockProPatch : BytecodePatch(
|
|
listOf(UnlockProFingerprint)
|
|
) {
|
|
override fun execute(context: BytecodeContext): PatchResult {
|
|
UnlockProFingerprint.result!!.mutableMethod.addInstructions(
|
|
0,
|
|
"""
|
|
const/4 v0, 0x1
|
|
return v0
|
|
"""
|
|
)
|
|
return PatchResultSuccess()
|
|
}
|
|
} |