From 5e74f61a74104cd7cdf17b83647a30b3d8386717 Mon Sep 17 00:00:00 2001 From: OxrxL <108184954+OxrxL@users.noreply.github.com> Date: Fri, 30 Sep 2022 19:58:09 +0200 Subject: [PATCH] fix(disable-startup-shorts-player): remove redundant opcode pattern (#679) Co-authored-by: oSumAtrIX --- .../ActionOpenShortsFingerprint.kt | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/fingerprints/ActionOpenShortsFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/fingerprints/ActionOpenShortsFingerprint.kt index 15264297..47ff887d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/fingerprints/ActionOpenShortsFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/startupshortsreset/fingerprints/ActionOpenShortsFingerprint.kt @@ -14,27 +14,6 @@ import org.jf.dexlib2.Opcode @StartupShortsResetCompatibility @Version("0.0.1") object ActionOpenShortsFingerprint : MethodFingerprint( - "V", AccessFlags.PUBLIC or AccessFlags.FINAL, listOf("L", "L"), listOf( - Opcode.IF_EQZ, - Opcode.INVOKE_VIRTUAL, - Opcode.CONST_STRING, - Opcode.CONST_4, - Opcode.INVOKE_VIRTUAL, - Opcode.MOVE_RESULT, - Opcode.IPUT_BOOLEAN, - Opcode.IGET_BOOLEAN, - Opcode.IF_NEZ, - Opcode.IF_EQZ, - Opcode.INVOKE_STATIC, - Opcode.MOVE_RESULT, - Opcode.IF_EQZ, - Opcode.IGET_OBJECT, - Opcode.IF_EQZ, - Opcode.IGET_OBJECT, - Opcode.INVOKE_VIRTUAL, - Opcode.MOVE_RESULT_OBJECT, - Opcode.IF_EQZ, - Opcode.CONST_CLASS, - ), - listOf("com.google.android.youtube.action.open.shorts"), + "V", AccessFlags.PUBLIC or AccessFlags.FINAL, listOf("L", "L"), + strings = listOf("com.google.android.youtube.action.open.shorts"), ) \ No newline at end of file