From ffbb207782d5397ba11f98edd52fca91b3f219f2 Mon Sep 17 00:00:00 2001 From: Sven Koch <39488412+SVNKoch@users.noreply.github.com> Date: Fri, 9 Dec 2022 15:09:37 +0100 Subject: [PATCH] Remove Kachelmann related DMCA files --- .../SubscriptionUnlockCompatibility.kt | 13 ----- .../SubscriptionUnlockFingerprint.kt | 9 ---- .../patch/SubscriptionUnlockPatch.kt | 47 ------------------- 3 files changed, 69 deletions(-) delete mode 100644 src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/annotations/SubscriptionUnlockCompatibility.kt delete mode 100644 src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/fingerprints/SubscriptionUnlockFingerprint.kt delete mode 100644 src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/patch/SubscriptionUnlockPatch.kt diff --git a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/annotations/SubscriptionUnlockCompatibility.kt b/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/annotations/SubscriptionUnlockCompatibility.kt deleted file mode 100644 index ce13e9474..000000000 --- a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/annotations/SubscriptionUnlockCompatibility.kt +++ /dev/null @@ -1,13 +0,0 @@ -package app.revanced.patches.ecmwf.misc.subscription.annotations - -import app.revanced.patcher.annotation.Compatibility -import app.revanced.patcher.annotation.Package - -@Compatibility( - [Package( - "com.garzotto.pflotsh.ecmwf_a", arrayOf("3.5.4") - )] -) -@Target(AnnotationTarget.CLASS) -@Retention(AnnotationRetention.RUNTIME) -internal annotation class SubscriptionUnlockCompatibility diff --git a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/fingerprints/SubscriptionUnlockFingerprint.kt b/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/fingerprints/SubscriptionUnlockFingerprint.kt deleted file mode 100644 index 4b88979b5..000000000 --- a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/fingerprints/SubscriptionUnlockFingerprint.kt +++ /dev/null @@ -1,9 +0,0 @@ -package app.revanced.patches.ecmwf.misc.subscription.fingerprints -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint - -object SubscriptionUnlockFingerprint : MethodFingerprint( - "Z", - customFingerprint = { methodDef -> - methodDef.definingClass.endsWith("MapsActivity;") && methodDef.name == "t0" - } -) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/patch/SubscriptionUnlockPatch.kt b/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/patch/SubscriptionUnlockPatch.kt deleted file mode 100644 index 2c1bf92dd..000000000 --- a/src/main/kotlin/app/revanced/patches/ecmwf/misc/subscription/patch/SubscriptionUnlockPatch.kt +++ /dev/null @@ -1,47 +0,0 @@ -package app.revanced.patches.ecmwf.misc.subscription.patch - -import app.revanced.patcher.annotation.Description -import app.revanced.patcher.annotation.Name -import app.revanced.patcher.annotation.Version -import app.revanced.patcher.data.BytecodeContext -import app.revanced.patcher.extensions.addInstructions -import app.revanced.patcher.extensions.removeInstruction -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.ecmwf.misc.subscription.annotations.SubscriptionUnlockCompatibility -import app.revanced.patches.ecmwf.misc.subscription.fingerprints.SubscriptionUnlockFingerprint - -@Patch -@Name("pflotsh-ecmwf-subscription-unlock") -@Description("Unlocks all subscription features.") -@SubscriptionUnlockCompatibility -@Version("0.0.1") -class SubscriptionUnlockPatch : BytecodePatch( - listOf( - SubscriptionUnlockFingerprint - ) -) { - override fun execute(context: BytecodeContext): PatchResult { - val result = SubscriptionUnlockFingerprint.result!! - val method = result.mutableMethod - - val index = method.implementation!!.instructions.size - - // remove R() at 10212 - method.removeInstruction(index - 3) - // remove R() at 10206 - method.removeInstruction(index - 5) - - val insertIndex = index - - method.addInstructions( - insertIndex - 1 - 2, - """ - const/4 p1, 0x1 - """ - ) - return PatchResultSuccess() - } -} \ No newline at end of file