feat(spoof-app-version): user selectable version to spoof

This commit is contained in:
inotia00
2023-04-30 18:17:58 +09:00
parent ed32eddd71
commit c4e6c6e688
5 changed files with 27 additions and 13 deletions

View File

@ -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"
)
)
}
}

View File

@ -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
*/