diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/ClientType.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/ClientType.java index 2a1e4868e4..bfa5af526d 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/ClientType.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/ClientType.java @@ -36,6 +36,20 @@ public enum ClientType { true, "Android TV" ), + // Cannot play livestreams and lacks HDR, but can play videos with music and labeled "for children". + ANDROID_CREATOR( + 14, + "ANDROID_CREATOR", + Build.MANUFACTURER, + Build.MODEL, + "Android", + "11", + "com.google.android.apps.youtube.creator/24.45.100 (Linux; U; Android 11) gzip", + "30", + "24.45.100", + true, + "Android Creator" + ), ANDROID_VR( ANDROID_VR_NO_AUTH.id, ANDROID_VR_NO_AUTH.clientName, @@ -76,19 +90,6 @@ public enum ClientType { forceAVC() ? "iOS TV Force AVC" : "iOS TV" - ), - ANDROID_CREATOR( - 14, - "ANDROID_CREATOR", - Build.MANUFACTURER, - Build.MODEL, - "Android", - "11", - "com.google.android.apps.youtube.creator/24.45.100 (Linux; U; Android 11) gzip", - "30", - "24.45.100", - true, - "Android Creator" ); private static boolean forceAVC() { diff --git a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java index 9554bdfaac..225f5c6b9a 100644 --- a/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java +++ b/extensions/shared/library/src/main/java/app/revanced/extension/shared/spoof/SpoofVideoStreamsPatch.java @@ -77,9 +77,9 @@ public static String blockInitPlaybackRequest(String originalUrlString) { String path = originalUri.getPath(); if (path != null && path.contains("initplayback")) { - Logger.printDebug(() -> "Blocking 'initplayback' by returning unreachable url"); + Logger.printDebug(() -> "Blocking 'initplayback' by clearing query"); - return UNREACHABLE_HOST_URI_STRING; + return originalUri.buildUpon().clearQuery().build().toString(); } } catch (Exception ex) { Logger.printException(() -> "blockInitPlaybackRequest failure", ex); diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/SpoofStreamingDataSideEffectsPreference.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/SpoofStreamingDataSideEffectsPreference.java index 0fc4283e2a..5d43cb81f2 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/SpoofStreamingDataSideEffectsPreference.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/settings/preference/SpoofStreamingDataSideEffectsPreference.java @@ -87,11 +87,6 @@ private void updateUI() { // Android VR supports AV1 but all other clients do not. if (clientType != ClientType.ANDROID_VR && clientType != ClientType.ANDROID_VR_NO_AUTH) { summary += '\n' + str("revanced_spoof_video_streams_about_no_av1"); - - // Android Creator does not support HDR. - if (clientType == ClientType.ANDROID_CREATOR) { - summary += '\n' + str("revanced_spoof_video_streams_about_no_hdr"); - } } setTitle(title); diff --git a/patches/src/main/resources/addresources/values/arrays.xml b/patches/src/main/resources/addresources/values/arrays.xml index 3165e0a472..a8bf565d9f 100644 --- a/patches/src/main/resources/addresources/values/arrays.xml +++ b/patches/src/main/resources/addresources/values/arrays.xml @@ -116,7 +116,6 @@ Android VR @string/revanced_spoof_video_streams_client_type_android_vr_no_auth - Android Creator Android TV iOS TV @@ -124,7 +123,6 @@ ANDROID_VR ANDROID_VR_NO_AUTH - ANDROID_CREATOR ANDROID_UNPLUGGED IOS_UNPLUGGED diff --git a/patches/src/main/resources/addresources/values/strings.xml b/patches/src/main/resources/addresources/values/strings.xml index 2e4a803d7f..e9e78eac40 100644 --- a/patches/src/main/resources/addresources/values/strings.xml +++ b/patches/src/main/resources/addresources/values/strings.xml @@ -1396,7 +1396,6 @@ AVC has a maximum resolution of 1080p, Opus audio codec is not available, and vi • Stable volume is not available • Force original audio is not available" • No AV1 video codec - • No HDR video Show in Stats for nerds Client type is shown in Stats for nerds Client is hidden in Stats for nerds