diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/fingerprints/BadResponseFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/fingerprints/BadResponseFingerprint.kt deleted file mode 100644 index ac25b4c18..000000000 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/fingerprints/BadResponseFingerprint.kt +++ /dev/null @@ -1,9 +0,0 @@ -package app.revanced.patches.youtube.utils.fix.parameter.fingerprints - -import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import com.android.tools.smali.dexlib2.Opcode - -object BadResponseFingerprint : MethodFingerprint( - opcodes = listOf(Opcode.CONST_16), - strings = listOf("Response code: ") -) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt index 7158652c4..15a1dfcda 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/utils/fix/parameter/patch/SpoofPlayerParameterPatch.kt @@ -18,7 +18,6 @@ import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod import app.revanced.patches.youtube.utils.annotations.YouTubeCompatibility -import app.revanced.patches.youtube.utils.fix.parameter.fingerprints.BadResponseFingerprint import app.revanced.patches.youtube.utils.fix.parameter.fingerprints.ProtobufParameterBuilderFingerprint import app.revanced.patches.youtube.utils.fix.parameter.fingerprints.ScrubbedPreviewLayoutFingerprint import app.revanced.patches.youtube.utils.fix.parameter.fingerprints.StoryboardThumbnailFingerprint @@ -46,7 +45,6 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction @Version("0.0.1") class SpoofPlayerParameterPatch : BytecodePatch( listOf( - BadResponseFingerprint, ProtobufParameterBuilderFingerprint, ScrubbedPreviewLayoutFingerprint, StoryboardThumbnailParentFingerprint, @@ -120,12 +118,6 @@ class SpoofPlayerParameterPatch : BytecodePatch( } } ?: return ScrubbedPreviewLayoutFingerprint.toErrorResult() - // hook video playback result - BadResponseFingerprint.result?.mutableMethod?.addInstruction( - 0, - "invoke-static {}, $INTEGRATIONS_CLASS_DESCRIPTOR->switchPlayerParameters()V" - ) ?: return BadResponseFingerprint.toErrorResult() - // fix protobuf spoof side issue SubtitleWindowFingerprint.result?.mutableMethod?.addInstructions( 0,