feat(YouTube): add support version v18.40.34

This commit is contained in:
inotia00 2023-10-21 05:49:18 +09:00
parent 2cb1923daa
commit e395d501ac
106 changed files with 238 additions and 120 deletions

View File

@ -34,7 +34,8 @@ Example:
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
} }
], ],

View File

@ -6,7 +6,6 @@ import com.android.tools.smali.dexlib2.AccessFlags
import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.Opcode
object SpeedLimiterFallBackFingerprint : MethodFingerprint( object SpeedLimiterFallBackFingerprint : MethodFingerprint(
returnType = "F",
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL, accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
parameters = listOf("L"), parameters = listOf("L"),
opcodes = listOf( opcodes = listOf(

View File

@ -43,7 +43,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -28,7 +28,8 @@ import app.revanced.util.integrations.Constants.ADS_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -38,7 +38,8 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -43,7 +43,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -43,7 +43,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -47,7 +47,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -42,7 +42,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -38,7 +38,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import app.revanced.util.integrations.Constants.FULLSCREEN
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -49,7 +49,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -34,7 +34,8 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -43,7 +43,8 @@ import app.revanced.util.integrations.Constants.GENERAL
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -33,7 +33,8 @@ import app.revanced.util.integrations.Constants.GENERAL
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -41,7 +41,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -40,7 +40,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.util.integrations.Constants.PATCHES_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -46,7 +46,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -33,7 +33,8 @@ import app.revanced.util.integrations.Constants.GENERAL
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -42,7 +42,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -45,7 +45,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import app.revanced.util.integrations.Constants.GENERAL
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -42,7 +42,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import app.revanced.util.integrations.Constants.GENERAL
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -29,7 +29,8 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -29,7 +29,8 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -29,7 +29,8 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusIcon
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -33,7 +33,8 @@ import app.revanced.util.resources.ResourceHelper.updatePatchStatusLabel
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -27,7 +27,8 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -32,7 +32,8 @@ import app.revanced.util.resources.ResourceUtils.copyResources
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -29,7 +29,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -31,7 +31,8 @@ import kotlin.io.path.exists
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -36,7 +36,8 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -35,7 +35,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -29,7 +29,8 @@ import kotlin.io.path.exists
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -35,7 +35,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -34,7 +34,8 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -28,7 +28,8 @@ import app.revanced.util.integrations.Constants.MISC_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -46,7 +46,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -27,7 +27,8 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
], ],

View File

@ -36,7 +36,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -34,7 +34,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -40,7 +40,8 @@ import com.android.tools.smali.dexlib2.Opcode
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -44,7 +44,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -34,7 +34,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.util.integrations.Constants.MISC_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -44,7 +44,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -28,7 +28,8 @@ import app.revanced.util.resources.ResourceHelper.addTranslations
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import app.revanced.util.integrations.Constants.NAVIGATION
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -34,7 +34,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -47,7 +47,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -51,7 +51,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -42,7 +42,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -38,7 +38,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -31,7 +31,8 @@ import app.revanced.util.integrations.Constants.PLAYER
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -32,7 +32,8 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -52,7 +52,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]
@ -89,7 +90,10 @@ object HideFilmstripOverlayPatch : BytecodePatch(
val initialIndex = setOnClickListenerIndex - 1 val initialIndex = setOnClickListenerIndex - 1
if (SettingsPatch.upward1828) { if (SettingsPatch.upward1828) {
val insertIndex = it.scanResult.patternScanResult!!.startIndex + 2 var insertIndex = it.scanResult.patternScanResult!!.startIndex + 2
if (getInstruction(insertIndex).opcode == Opcode.INVOKE_VIRTUAL)
insertIndex ++
val replaceInstruction = getInstruction<TwoRegisterInstruction>(insertIndex) val replaceInstruction = getInstruction<TwoRegisterInstruction>(insertIndex)
val replaceReference = val replaceReference =
getInstruction<ReferenceInstruction>(insertIndex).reference getInstruction<ReferenceInstruction>(insertIndex).reference

View File

@ -41,7 +41,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -38,7 +38,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -37,7 +37,8 @@ import app.revanced.util.integrations.Constants.PLAYER
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import app.revanced.util.integrations.Constants.INTEGRATIONS_PATH
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -41,7 +41,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -31,7 +31,8 @@ import app.revanced.patches.youtube.utils.settings.SettingsPatch
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -44,7 +44,8 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -43,7 +43,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -41,7 +41,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -43,7 +43,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -41,7 +41,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -45,7 +45,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -50,7 +50,8 @@ import org.w3c.dom.Element
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import app.revanced.util.integrations.Constants.SEEKBAR
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -33,7 +33,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -39,7 +39,8 @@ import app.revanced.util.integrations.Constants.SEEKBAR
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -34,7 +34,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -68,7 +68,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -35,7 +35,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -47,7 +47,8 @@ import com.android.tools.smali.dexlib2.immutable.ImmutableMethod
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -49,7 +49,8 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -7,7 +7,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions
import app.revanced.patcher.patch.BytecodePatch import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotation.Patch import app.revanced.patcher.patch.annotation.Patch
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
import app.revanced.patches.shared.patch.litho.ComponentParserPatch import app.revanced.patches.shared.patch.litho.ComponentParserPatch
import app.revanced.patches.shared.patch.litho.ComponentParserPatch.generalHook import app.revanced.patches.shared.patch.litho.ComponentParserPatch.generalHook
import app.revanced.patches.youtube.utils.litho.fingerprints.GeneralByteBufferFingerprint import app.revanced.patches.youtube.utils.litho.fingerprints.GeneralByteBufferFingerprint
@ -30,16 +29,12 @@ object LithoFilterPatch : BytecodePatch(
override fun execute(context: BytecodeContext) { override fun execute(context: BytecodeContext) {
GeneralByteBufferFingerprint.result?.let { GeneralByteBufferFingerprint.result?.let {
(context it.mutableMethod.apply {
.toMethodWalker(it.method) addInstruction(
.nextMethod(it.scanResult.patternScanResult!!.endIndex, true) 0,
.getMethod() as MutableMethod "invoke-static { p2 }, $ADS_PATH/LithoFilterPatch;->setProtoBuffer(Ljava/nio/ByteBuffer;)V"
).apply { )
addInstruction( }
0,
"invoke-static { p2 }, $ADS_PATH/LithoFilterPatch;->setProtoBuffer(Ljava/nio/ByteBuffer;)V"
)
}
} ?: throw GeneralByteBufferFingerprint.exception } ?: throw GeneralByteBufferFingerprint.exception
generalHook("$ADS_PATH/LithoFilterPatch;->filter") generalHook("$ADS_PATH/LithoFilterPatch;->filter")

View File

@ -1,13 +1,31 @@
package app.revanced.patches.youtube.utils.litho.fingerprints package app.revanced.patches.youtube.utils.litho.fingerprints
import app.revanced.patcher.extensions.or
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
import com.android.tools.smali.dexlib2.AccessFlags
import com.android.tools.smali.dexlib2.Opcode import com.android.tools.smali.dexlib2.Opcode
object GeneralByteBufferFingerprint : MethodFingerprint( object GeneralByteBufferFingerprint : MethodFingerprint(
returnType = "L", returnType = "V",
accessFlags = AccessFlags.PUBLIC or AccessFlags.FINAL,
parameters = listOf("I", "Ljava/nio/ByteBuffer;"),
opcodes = listOf( opcodes = listOf(
Opcode.ADD_INT_2ADDR, Opcode.IPUT_OBJECT,
Opcode.INVOKE_VIRTUAL Opcode.IF_EQZ,
Opcode.IPUT,
Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT,
Opcode.SUB_INT_2ADDR,
Opcode.IPUT,
Opcode.IGET_OBJECT,
Opcode.INVOKE_VIRTUAL,
Opcode.MOVE_RESULT,
Opcode.IPUT,
Opcode.RETURN_VOID,
Opcode.CONST_4,
Opcode.IPUT,
Opcode.IPUT,
Opcode.GOTO
), ),
strings = listOf("Unssuported TextDecorator adjustment. Extension: %s") customFingerprint = { methodDef, _ -> methodDef.name == "f" }
) )

View File

@ -40,7 +40,8 @@ import app.revanced.util.resources.ResourceHelper.setMicroG
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

View File

@ -61,7 +61,8 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference
"18.36.39", "18.36.39",
"18.37.36", "18.37.36",
"18.38.44", "18.38.44",
"18.39.41" "18.39.41",
"18.40.34"
] ]
) )
] ]

Some files were not shown because too many files have changed in this diff Show More