+2
-2
@@ -2,8 +2,8 @@ package app.revanced.patches.yuka.misc.unlockpremium.fingerprints
|
||||
|
||||
import app.revanced.patcher.extensions.or
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import org.jf.dexlib2.AccessFlags
|
||||
import org.jf.dexlib2.Opcode
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
object IsPremiumFingerprint : MethodFingerprint(
|
||||
returnType = "Z",
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package app.revanced.patches.yuka.misc.unlockpremium.fingerprints
|
||||
|
||||
import app.revanced.patcher.extensions.or
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
||||
import org.jf.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
|
||||
object YukaUserConstructorFingerprint : MethodFingerprint(
|
||||
returnType = "V",
|
||||
|
||||
+1
-4
@@ -6,8 +6,6 @@ import app.revanced.patcher.data.BytecodeContext
|
||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint.Companion.resolve
|
||||
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.yuka.misc.unlockpremium.annotations.UnlockPremiumCompatibility
|
||||
import app.revanced.patches.yuka.misc.unlockpremium.fingerprints.IsPremiumFingerprint
|
||||
@@ -23,7 +21,7 @@ class UnlockPremiunPatch : BytecodePatch(
|
||||
)
|
||||
) {
|
||||
|
||||
override fun execute(context: BytecodeContext): PatchResult {
|
||||
override fun execute(context: BytecodeContext) {
|
||||
IsPremiumFingerprint.resolve(context,YukaUserConstructorFingerprint.result!!.classDef)
|
||||
val method = IsPremiumFingerprint.result!!.mutableMethod
|
||||
method.addInstructions(
|
||||
@@ -33,7 +31,6 @@ class UnlockPremiunPatch : BytecodePatch(
|
||||
return v0
|
||||
"""
|
||||
)
|
||||
return PatchResultSuccess()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user