From 9d6f305b7c923e62b89581d221fedbe1e3f81835 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Thu, 18 Apr 2024 17:19:04 +0400
Subject: [PATCH] fix(YouTube - Spoof device dimensions): Warn about potential
performance issues (#3039)
---
.../misc/dimensions/spoof/SpoofDeviceDimensionsPatch.kt | 2 +-
src/main/resources/addresources/values/strings.xml | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/dimensions/spoof/SpoofDeviceDimensionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/dimensions/spoof/SpoofDeviceDimensionsPatch.kt
index 123bbd356d..4ed76e24aa 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/misc/dimensions/spoof/SpoofDeviceDimensionsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/misc/dimensions/spoof/SpoofDeviceDimensionsPatch.kt
@@ -14,7 +14,7 @@ import app.revanced.util.exception
@Patch(
name = "Spoof device dimensions",
- description = "Adds an option to spoof the device dimensions which unlocks higher video qualities if they aren't available on the device.",
+ description = "Adds an option to spoof the device dimensions which can unlock higher video qualities.",
dependencies = [IntegrationsPatch::class, SettingsPatch::class, AddResourcesPatch::class],
compatiblePackages = [
CompatiblePackage(
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index fdaec51e9c..476c9cf5ae 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -1004,8 +1004,9 @@
Spoof device dimensions
- Device dimensions spoofed
- Device dimensions not spoofed\n\nSpoofing the device dimensions can unlock higher video qualities but unknown side effects may occur
+ Device dimensions spoofed\n\nHigher video qualities might be unlocked but you may experience video playback stuttering, worse battery life, and unknown side effects
+ Device dimensions not spoofed\n\nEnabling this can unlock higher video qualities
+ Enabling this can cause video playback stuttering, worse battery life, and unknown side effects.
GmsCore Settings