mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-24 19:02:11 +02:00
feat(YouTube Music - Spoof client): Excluded by default https://github.com/inotia00/ReVanced_Extended/issues/2832
This commit is contained in:
parent
d4af0f1ee0
commit
cf2264116e
@ -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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user