mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 13:17:46 +02:00
chore(YouTube): replace with a fingerprint that supports a wider range of versions
This commit is contained in:
@ -8,7 +8,9 @@ import com.android.tools.smali.dexlib2.Opcode
|
||||
internal object ShortsToolBarFingerprint : MethodFingerprint(
|
||||
returnType = "V",
|
||||
accessFlags = AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR,
|
||||
parameters = listOf("Z", "L", "L"),
|
||||
opcodes = listOf(Opcode.IPUT_BOOLEAN),
|
||||
strings = listOf("Null topBarButtons")
|
||||
strings = listOf("Null topBarButtons"),
|
||||
customFingerprint = { methodDef, _ ->
|
||||
methodDef.parameterTypes.firstOrNull() == "Z"
|
||||
}
|
||||
)
|
@ -8,7 +8,10 @@ import app.revanced.patches.shared.integrations.BaseIntegrationsPatch.Integratio
|
||||
* In 2023 supported was ended and is no longer available,
|
||||
* but this may still be used by older apps:
|
||||
* https://developers.google.com/youtube/android/player
|
||||
*
|
||||
* Deprecated in YouTube v19.38.xx+.
|
||||
*/
|
||||
@Deprecated("Fingerprint is obsolete and will be deleted soon")
|
||||
internal object StandalonePlayerActivityFingerprint : IntegrationsFingerprint(
|
||||
customFingerprint = { methodDef, _ ->
|
||||
methodDef.definingClass == "Lcom/google/android/youtube/api/StandalonePlayerActivity;"
|
||||
|
Reference in New Issue
Block a user