feat(YouTube Music): restrict support version

This commit is contained in:
inotia00 2024-01-18 07:46:42 +09:00
parent a40410ba16
commit 5fe85e8b7a
64 changed files with 1072 additions and 70 deletions

View File

@ -5,10 +5,6 @@ import app.revanced.patcher.patch.Patch
import java.io.File
internal class ReadmeGenerator : PatchesFileGenerator {
private val exception = mapOf(
"com.google.android.apps.youtube.music" to "6.21.52"
)
private companion object {
private const val TABLE_HEADER =
"| \uD83D\uDC8A Patch | \uD83D\uDCDC Description | \uD83C\uDFF9 Target Version |\n" +
@ -46,9 +42,7 @@ internal class ReadmeGenerator : PatchesFileGenerator {
maxVersion
else
"$minVersion ~ $maxVersion"
} else if (exception.containsKey(pkg))
exception[pkg] + "+"
else
} else
"all"
appendLine(

View File

@ -25,7 +25,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object MenuComponentPatch : BytecodePatch(

View File

@ -27,7 +27,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideHandlePatch : BytecodePatch(

View File

@ -25,7 +25,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object TermsContainerPatch : BytecodePatch(

View File

@ -37,7 +37,23 @@ import kotlin.math.min
SharedResourceIdPatch::class,
VideoInformationPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ActionBarComponentPatch : BytecodePatch(

View File

@ -37,7 +37,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object GeneralAdsPatch : BytecodePatch(

View File

@ -20,7 +20,23 @@ import app.revanced.util.exception
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CompactDialogPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
FlyoutButtonContainerPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object FlyoutPanelPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
OverrideSpeedHookPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object PlaybackSpeedPatch : BytecodePatch(emptySet()) {

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class,
VideoInformationPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ReplaceDismissQueuePatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable sleep timer",
description = "Adds an option to add the sleep timer to the flyout menu.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object SleepTimerPatch : BytecodePatch(

View File

@ -12,7 +12,23 @@ import org.w3c.dom.Element
name = "Amoled",
description = "Applies a pure black theme to some components.",
dependencies = [LithoThemePatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
)
@Suppress("unused")
object AmoledPatch : ResourcePatch() {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.shared.patch.captions.AbstractAutoCaptionsPatch
SettingsPatch::class,
VideoIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
)
@Suppress("unused")
object AutoCaptionsPatch : AbstractAutoCaptionsPatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideButtonShelfPatch : BytecodePatch(emptySet()) {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideCarouselShelfPatch : BytecodePatch(emptySet()) {

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideCastButtonPatch : BytecodePatch(

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CategoryBarPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideChannelGuidelinesPatch : BytecodePatch(emptySet()) {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CustomFilterPatch : BytecodePatch(emptySet()) {

View File

@ -13,7 +13,23 @@ import app.revanced.patches.shared.patch.dialog.AbstractRemoveViewerDiscretionDi
description = "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.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object RemoveViewerDiscretionDialogPatch : AbstractRemoveViewerDiscretionDialogPatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideEmojiPickerPatch : BytecodePatch(emptySet()) {

View File

@ -22,7 +22,23 @@ import app.revanced.util.exception
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object NewPlaylistButtonPatch : BytecodePatch(

View File

@ -22,7 +22,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideHistoryButtonPatch : BytecodePatch(

View File

@ -19,7 +19,23 @@ import app.revanced.util.exception
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object LandScapeModePatch : BytecodePatch(

View File

@ -18,7 +18,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
name = "Enable old style library shelf",
description = "Adds an option to return the library tab to the old style.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object OldStyleLibraryShelfPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HidePlaylistCardPatch : BytecodePatch(emptySet()) {

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
IntentHookPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ChangeStartPagePatch : BytecodePatch(

View File

@ -13,7 +13,23 @@ import app.revanced.util.exception
name = "Hide tooltip content",
description = "Hides the tooltip box that appears when opening the app for the first time.",
dependencies = [SharedResourceIdPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object TooltipContentViewPatch : BytecodePatch(

View File

@ -7,7 +7,23 @@ import app.revanced.patches.shared.patch.voicesearch.AbstractVoiceSearchButtonPa
@Patch(
name = "Hide voice search button",
description = "Hides the voice search button in the search bar.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -14,7 +14,23 @@ import java.nio.file.Files
@Patch(
name = "Custom branding icon YouTube Music",
description = "Changes the YouTube Music app icon to the icon specified in options.json.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CustomBrandingIconPatch : ResourcePatch() {

View File

@ -11,7 +11,23 @@ import app.revanced.patches.shared.patch.elements.AbstractRemoveStringsElementsP
@Patch(
name = "Custom branding name YouTube Music",
description = "Renames the YouTube Music app to the name specified in options.json.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CustomBrandingNamePatch : AbstractRemoveStringsElementsPatch(

View File

@ -7,7 +7,23 @@ import app.revanced.patches.shared.patch.doubletapbackground.AbstractDoubleTapOv
@Patch(
name = "Hide double tap overlay filter",
description = "Removes the dark overlay when double-tapping to seek.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -9,7 +9,23 @@ import app.revanced.patcher.patch.annotation.Patch
name = "Disable overlay filter",
description = "Removes the dark overlay when comment, share, save to playlist, and flyout panels are open.",
dependencies = [OverlayFilterBytecodePatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -12,7 +12,23 @@ import app.revanced.util.exception
@Patch(
name = "Background play",
description = "Enables playing music in the background.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object BackgroundPlayPatch : BytecodePatch(

View File

@ -8,7 +8,23 @@ import app.revanced.patcher.patch.annotation.Patch
@Patch(
name = "Bitrate default value",
description = "Sets the audio quality to \"Always High\" when you first install the app.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object BitrateDefaultValuePatch : ResourcePatch() {

View File

@ -12,7 +12,23 @@ import app.revanced.patches.shared.patch.opus.AbstractOpusCodecsPatch
name = "Enable opus codec",
description = "Adds an option use the opus audio codec instead of the mp4a audio codec.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object CodecsUnlockPatch : AbstractOpusCodecsPatch(

View File

@ -11,7 +11,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
name = "Enable debug logging",
description = "Adds an option to enable debug logging.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
@Patch(
name = "Exclusive audio playback",
description = "Unlocks the option to play music without video.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ExclusiveAudioPatch : BytecodePatch(

View File

@ -11,7 +11,23 @@ import app.revanced.util.exception
@Patch(
name = "Enable minimized playback",
description = "Enables playback in miniplayer for Kids music.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object MinimizedPlaybackPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference
name = "Hide get premium",
description = "Hides the \"Get Music Premium\" label from the account menu and settings.",
dependencies = [SharedResourceIdPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object HideGetPremiumPatch : BytecodePatch(

View File

@ -21,7 +21,23 @@ import app.revanced.util.copyXmlNode
OldStyleLibraryShelfPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object SpoofAppVersionPatch : AbstractVersionSpoofPatch(

View File

@ -13,7 +13,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
@Patch(
name = "Hide taste builder",
description = "Hides the \"Tell us which artists you like\" card from the homepage.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object TasteBuilderPatch : BytecodePatch(

View File

@ -14,7 +14,23 @@ import app.revanced.patches.shared.patch.tracking.AbstractSanitizeUrlQueryPatch
name = "Sanitize sharing links",
description = "Adds an option to remove tracking query parameters from URLs when sharing links.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object SanitizeUrlQueryPatch : AbstractSanitizeUrlQueryPatch(

View File

@ -9,7 +9,23 @@ import app.revanced.patches.shared.patch.translations.AbstractTranslationsPatch
name = "Translations",
description = "Adds Crowdin translations for YouTube Music.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object TranslationsPatch : AbstractTranslationsPatch(

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object BlackNavigationBarPatch : BytecodePatch(

View File

@ -27,7 +27,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object NavigationBarComponentPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import kotlin.properties.Delegates
name = "Enable color match player",
description = "Adds an option to match the color of the miniplayer to the fullscreen player.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ColorMatchPlayerPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable force minimized player",
description = "Adds an option to keep the miniplayer minimized even when another track is played.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object MinimizedPlayerPatch : BytecodePatch(

View File

@ -15,7 +15,23 @@ import app.revanced.util.exception
name = "Enable new player background",
description = "Adds an option to enable the new player background.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object NewPlayerBackgroundPatch : BytecodePatch(

View File

@ -15,7 +15,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
name = "Enable old player layout",
description = "Adds an option to return the player layout to the old style. Deprecated on YT Music 6.31.55+.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -19,7 +19,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable old style miniplayer",
description = "Adds an option to return the miniplayer to the old style.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object OldStyleMiniPlayerPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Remember repeat state",
description = "Adds an option to remember the state of the repeat toggle.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object RememberRepeatPatch : BytecodePatch(

View File

@ -40,7 +40,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SharedResourceIdPatch::class,
VideoTypeHookPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
use = false
)
@Suppress("unused")

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
SettingsPatch::class,
SharedResourceIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ShareButtonPatch : BytecodePatch(

View File

@ -33,7 +33,23 @@ import com.android.tools.smali.dexlib2.util.MethodUtil
name = "Remember shuffle state",
description = "Adds an option to remember the state of the shuffle toggle.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object RememberShufflePatch : BytecodePatch(

View File

@ -20,7 +20,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
name = "Enable zen mode",
description = "Adds an option to change the player background to light grey to reduce eye strain.",
dependencies = [SettingsPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ZenModePatch : BytecodePatch(

View File

@ -11,7 +11,23 @@ import app.revanced.util.exception
@Patch(
name = "Certificate spoof",
description = "Enables YouTube Music to work with Android Auto by spoofing the YouTube Music certificate.",
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object AndroidAutoCertificatePatch : BytecodePatch(

View File

@ -30,7 +30,23 @@ import app.revanced.patches.shared.patch.packagename.PackageNamePatch
PackageNamePatch::class,
FileProviderPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object MicroGPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import org.w3c.dom.Node
ReturnYouTubeDislikeBytecodePatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object ReturnYouTubeDislikePatch : ResourcePatch() {

View File

@ -21,7 +21,23 @@ import java.io.Closeable
name = "Settings",
description = "Adds ReVanced Extended settings to YouTube Music.",
dependencies = [SettingsBytecodePatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object SettingsPatch : AbstractSettingsResourcePatch(

View File

@ -19,7 +19,23 @@ import app.revanced.util.copyResources
SettingsPatch::class,
SponsorBlockBytecodePatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object SponsorBlockPatch : ResourcePatch() {

View File

@ -13,7 +13,23 @@ import app.revanced.patches.shared.patch.customspeed.AbstractCustomPlaybackSpeed
name = "Custom playback speed",
description = "Adds an option to customize available playback speeds.",
dependencies = [IntentHookPatch::class],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
],
)
@Suppress("unused")
object CustomPlaybackSpeedPatch : AbstractCustomPlaybackSpeedPatch(

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction21c
SettingsPatch::class,
VideoIdPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object VideoQualityPatch : BytecodePatch(

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
OverrideSpeedHookPatch::class,
SettingsPatch::class
],
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
compatiblePackages = [
CompatiblePackage(
"com.google.android.apps.youtube.music",
[
"6.21.52",
"6.22.52",
"6.23.56",
"6.25.53",
"6.26.51",
"6.27.54",
"6.28.53",
"6.29.58",
"6.31.55",
"6.33.52"
]
)
]
)
@Suppress("unused")
object PlaybackSpeedPatch : BytecodePatch(