From 2a4457becc41974eea2af2def3f750aa4501cf9e Mon Sep 17 00:00:00 2001 From: inotia00 <108592928+inotia00@users.noreply.github.com> Date: Thu, 16 Jan 2025 12:42:39 +0900 Subject: [PATCH] bump 5.2.2 --- README.md | 16 ++++++------ gradle.properties | 2 +- patches.json | 57 +++++++++++++++++++++-------------------- patches/api/patches.api | 25 +++++++++++++++--- 4 files changed, 60 insertions(+), 40 deletions(-) diff --git a/README.md b/README.md index c9f8a3daa9..43951cd529 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,12 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Custom header for YouTube` | Applies a custom header in the top left corner within the app. | 18.29.38 ~ 19.44.39 | | `Description components` | Adds options to hide and disable description components. | 18.29.38 ~ 19.44.39 | | `Disable QUIC protocol` | Adds an option to disable CronetEngine's QUIC protocol. | 18.29.38 ~ 19.44.39 | -| `Disable auto audio tracks` | Adds an option to disable audio tracks from being automatically enabled. | 18.29.38 ~ 19.44.39 | -| `Disable auto captions` | Adds an option to disable captions from being automatically enabled. | 18.29.38 ~ 19.44.39 | +| `Disable forced auto audio tracks` | Adds an option to disable audio tracks from being automatically enabled. | 18.29.38 ~ 19.44.39 | +| `Disable forced auto captions` | Adds an option to disable captions from being automatically enabled. | 18.29.38 ~ 19.44.39 | | `Disable haptic feedback` | Adds options to disable haptic feedback when swiping in the video player. | 18.29.38 ~ 19.44.39 | | `Disable resuming Shorts on startup` | Adds an option to disable the Shorts player from resuming on app startup when Shorts were last being watched. | 18.29.38 ~ 19.44.39 | | `Disable splash animation` | Adds an option to disable the splash animation on app startup. | 18.29.38 ~ 19.44.39 | -| `Enable OPUS codec` | Adds an options to enable the OPUS audio codec if the player response includes. | 18.29.38 ~ 19.44.39 | +| `Enable OPUS codec` | Adds an options to enable the OPUS audio codec if the player response includes it. | 18.29.38 ~ 19.44.39 | | `Enable debug logging` | Adds an option to enable debug logging. | 18.29.38 ~ 19.44.39 | | `Enable external browser` | Adds an option to always open links in your browser instead of in the in-app-browser. | 18.29.38 ~ 19.44.39 | | `Enable gradient loading screen` | Adds an option to enable the gradient loading screen. | 18.29.38 ~ 19.44.39 | @@ -51,9 +51,9 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Hook download actions` | Adds support to download videos with an external downloader app using the in-app download button. | 18.29.38 ~ 19.44.39 | | `Layout switch` | Adds an option to spoof the dpi in order to use a tablet or phone layout. | 18.29.38 ~ 19.44.39 | | `MaterialYou` | Applies the MaterialYou theme for Android 12+ devices. | 18.29.38 ~ 19.44.39 | -| `Miniplayer` | Adds options to change the in app minimized player, and if patching target 19.16+ adds options to use modern miniplayers. | 18.29.38 ~ 19.44.39 | +| `Miniplayer` | Adds options to change the in-app minimized player, and if patching target 19.16+ adds options to use modern miniplayers. | 18.29.38 ~ 19.44.39 | | `Navigation bar components` | Adds options to hide or change components related to the navigation bar. | 18.29.38 ~ 19.44.39 | -| `Overlay buttons` | Adds options to display overlay buttons in the video player. | 18.29.38 ~ 19.44.39 | +| `Overlay buttons` | Adds options to display useful overlay buttons in the video player. | 18.29.38 ~ 19.44.39 | | `Player components` | Adds options to hide or change components related to the video player. | 18.29.38 ~ 19.44.39 | | `Remove background playback restrictions` | Removes restrictions on background playback, including for music and kids videos. | 18.29.38 ~ 19.44.39 | | `Remove viewer discretion dialog` | Adds an option to remove the dialog that appears when opening a video that has been age-restricted by accepting it automatically. This does not bypass the age restriction. | 18.29.38 ~ 19.44.39 | @@ -67,7 +67,7 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Spoof app version` | Adds options to spoof the YouTube client version. This can be used to restore old UI elements and features. | 18.29.38 ~ 19.44.39 | | `Spoof streaming data` | Adds options to spoof the streaming data to allow playback. | 18.29.38 ~ 19.44.39 | | `Swipe controls` | Adds options for controlling volume and brightness with swiping, and whether to enter fullscreen when swiping down below the player. | 18.29.38 ~ 19.44.39 | -| `Theme` | Changes the app's theme to the values specified in patch options. | 18.29.38 ~ 19.44.39 | +| `Theme` | Changes the app's themes to the values specified in patch options. | 18.29.38 ~ 19.44.39 | | `Toolbar components` | Adds options to hide or change components located on the toolbar, such as the search bar, header, and toolbar buttons. | 18.29.38 ~ 19.44.39 | | `Translations for YouTube` | Add translations or remove string resources. | 18.29.38 ~ 19.44.39 | | `Video playback` | Adds options to customize settings related to video playback, such as default video quality and playback speed. | 18.29.38 ~ 19.44.39 | @@ -91,10 +91,10 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm | `Dark theme` | Changes the app's dark theme to the values specified in patch options. | 6.20.51 ~ 7.25.53 | | `Disable Cairo splash animation` | Adds an option to disable Cairo splash animation. | 7.06.54 ~ 7.25.53 | | `Disable DRC audio` | Adds an option to disable DRC (Dynamic Range Compression) audio. | 6.20.51 ~ 7.25.53 | -| `Disable auto captions` | Adds an option to disable captions from being automatically enabled. | 6.20.51 ~ 7.25.53 | | `Disable dislike redirection` | Adds an option to disable redirection to the next track when clicking the Dislike button. | 6.20.51 ~ 7.25.53 | +| `Disable forced auto captions` | Adds an option to disable captions from being automatically enabled. | 6.20.51 ~ 7.25.53 | | `Disable music video in album` | Adds option to redirect music videos from albums for non-premium users. | 6.20.51 ~ 7.25.53 | -| `Enable OPUS codec` | Adds an options to enable the OPUS audio codec if the player response includes. | 6.20.51 ~ 7.25.53 | +| `Enable OPUS codec` | Adds an options to enable the OPUS audio codec if the player response includes it. | 6.20.51 ~ 7.25.53 | | `Enable debug logging` | Adds an option to enable debug logging. | 6.20.51 ~ 7.25.53 | | `Enable landscape mode` | Adds an option to enable landscape mode when rotating the screen on phones. | 6.20.51 ~ 7.25.53 | | `Flyout menu components` | Adds options to hide or change flyout menu components. | 6.20.51 ~ 7.25.53 | diff --git a/gradle.properties b/gradle.properties index 5de17c4010..70d42e4e10 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,5 +4,5 @@ org.gradle.parallel = true android.useAndroidX = true kotlin.code.style = official kotlin.jvm.target.validation.mode = IGNORE -version = 5.2.1 +version = 5.2.2 diff --git a/patches.json b/patches.json index dccb9d4e15..611167a517 100644 --- a/patches.json +++ b/patches.json @@ -747,7 +747,26 @@ "options": [] }, { - "name": "Disable auto audio tracks", + "name": "Disable dislike redirection", + "description": "Adds an option to disable redirection to the next track when clicking the Dislike button.", + "use": true, + "dependencies": [ + "Settings for YouTube Music" + ], + "compatiblePackages": { + "com.google.android.apps.youtube.music": [ + "6.20.51", + "6.29.59", + "6.42.55", + "6.51.53", + "7.16.53", + "7.25.53" + ] + }, + "options": [] + }, + { + "name": "Disable forced auto audio tracks", "description": "Adds an option to disable audio tracks from being automatically enabled.", "use": true, "dependencies": [ @@ -767,7 +786,7 @@ "options": [] }, { - "name": "Disable auto captions", + "name": "Disable forced auto captions", "description": "Adds an option to disable captions from being automatically enabled.", "use": true, "dependencies": [ @@ -787,7 +806,7 @@ "options": [] }, { - "name": "Disable auto captions", + "name": "Disable forced auto captions", "description": "Adds an option to disable captions from being automatically enabled.", "use": true, "dependencies": [ @@ -807,25 +826,6 @@ }, "options": [] }, - { - "name": "Disable dislike redirection", - "description": "Adds an option to disable redirection to the next track when clicking the Dislike button.", - "use": true, - "dependencies": [ - "Settings for YouTube Music" - ], - "compatiblePackages": { - "com.google.android.apps.youtube.music": [ - "6.20.51", - "6.29.59", - "6.42.55", - "6.51.53", - "7.16.53", - "7.25.53" - ] - }, - "options": [] - }, { "name": "Disable haptic feedback", "description": "Adds options to disable haptic feedback when swiping in the video player.", @@ -922,7 +922,7 @@ }, { "name": "Enable OPUS codec", - "description": "Adds an options to enable the OPUS audio codec if the player response includes.", + "description": "Adds an options to enable the OPUS audio codec if the player response includes it.", "use": true, "dependencies": [ "BytecodePatch", @@ -942,7 +942,7 @@ }, { "name": "Enable OPUS codec", - "description": "Adds an options to enable the OPUS audio codec if the player response includes.", + "description": "Adds an options to enable the OPUS audio codec if the player response includes it.", "use": true, "dependencies": [ "BytecodePatch", @@ -1563,7 +1563,7 @@ { "name": "Hide navigation buttons", "description": "Adds options to hide buttons in the navigation bar.", - "use": false, + "use": true, "dependencies": [ "Settings for Reddit" ], @@ -1812,7 +1812,7 @@ }, { "name": "Miniplayer", - "description": "Adds options to change the in app minimized player, and if patching target 19.16+ adds options to use modern miniplayers.", + "description": "Adds options to change the in-app minimized player, and if patching target 19.16+ adds options to use modern miniplayers.", "use": true, "dependencies": [ "ResourcePatch", @@ -1905,7 +1905,7 @@ }, { "name": "Overlay buttons", - "description": "Adds options to display overlay buttons in the video player.", + "description": "Adds options to display useful overlay buttons in the video player.", "use": true, "dependencies": [ "BytecodePatch", @@ -2344,6 +2344,7 @@ "BytecodePatch", "BytecodePatch", "ResourcePatch", + "BytecodePatch", "BytecodePatch" ], "compatiblePackages": { @@ -2646,7 +2647,7 @@ }, { "name": "Theme", - "description": "Changes the app\u0027s theme to the values specified in patch options.", + "description": "Changes the app\u0027s themes to the values specified in patch options.", "use": true, "dependencies": [ "ResourcePatch", diff --git a/patches/api/patches.api b/patches/api/patches.api index 440ced4f9e..1e7634a06d 100644 --- a/patches/api/patches.api +++ b/patches/api/patches.api @@ -339,6 +339,7 @@ public final class app/revanced/patches/reddit/layout/screenshotpopup/Screenshot } public final class app/revanced/patches/reddit/layout/subredditdialog/FingerprintsKt { + public static final fun indexOfDismissScreenInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I public static final fun indexOfSetBackgroundTintListInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I } @@ -383,7 +384,8 @@ public final class app/revanced/patches/reddit/utils/extension/SharedExtensionPa public final class app/revanced/patches/reddit/utils/settings/SettingsPatchKt { public static final fun getSettingsPatch ()Lapp/revanced/patcher/patch/ResourcePatch; - public static final fun is_2024_18_or_greater ()Z + public static final fun is_2024_26_or_greater ()Z + public static final fun is_2024_41_or_greater ()Z } public final class app/revanced/patches/shared/FingerprintsKt { @@ -427,7 +429,6 @@ public final class app/revanced/patches/shared/extension/SharedExtensionPatchKt public final class app/revanced/patches/shared/gms/FingerprintsKt { public static final field GET_GMS_CORE_VENDOR_GROUP_ID_METHOD_NAME Ljava/lang/String; - public static final fun indexOfGetPackageNameInstruction (Lcom/android/tools/smali/dexlib2/iface/Method;)I } public final class app/revanced/patches/shared/gms/GmsCoreSupportPatchKt { @@ -487,6 +488,7 @@ public final class app/revanced/patches/shared/mapping/ResourceType : java/lang/ public static final field LAYOUT Lapp/revanced/patches/shared/mapping/ResourceType; public static final field STRING Lapp/revanced/patches/shared/mapping/ResourceType; public static final field STYLE Lapp/revanced/patches/shared/mapping/ResourceType; + public static final field XML Lapp/revanced/patches/shared/mapping/ResourceType; public static fun getEntries ()Lkotlin/enums/EnumEntries; public final fun getValue ()Ljava/lang/String; public static fun valueOf (Ljava/lang/String;)Lapp/revanced/patches/shared/mapping/ResourceType; @@ -531,6 +533,10 @@ public final class app/revanced/patches/shared/spoof/useragent/BaseSpoofUserAgen public static final fun baseSpoofUserAgentPatch (Ljava/lang/String;)Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/shared/spoof/useragent/FingerprintsKt { + public static final field CLIENT_PACKAGE_NAME Ljava/lang/String; +} + public final class app/revanced/patches/shared/textcomponent/TextComponentPatchKt { public static final fun getTextComponentPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } @@ -552,7 +558,8 @@ public final class app/revanced/patches/shared/transformation/IMethodCall$Defaul } public final class app/revanced/patches/shared/transformation/TransformInstructionsPatchKt { - public static final fun transformInstructionsPatch (Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function2;)Lapp/revanced/patcher/patch/BytecodePatch; + public static final fun transformInstructionsPatch (Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;)Lapp/revanced/patcher/patch/BytecodePatch; + public static synthetic fun transformInstructionsPatch$default (Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function2;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lapp/revanced/patcher/patch/BytecodePatch; } public final class app/revanced/patches/shared/translations/BaseTranslationsPatchKt { @@ -814,10 +821,18 @@ public final class app/revanced/patches/youtube/utils/extension/SharedExtensionP public static final fun getSharedExtensionPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/youtube/utils/fix/attributes/ThemeAttributesPatchKt { + public static final fun getThemeAttributesPatch ()Lapp/revanced/patcher/patch/BytecodePatch; +} + public final class app/revanced/patches/youtube/utils/fix/bottomui/CfBottomUIPatchKt { public static final fun getCfBottomUIPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } +public final class app/revanced/patches/youtube/utils/fix/cairo/CairoFragmentPatchKt { + public static final fun getCairoFragmentPatch ()Lapp/revanced/patcher/patch/BytecodePatch; +} + public final class app/revanced/patches/youtube/utils/fix/cairo/CairoSettingsPatchKt { public static final fun getCairoSettingsPatch ()Lapp/revanced/patcher/patch/BytecodePatch; } @@ -1033,6 +1048,8 @@ public final class app/revanced/patches/youtube/utils/resourceid/SharedResourceI public static final fun getScrubbing ()J public static final fun getSeekEasyHorizontalTouchOffsetToStartScrubbing ()J public static final fun getSeekUndoEduOverlayStub ()J + public static final fun getSettingsFragment ()J + public static final fun getSettingsFragmentCairo ()J public static final fun getSlidingDialogAnimation ()J public static final fun getSubtitleMenuSettingsFooterInfo ()J public static final fun getSuggestedAction ()J @@ -1049,6 +1066,7 @@ public final class app/revanced/patches/youtube/utils/resourceid/SharedResourceI public static final fun getYouTubeControlsOverlaySubtitleButton ()J public static final fun getYouTubeLogo ()J public static final fun getYtFillBell ()J + public static final fun getYtOutlineMoonZ ()J public static final fun getYtOutlinePictureInPictureWhite ()J public static final fun getYtOutlineVideoCamera ()J public static final fun getYtOutlineXWhite ()J @@ -1182,6 +1200,7 @@ public final class app/revanced/util/BytecodeUtilsKt { public static final fun or (Lcom/android/tools/smali/dexlib2/AccessFlags;I)I public static final fun or (Lcom/android/tools/smali/dexlib2/AccessFlags;Lcom/android/tools/smali/dexlib2/AccessFlags;)I public static final fun parametersEqual (Ljava/lang/Iterable;Ljava/lang/Iterable;)Z + public static final fun referenceMatchesOrThrow (Lcom/android/tools/smali/dexlib2/iface/Method;ILjava/lang/String;)V public static final fun replaceLiteralInstructionCall (Lapp/revanced/patcher/patch/BytecodePatchContext;JJ)V public static final fun replaceLiteralInstructionCall (Lapp/revanced/patcher/patch/BytecodePatchContext;JLjava/lang/String;)V public static final fun returnEarly (Lapp/revanced/patcher/util/proxy/mutableTypes/MutableMethod;Z)V