From 892f86ce3a01a3eb0451a408d7d0d28d4ad3af32 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:40:55 +0400 Subject: [PATCH] chore(YouTube - Spoof video streams): Update iOS side effects text --- .../app/revanced/extension/shared/settings/BaseSettings.java | 2 +- .../shared/spoof/requests/StreamingDataRequest.java | 2 +- .../youtube/api/innertube/InnertubeContext$ClientInfo.java | 5 ----- patches/src/main/resources/addresources/values/strings.xml | 3 ++- 4 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 extensions/youtube/stub/src/main/java/com/google/protos/youtube/api/innertube/InnertubeContext$ClientInfo.java diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java index 1f5c1113de..136d1d468f 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/settings/BaseSettings.java @@ -24,7 +24,7 @@ public class BaseSettings { public static final BooleanSetting SPOOF_VIDEO_STREAMS = new BooleanSetting("revanced_spoof_video_streams", TRUE, true, "revanced_spoof_video_streams_user_dialog_message"); public static final EnumSetting SPOOF_VIDEO_STREAMS_LANGUAGE = new EnumSetting<>("revanced_spoof_video_streams_language", AudioStreamLanguage.DEFAULT, new AudioStreamLanguageOverrideAvailability()); - public static final BooleanSetting SPOOF_STREAMING_DATA_STATS_FOR_NERDS = new BooleanSetting("revanced_spoof_streaming_data_stats_for_nerds", TRUE); + public static final BooleanSetting SPOOF_STREAMING_DATA_STATS_FOR_NERDS = new BooleanSetting("revanced_spoof_streaming_data_stats_for_nerds", TRUE, parent(SPOOF_VIDEO_STREAMS)); public static final BooleanSetting SPOOF_VIDEO_STREAMS_IOS_FORCE_AVC = new BooleanSetting("revanced_spoof_video_streams_ios_force_avc", FALSE, true, "revanced_spoof_video_streams_ios_force_avc_user_dialog_message", new SpoofiOSAvailability()); // Client type must be last spoof setting due to cyclic references. diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/requests/StreamingDataRequest.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/requests/StreamingDataRequest.java index 143dfdf3ad..0cf361bfdd 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/requests/StreamingDataRequest.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/requests/StreamingDataRequest.java @@ -182,7 +182,7 @@ private static ByteBuffer fetch(String videoId, Map playerHeader // Retry with different client if empty response body is received. int i = 0; for (ClientType clientType : CLIENT_ORDER_TO_USE) { - // Show an error if the last client type fails, or if the debug is enabled then show for all attempts. + // Show an error if the last client type fails, or if debug is enabled then show for all attempts. final boolean showErrorToast = (++i == CLIENT_ORDER_TO_USE.length) || debugEnabled; HttpURLConnection connection = send(clientType, videoId, playerHeaders, showErrorToast); diff --git a/extensions/youtube/stub/src/main/java/com/google/protos/youtube/api/innertube/InnertubeContext$ClientInfo.java b/extensions/youtube/stub/src/main/java/com/google/protos/youtube/api/innertube/InnertubeContext$ClientInfo.java deleted file mode 100644 index f517608f20..0000000000 --- a/extensions/youtube/stub/src/main/java/com/google/protos/youtube/api/innertube/InnertubeContext$ClientInfo.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.google.protos.youtube.api.innertube; - -public class InnertubeContext$ClientInfo { - public int r; -} diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index e2650f1e5e..f566b1837e 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -1305,8 +1305,9 @@ Video playback may not work" "Enabling this might improve battery life and fix playback stuttering. AVC has a maximum resolution of 1080p, Opus audio codec is not available, and video playback will use more internet data than VP9 or AV1." - iOS TV spoofing side effects + iOS spoofing side effects "• Movies or paid videos may not play +• Stable volume is not available • Videos end 1 second early" Android spoofing side effects "• Audio track menu is missing