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:
inotia00
2024-12-17 13:35:29 +09:00
parent 50850a1fc6
commit 5f3a71ecc0
3 changed files with 34 additions and 19 deletions

View File

@ -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_34_or_greater
import app.revanced.patches.youtube.utils.playservice.is_18_39_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_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_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.playservice.versionCheckPatch
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addPreference import app.revanced.patches.youtube.utils.settings.ResourceUtils.addPreference
import app.revanced.patches.youtube.utils.settings.settingsPatch import app.revanced.patches.youtube.utils.settings.settingsPatch
@ -81,18 +84,6 @@ val spoofAppVersionPatch = resourcePatch(
execute { 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( addPreference(
arrayOf( arrayOf(
"PREFERENCE_SCREEN: GENERAL", "PREFERENCE_SCREEN: GENERAL",
@ -102,7 +93,35 @@ val spoofAppVersionPatch = resourcePatch(
SPOOF_APP_VERSION 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")
} }
} }

View File

@ -246,14 +246,8 @@
<item>ANDROID_VR</item> <item>ANDROID_VR</item>
</string-array> </string-array>
<string-array name="revanced_spoof_app_version_target_entries"> <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>
<string-array name="revanced_spoof_app_version_target_entry_values"> <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>
<string-array name="revanced_third_party_youtube_music_label"> <string-array name="revanced_third_party_youtube_music_label">
<item>YouTube Music</item> <item>YouTube Music</item>

View File

@ -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_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_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_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 --> <!-- PreferenceScreen: General, PreferenceCategory: General, PreferenceScreen: Account menu -->
<string name="revanced_preference_screen_account_menu_title">Account menu</string> <string name="revanced_preference_screen_account_menu_title">Account menu</string>