From d96f8d32164029be0a7afad07c7d41fbcb86464f Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:29:38 +0900 Subject: [PATCH] fix(YouTube Music/Settings): patch breaks in `v6.31.55+` --- .../utils/settings/SettingsBytecodePatch.kt | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsBytecodePatch.kt b/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsBytecodePatch.kt index d773a398e..d065c4992 100644 --- a/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsBytecodePatch.kt +++ b/src/main/kotlin/app/revanced/patches/music/utils/settings/SettingsBytecodePatch.kt @@ -5,7 +5,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstruction import app.revanced.patcher.extensions.InstructionExtensions.getInstruction import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.annotation.Patch -import app.revanced.patches.music.utils.fingerprints.NewPlayerLayoutFingerprint import app.revanced.patches.music.utils.integrations.Constants.INTEGRATIONS_PATH import app.revanced.patches.music.utils.integrations.IntegrationsPatch import app.revanced.patches.music.utils.mainactivity.MainActivityResolvePatch @@ -25,7 +24,6 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction ) object SettingsBytecodePatch : BytecodePatch( setOf( - NewPlayerLayoutFingerprint, PreferenceFingerprint, SettingsHeadersFragmentFingerprint ) @@ -37,21 +35,6 @@ object SettingsBytecodePatch : BytecodePatch( override fun execute(context: BytecodeContext) { - /** - * Add instructions to prevent the new player layout from being loaded when you first install the app. - */ - NewPlayerLayoutFingerprint.result?.let { - it.mutableMethod.apply { - val insertIndex = implementation!!.instructions.size - 1 - val targetRegister = getInstruction(insertIndex).registerA - - addInstruction( - insertIndex, - "const/4 v$targetRegister, 0x1" - ) - } - } ?: throw NewPlayerLayoutFingerprint.exception - /** * Inject settings Activity. */