From 782b25b1fbc4e1b08d3150d388cf18afd11d9d1b Mon Sep 17 00:00:00 2001 From: Aaron Veil <70171475+anddea@users.noreply.github.com> Date: Mon, 27 May 2024 10:49:51 +0300 Subject: [PATCH] feat(YouTube): Remove `Spoof test client` patch --- .../patches/misc/SpoofTestClientPatch.java | 23 ------------------- .../youtube/settings/Settings.java | 1 - 2 files changed, 24 deletions(-) delete mode 100644 app/src/main/java/app/revanced/integrations/youtube/patches/misc/SpoofTestClientPatch.java diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/misc/SpoofTestClientPatch.java b/app/src/main/java/app/revanced/integrations/youtube/patches/misc/SpoofTestClientPatch.java deleted file mode 100644 index dcf41d1109..0000000000 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/misc/SpoofTestClientPatch.java +++ /dev/null @@ -1,23 +0,0 @@ -package app.revanced.integrations.youtube.patches.misc; - -import app.revanced.integrations.youtube.settings.Settings; - -/** - * @noinspection ALL - * Spoof the client name as 'ANDROID_TESTSUITE'. - * This is currently the only client name available on Android without DroidGuard results. - * invidious#4650 - */ -public class SpoofTestClientPatch { - private static final String ANDROID_TESTSUITE_VERSION_NAME = "1.9"; - private static final boolean spoofTestClientEnabled = - Settings.SPOOF_TEST_CLIENT.get(); - - public static boolean spoofTestClient() { - return spoofTestClientEnabled; - } - - public static String spoofTestClient(final String original) { - return spoofTestClientEnabled ? ANDROID_TESTSUITE_VERSION_NAME : original; - } -} diff --git a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java index 01efaa5662..51eb8e8778 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java +++ b/app/src/main/java/app/revanced/integrations/youtube/settings/Settings.java @@ -420,7 +420,6 @@ public class Settings extends BaseSettings { public static final BooleanSetting SANITIZE_SHARING_LINKS = new BooleanSetting("revanced_sanitize_sharing_links", true, true); public static final BooleanSetting DISABLE_QUIC_PROTOCOL = new BooleanSetting("revanced_disable_quic_protocol", FALSE, true); public static final BooleanSetting SPOOF_FORMAT_STREAM_DATA = new BooleanSetting("revanced_spoof_format_stream_data", FALSE, true); - public static final BooleanSetting SPOOF_TEST_CLIENT = new BooleanSetting("revanced_spoof_test_client", FALSE, true); public static final BooleanSetting SPOOF_CLIENT = new BooleanSetting("revanced_spoof_client", FALSE, true); public static final BooleanSetting SPOOF_CLIENT_USE_IOS = new BooleanSetting("revanced_spoof_client_use_ios", TRUE, true, parent(SPOOF_CLIENT));