diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/updatescreen/UpdateScreenPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/updatescreen/UpdateScreenPatch.kt
index e05157807..4f679b799 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/misc/updatescreen/UpdateScreenPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/misc/updatescreen/UpdateScreenPatch.kt
@@ -2,23 +2,18 @@ package app.revanced.patches.youtube.misc.updatescreen
import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
-import app.revanced.patcher.extensions.InstructionExtensions.addInstructionsWithLabels
-import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
-import app.revanced.patcher.util.smali.ExternalLabel
import app.revanced.patches.youtube.misc.updatescreen.fingerprints.AppBlockingCheckResultToStringFingerprint
import app.revanced.patches.youtube.utils.integrations.Constants.MISC_PATH
import app.revanced.patches.youtube.utils.settings.SettingsPatch
import app.revanced.util.exception
-import com.android.tools.smali.dexlib2.Opcode
-import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
import com.android.tools.smali.dexlib2.util.MethodUtil
@Patch(
name = "Disable update screen",
- description = "Adds an option to disable the \"Update your app\" screen that appears when using an outdated client.",
+ description = "Disable the \"Update your app\" screen that appears when using an outdated client.",
dependencies = [SettingsPatch::class],
compatiblePackages = [
CompatiblePackage(
@@ -62,21 +57,10 @@ object UpdateScreenPatch : BytecodePatch(
MethodUtil.isConstructor(method)
&& method.parameters == listOf("Landroid/content/Intent;", "Z")
}?.addInstructions(
- 1, """
- invoke-static {}, $INTEGRATIONS_CLASS_DESCRIPTOR->disableUpdateScreen(Landroid/content/Intent;)Landroid/content/Intent;
- move-result-object p1
- """
+ 1,
+ "const/4 p1, 0x0"
) ?: throw AppBlockingCheckResultToStringFingerprint.exception
- /**
- * Add settings
- */
- SettingsPatch.addPreference(
- arrayOf(
- "SETTINGS: DISABLE_UPDATE_SCREEN"
- )
- )
-
SettingsPatch.updatePatchStatus("Disable update screen")
}
}
\ No newline at end of file
diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml
index 800499a72..539785500 100644
--- a/src/main/resources/youtube/settings/host/values/strings.xml
+++ b/src/main/resources/youtube/settings/host/values/strings.xml
@@ -151,8 +151,6 @@ Note: This feature hasn't been tested."
Note: Disabling the speed overlay restores the 'Slide to seek' behavior of the old layout."
Disable speed overlay
- Disables the \"Update your app\" screen that appears when using an outdated client.
- Disable update screen
The amount of seconds the double press back to exit.
Double back timeout
Entering fullscreen when swiping down below the video player is disabled.
diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
index 0d285b34f..ddc0b66c7 100644
--- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml
+++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml
@@ -325,9 +325,6 @@
SETTINGS: AMBIENT_MODE_SWITCH -->
-
-