mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 01:51:27 +01:00
drop 20.13.41 for simplicity
This commit is contained in:
@@ -3,4 +3,4 @@ org.gradle.jvmargs = -Xms512M -Xmx2048M
|
||||
org.gradle.parallel = true
|
||||
android.useAndroidX = true
|
||||
kotlin.code.style = official
|
||||
version = 5.47.0-dev.5
|
||||
version = liso-6.0.0-dev.1
|
||||
|
||||
@@ -79,7 +79,6 @@ val hideAdsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -26,7 +26,6 @@ val hideGetPremiumPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ val videoAdsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -54,7 +54,6 @@ val copyVideoUrlPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -27,7 +27,6 @@ val removeViewerDiscretionDialogPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -7,10 +7,13 @@ import app.revanced.patches.all.misc.resources.addResources
|
||||
import app.revanced.patches.all.misc.resources.addResourcesPatch
|
||||
import app.revanced.patches.shared.misc.settings.preference.SwitchPreference
|
||||
import app.revanced.patches.youtube.misc.extension.sharedExtensionPatch
|
||||
import app.revanced.patches.youtube.misc.playservice.is_20_14_or_greater
|
||||
import app.revanced.patches.youtube.misc.playservice.versionCheckPatch
|
||||
import app.revanced.patches.youtube.misc.settings.PreferenceScreen
|
||||
import app.revanced.patches.youtube.misc.settings.settingsPatch
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
import java.util.logging.Logger
|
||||
|
||||
private const val EXTENSION_CLASS_DESCRIPTOR =
|
||||
"Lapp/revanced/extension/youtube/patches/DisableDoubleTapActionsPatch;"
|
||||
@@ -24,11 +27,11 @@ val disableDoubleTapActionsPatch = bytecodePatch(
|
||||
sharedExtensionPatch,
|
||||
settingsPatch,
|
||||
addResourcesPatch,
|
||||
versionCheckPatch
|
||||
)
|
||||
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
@@ -36,6 +39,15 @@ val disableDoubleTapActionsPatch = bytecodePatch(
|
||||
)
|
||||
|
||||
execute {
|
||||
if (!is_20_14_or_greater) {
|
||||
// Show a message if users have version constrain off and are patching the oldest version,
|
||||
// just to prevent spamming a cryptic error message the user may not understand
|
||||
// and don't add in app settings that won't work.
|
||||
return@execute Logger.getLogger(this::class.java.name).warning(
|
||||
"Disable double tap actions requires 20.14.43+"
|
||||
)
|
||||
}
|
||||
|
||||
addResources("youtube", "interaction.doubletap.disableDoubleTapActionsPatch")
|
||||
|
||||
PreferenceScreen.PLAYER.addPreferences(
|
||||
|
||||
@@ -74,7 +74,6 @@ val downloadsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -21,7 +21,6 @@ val seekbarPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -96,7 +96,6 @@ val swipeControlsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -25,7 +25,6 @@ val autoCaptionsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -26,7 +26,6 @@ val customBrandingPatch = baseCustomBrandingPatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -101,7 +101,6 @@ val changeHeaderPatch = resourcePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -27,7 +27,6 @@ val hideButtonsPatch = resourcePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
// 20.22+ does not yet support hiding all player buttons.
|
||||
|
||||
@@ -39,7 +39,6 @@ val navigationButtonsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -46,7 +46,6 @@ val hidePlayerOverlayButtonsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -34,7 +34,6 @@ val changeFormFactorPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -64,7 +64,6 @@ val hideEndScreenCardsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -32,7 +32,6 @@ val hideEndScreenSuggestedVideoPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -30,7 +30,6 @@ val disableFullscreenAmbientModePatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -111,7 +111,6 @@ val hideLayoutComponentsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -53,7 +53,6 @@ val hideInfoCardsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -25,7 +25,6 @@ val hidePlayerFlyoutMenuPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -30,7 +30,6 @@ val hideRelatedVideoOverlayPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -30,7 +30,6 @@ val disableRollingNumberAnimationPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -182,7 +182,6 @@ val hideShortsComponentsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
// 20.22+ does not yet support hiding Shorts action buttons.
|
||||
|
||||
@@ -27,7 +27,6 @@ val disableSignInToTvPopupPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ val hideTimestampPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -85,7 +85,6 @@ val miniplayerPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ val playerPopupPanelsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ internal val exitFullscreenPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ val openVideosFullscreenPatch = bytecodePatch(
|
||||
"19.43.41",
|
||||
"19.43.41",
|
||||
"19.47.53",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -28,7 +28,6 @@ val customPlayerOverlayOpacityPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -64,7 +64,6 @@ val returnYouTubeDislikePatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -40,7 +40,6 @@ val wideSearchbarPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
// 20.31.40+ not supported. YouTube code was removed.
|
||||
|
||||
@@ -45,7 +45,6 @@ val shortsAutoplayPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -47,7 +47,6 @@ val openShortsInRegularPlayerPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -133,7 +133,6 @@ val sponsorBlockPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -39,7 +39,6 @@ val spoofAppVersionPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -30,7 +30,6 @@ val changeStartPagePatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -35,7 +35,6 @@ val disableResumingShortsOnStartupPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -157,7 +157,6 @@ val themePatch = baseThemePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -34,7 +34,6 @@ val alternativeThumbnailsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -28,7 +28,6 @@ val bypassImageRegionRestrictionsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -24,7 +24,6 @@ val announcementsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -44,7 +44,6 @@ val backgroundPlaybackPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -18,7 +18,6 @@ val enableDebuggingPatch = enableDebuggingPatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -25,7 +25,6 @@ val spoofDeviceDimensionsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -13,7 +13,6 @@ val checkWatchHistoryDomainNameResolutionPatch = checkWatchHistoryDomainNameReso
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -36,7 +36,6 @@ val gmsCoreSupportPatch = gmsCoreSupportPatch(
|
||||
compatibleWith(
|
||||
YOUTUBE_PACKAGE_NAME(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -27,7 +27,6 @@ val disableHapticFeedbackPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -27,7 +27,6 @@ val bypassURLRedirectsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -42,7 +42,6 @@ val openLinksExternallyPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -29,7 +29,6 @@ val loopVideoPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -12,10 +12,10 @@ val sanitizeSharingLinksPatch = sanitizeSharingLinksPatch(
|
||||
sharedExtensionPatch,
|
||||
settingsPatch,
|
||||
)
|
||||
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -33,7 +33,6 @@ val spoofVideoStreamsPatch = spoofVideoStreamsPatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -20,7 +20,6 @@ val forceOriginalAudioPatch = forceOriginalAudioPatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -58,7 +58,6 @@ val disableVideoCodecsPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -25,7 +25,6 @@ val videoQualityPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
@@ -29,7 +29,6 @@ val playbackSpeedPatch = bytecodePatch(
|
||||
compatibleWith(
|
||||
"com.google.android.youtube"(
|
||||
"19.43.41",
|
||||
"20.13.41",
|
||||
"20.14.43",
|
||||
"20.21.37",
|
||||
"20.31.40",
|
||||
|
||||
Reference in New Issue
Block a user