feat(YouTube Music - Spoof client): Excluded by default https://github.com/inotia00/ReVanced_Extended/issues/2832

This commit is contained in:
inotia00 2025-03-14 18:21:26 +09:00
parent d4af0f1ee0
commit cf2264116e
2 changed files with 4 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class BaseSettings {
* These settings are used by YouTube Music. * These settings are used by YouTube Music.
* Some patches are in a shared path, so they are declared here. * Some patches are in a shared path, so they are declared here.
*/ */
public static final BooleanSetting SPOOF_CLIENT = new BooleanSetting("revanced_spoof_client", TRUE, true); public static final BooleanSetting SPOOF_CLIENT = new BooleanSetting("revanced_spoof_client", FALSE, true);
public static final EnumSetting<MusicAppClient.ClientType> SPOOF_CLIENT_TYPE = new EnumSetting<>("revanced_spoof_client_type", MusicAppClient.ClientType.IOS_MUSIC_6_21, true); public static final EnumSetting<MusicAppClient.ClientType> SPOOF_CLIENT_TYPE = new EnumSetting<>("revanced_spoof_client_type", MusicAppClient.ClientType.IOS_MUSIC_6_21, true);
/** /**

View File

@ -64,7 +64,8 @@ private const val CLIENT_INFO_CLASS_DESCRIPTOR =
@Suppress("unused") @Suppress("unused")
val spoofClientPatch = bytecodePatch( val spoofClientPatch = bytecodePatch(
SPOOF_CLIENT.title, SPOOF_CLIENT.title,
SPOOF_CLIENT.summary SPOOF_CLIENT.summary,
false,
) { ) {
compatibleWith(COMPATIBLE_PACKAGE) compatibleWith(COMPATIBLE_PACKAGE)
@ -359,7 +360,7 @@ val spoofClientPatch = bytecodePatch(
addSwitchPreference( addSwitchPreference(
CategoryType.MISC, CategoryType.MISC,
"revanced_spoof_client", "revanced_spoof_client",
"true" "false"
) )
addPreferenceWithIntent( addPreferenceWithIntent(
CategoryType.MISC, CategoryType.MISC,