mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-13 13:47:42 +02:00
feat(YouTube - Spoof app version): Add target version 19.26.42 - Disable Cairo icon in navigation and toolbar
and 19.33.37 - Restore old playback speed flyout panel
This commit is contained in:
@ -13,7 +13,10 @@ import app.revanced.patches.youtube.utils.patch.PatchList.SPOOF_APP_VERSION
|
||||
import app.revanced.patches.youtube.utils.playservice.is_18_34_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_18_39_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_18_49_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_17_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_23_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_28_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_34_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.versionCheckPatch
|
||||
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addPreference
|
||||
import app.revanced.patches.youtube.utils.settings.settingsPatch
|
||||
@ -81,18 +84,6 @@ val spoofAppVersionPatch = resourcePatch(
|
||||
|
||||
execute {
|
||||
|
||||
if (is_18_34_or_greater) {
|
||||
appendAppVersion("18.33.40")
|
||||
if (is_18_39_or_greater) {
|
||||
appendAppVersion("18.38.45")
|
||||
if (is_18_49_or_greater) {
|
||||
appendAppVersion("18.48.39")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// region add settings
|
||||
|
||||
addPreference(
|
||||
arrayOf(
|
||||
"PREFERENCE_SCREEN: GENERAL",
|
||||
@ -102,7 +93,35 @@ val spoofAppVersionPatch = resourcePatch(
|
||||
SPOOF_APP_VERSION
|
||||
)
|
||||
|
||||
// endregion
|
||||
if (!is_19_17_or_greater) {
|
||||
appendAppVersion("17.41.37")
|
||||
appendAppVersion("18.05.40")
|
||||
appendAppVersion("18.17.43")
|
||||
if (!is_18_34_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
appendAppVersion("18.33.40")
|
||||
}
|
||||
|
||||
if (!is_18_39_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
appendAppVersion("18.38.45")
|
||||
|
||||
if (!is_18_49_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
appendAppVersion("18.48.39")
|
||||
|
||||
if (!is_19_28_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
appendAppVersion("19.26.42")
|
||||
|
||||
if (!is_19_34_or_greater) {
|
||||
return@execute
|
||||
}
|
||||
appendAppVersion("19.33.37")
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -246,14 +246,8 @@
|
||||
<item>ANDROID_VR</item>
|
||||
</string-array>
|
||||
<string-array name="revanced_spoof_app_version_target_entries">
|
||||
<item>@string/revanced_spoof_app_version_target_entry_18_17_43</item>
|
||||
<item>@string/revanced_spoof_app_version_target_entry_18_05_40</item>
|
||||
<item>@string/revanced_spoof_app_version_target_entry_17_41_37</item>
|
||||
</string-array>
|
||||
<string-array name="revanced_spoof_app_version_target_entry_values">
|
||||
<item>18.17.43</item>
|
||||
<item>18.05.40</item>
|
||||
<item>17.41.37</item>
|
||||
</string-array>
|
||||
<string-array name="revanced_third_party_youtube_music_label">
|
||||
<item>YouTube Music</item>
|
||||
|
@ -390,6 +390,8 @@ If later turned off, it is recommended to clear the app data to prevent UI bugs.
|
||||
<string name="revanced_spoof_app_version_target_entry_18_33_40">18.33.40 - Restore old Shorts action bar</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_18_38_45">18.38.45 - Restore old default video quality behavior</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_18_48_39">18.48.39 - Disable views and likes from being updated in real time</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_19_26_42">19.26.42 - Disable Cairo icon in navigation and toolbar</string>
|
||||
<string name="revanced_spoof_app_version_target_entry_19_33_37">19.33.37 - Restore old playback speed flyout panel</string>
|
||||
|
||||
<!-- PreferenceScreen: General, PreferenceCategory: General, PreferenceScreen: Account menu -->
|
||||
<string name="revanced_preference_screen_account_menu_title">Account menu</string>
|
||||
|
Reference in New Issue
Block a user