mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
chore(YouTube): Match some Extension with ReVanced
This commit is contained in:
@ -2,13 +2,21 @@ package app.revanced.patches.youtube.utils.fix.cairo
|
||||
|
||||
import app.revanced.patcher.patch.bytecodePatch
|
||||
import app.revanced.patches.youtube.misc.backgroundplayback.backgroundPlaybackPatch
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_04_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.versionCheckPatch
|
||||
import app.revanced.util.fingerprint.injectLiteralInstructionBooleanCall
|
||||
import app.revanced.util.fingerprint.resolvable
|
||||
|
||||
val cairoSettingsPatch = bytecodePatch(
|
||||
description = "cairoSettingsPatch"
|
||||
) {
|
||||
dependsOn(versionCheckPatch)
|
||||
|
||||
execute {
|
||||
if (!is_19_04_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
|
||||
/**
|
||||
* Cairo Fragment was added since YouTube v19.04.38.
|
||||
* Disable this for the following reasons:
|
||||
@ -19,11 +27,9 @@ val cairoSettingsPatch = bytecodePatch(
|
||||
* or <a href="https://github.com/qnblackcat/uYouPlus/issues/1468">uYouPlus#1468</a>
|
||||
* for screenshots of the Cairo Fragment.
|
||||
*/
|
||||
if (carioFragmentConfigFingerprint.resolvable()) {
|
||||
carioFragmentConfigFingerprint.injectLiteralInstructionBooleanCall(
|
||||
45532100L,
|
||||
"0x0"
|
||||
)
|
||||
}
|
||||
carioFragmentConfigFingerprint.injectLiteralInstructionBooleanCall(
|
||||
CAIRO_FRAGMENT_FEATURE_FLAG,
|
||||
"0x0"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user