feat(YouTube - Spoof streaming data): Separate Skip Onesie response encryption setting from Spoof streaming data setting (For YouTube 19.34.42+, Closes https://github.com/inotia00/ReVanced_Extended/issues/2823)

This commit is contained in:
inotia00
2025-03-14 18:24:57 +09:00
parent cf2264116e
commit 1a0b32b8d5
5 changed files with 27 additions and 7 deletions

View File

@ -61,6 +61,10 @@ val spoofStreamingDataPatch = bytecodePatch(
execute {
var settingArray = arrayOf(
"SETTINGS: SPOOF_STREAMING_DATA"
)
// region Get replacement streams at player requests.
hookBuildRequest("$EXTENSION_CLASS_DESCRIPTOR->fetchStreams(Ljava/lang/String;Ljava/util/Map;)V")
@ -327,6 +331,8 @@ val spoofStreamingDataPatch = bytecodePatch(
ONESIE_ENCRYPTION_FEATURE_FLAG,
"$EXTENSION_CLASS_DESCRIPTOR->skipResponseEncryption(Z)Z"
)
settingArray += "SETTINGS: SKIP_RESPONSE_ENCRYPTION"
}
// endregion
@ -339,9 +345,7 @@ val spoofStreamingDataPatch = bytecodePatch(
)
addPreference(
arrayOf(
"SETTINGS: SPOOF_STREAMING_DATA"
),
settingArray,
SPOOF_STREAMING_DATA
)
}