mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(spoof-app-version): user selectable version to spoof
This commit is contained in:
@ -83,17 +83,5 @@ class PatchOptions : ResourcePatch {
|
||||
description = "The background color of the dark theme. Can be a hex color or a resource reference."
|
||||
)
|
||||
)
|
||||
|
||||
/**
|
||||
* Client Spoofing Version
|
||||
*/
|
||||
internal var clientSpoofVersion: String? by option(
|
||||
PatchOption.StringOption(
|
||||
key = "clientSpoofVersion",
|
||||
default = "17.28.35",
|
||||
title = "Old YouTube version to override",
|
||||
description = "Type the client version to spoof when Old Layout is enabled"
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -31,6 +31,11 @@ class SpoofAppVersionPatch : ResourcePatch {
|
||||
|
||||
GeneralVersionSpoofPatch.injectSpoof("$MISC_PATH/VersionOverridePatch;->getVersionOverride(Ljava/lang/String;)Ljava/lang/String;")
|
||||
|
||||
/**
|
||||
* Copy arrays
|
||||
*/
|
||||
context.copyXmlNode("youtube/spoofappversion/host", "values/arrays.xml", "resources")
|
||||
|
||||
/**
|
||||
* Add settings
|
||||
*/
|
||||
|
Reference in New Issue
Block a user