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

View File

@ -25,7 +25,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object MenuComponentPatch : BytecodePatch( object MenuComponentPatch : BytecodePatch(

View File

@ -27,7 +27,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object HideHandlePatch : BytecodePatch( object HideHandlePatch : BytecodePatch(

View File

@ -25,7 +25,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object TermsContainerPatch : BytecodePatch( object TermsContainerPatch : BytecodePatch(

View File

@ -37,7 +37,23 @@ import kotlin.math.min
SharedResourceIdPatch::class, SharedResourceIdPatch::class,
VideoInformationPatch::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") @Suppress("unused")
object ActionBarComponentPatch : BytecodePatch( object ActionBarComponentPatch : BytecodePatch(

View File

@ -37,7 +37,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object GeneralAdsPatch : BytecodePatch( object GeneralAdsPatch : BytecodePatch(

View File

@ -20,7 +20,23 @@ import app.revanced.util.exception
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object CompactDialogPatch : BytecodePatch( object CompactDialogPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
FlyoutButtonContainerPatch::class, FlyoutButtonContainerPatch::class,
SettingsPatch::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") @Suppress("unused")
object FlyoutPanelPatch : BytecodePatch( object FlyoutPanelPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
OverrideSpeedHookPatch::class, OverrideSpeedHookPatch::class,
SettingsPatch::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") @Suppress("unused")
object PlaybackSpeedPatch : BytecodePatch(emptySet()) { object PlaybackSpeedPatch : BytecodePatch(emptySet()) {

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
VideoInformationPatch::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") @Suppress("unused")
object ReplaceDismissQueuePatch : BytecodePatch( object ReplaceDismissQueuePatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable sleep timer", name = "Enable sleep timer",
description = "Adds an option to add the sleep timer to the flyout menu.", description = "Adds an option to add the sleep timer to the flyout menu.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object SleepTimerPatch : BytecodePatch( object SleepTimerPatch : BytecodePatch(

View File

@ -12,7 +12,23 @@ import org.w3c.dom.Element
name = "Amoled", name = "Amoled",
description = "Applies a pure black theme to some components.", description = "Applies a pure black theme to some components.",
dependencies = [LithoThemePatch::class], 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") @Suppress("unused")
object AmoledPatch : ResourcePatch() { object AmoledPatch : ResourcePatch() {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.shared.patch.captions.AbstractAutoCaptionsPatch
SettingsPatch::class, SettingsPatch::class,
VideoIdPatch::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") @Suppress("unused")
object AutoCaptionsPatch : AbstractAutoCaptionsPatch( object AutoCaptionsPatch : AbstractAutoCaptionsPatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object HideButtonShelfPatch : BytecodePatch(emptySet()) { object HideButtonShelfPatch : BytecodePatch(emptySet()) {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object HideCarouselShelfPatch : BytecodePatch(emptySet()) { object HideCarouselShelfPatch : BytecodePatch(emptySet()) {

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object HideCastButtonPatch : BytecodePatch( object HideCastButtonPatch : BytecodePatch(

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object CategoryBarPatch : BytecodePatch( object CategoryBarPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object HideChannelGuidelinesPatch : BytecodePatch(emptySet()) { object HideChannelGuidelinesPatch : BytecodePatch(emptySet()) {

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object CustomFilterPatch : BytecodePatch(emptySet()) { 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 " + 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.", "by accepting it automatically. This does not bypass the age restriction.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object RemoveViewerDiscretionDialogPatch : AbstractRemoveViewerDiscretionDialogPatch( object RemoveViewerDiscretionDialogPatch : AbstractRemoveViewerDiscretionDialogPatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object HideEmojiPickerPatch : BytecodePatch(emptySet()) { object HideEmojiPickerPatch : BytecodePatch(emptySet()) {

View File

@ -22,7 +22,23 @@ import app.revanced.util.exception
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object NewPlaylistButtonPatch : BytecodePatch( object NewPlaylistButtonPatch : BytecodePatch(

View File

@ -22,7 +22,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object HideHistoryButtonPatch : BytecodePatch( object HideHistoryButtonPatch : BytecodePatch(

View File

@ -19,7 +19,23 @@ import app.revanced.util.exception
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object LandScapeModePatch : BytecodePatch( object LandScapeModePatch : BytecodePatch(

View File

@ -18,7 +18,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
name = "Enable old style library shelf", name = "Enable old style library shelf",
description = "Adds an option to return the library tab to the old style.", description = "Adds an option to return the library tab to the old style.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object OldStyleLibraryShelfPatch : BytecodePatch( object OldStyleLibraryShelfPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
LithoFilterPatch::class, LithoFilterPatch::class,
SettingsPatch::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") @Suppress("unused")
object HidePlaylistCardPatch : BytecodePatch(emptySet()) { object HidePlaylistCardPatch : BytecodePatch(emptySet()) {

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
IntentHookPatch::class, IntentHookPatch::class,
SettingsPatch::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") @Suppress("unused")
object ChangeStartPagePatch : BytecodePatch( object ChangeStartPagePatch : BytecodePatch(

View File

@ -13,7 +13,23 @@ import app.revanced.util.exception
name = "Hide tooltip content", name = "Hide tooltip content",
description = "Hides the tooltip box that appears when opening the app for the first time.", description = "Hides the tooltip box that appears when opening the app for the first time.",
dependencies = [SharedResourceIdPatch::class], 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") @Suppress("unused")
object TooltipContentViewPatch : BytecodePatch( object TooltipContentViewPatch : BytecodePatch(

View File

@ -7,7 +7,23 @@ import app.revanced.patches.shared.patch.voicesearch.AbstractVoiceSearchButtonPa
@Patch( @Patch(
name = "Hide voice search button", name = "Hide voice search button",
description = "Hides the voice search button in the search bar.", 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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -14,7 +14,23 @@ import java.nio.file.Files
@Patch( @Patch(
name = "Custom branding icon YouTube Music", name = "Custom branding icon YouTube Music",
description = "Changes the YouTube Music app icon to the icon specified in options.json.", 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") @Suppress("unused")
object CustomBrandingIconPatch : ResourcePatch() { object CustomBrandingIconPatch : ResourcePatch() {

View File

@ -11,7 +11,23 @@ import app.revanced.patches.shared.patch.elements.AbstractRemoveStringsElementsP
@Patch( @Patch(
name = "Custom branding name YouTube Music", name = "Custom branding name YouTube Music",
description = "Renames the YouTube Music app to the name specified in options.json.", 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") @Suppress("unused")
object CustomBrandingNamePatch : AbstractRemoveStringsElementsPatch( object CustomBrandingNamePatch : AbstractRemoveStringsElementsPatch(

View File

@ -7,7 +7,23 @@ import app.revanced.patches.shared.patch.doubletapbackground.AbstractDoubleTapOv
@Patch( @Patch(
name = "Hide double tap overlay filter", name = "Hide double tap overlay filter",
description = "Removes the dark overlay when double-tapping to seek.", 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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -9,7 +9,23 @@ import app.revanced.patcher.patch.annotation.Patch
name = "Disable overlay filter", name = "Disable overlay filter",
description = "Removes the dark overlay when comment, share, save to playlist, and flyout panels are open.", description = "Removes the dark overlay when comment, share, save to playlist, and flyout panels are open.",
dependencies = [OverlayFilterBytecodePatch::class], 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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -12,7 +12,23 @@ import app.revanced.util.exception
@Patch( @Patch(
name = "Background play", name = "Background play",
description = "Enables playing music in the background.", 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") @Suppress("unused")
object BackgroundPlayPatch : BytecodePatch( object BackgroundPlayPatch : BytecodePatch(

View File

@ -8,7 +8,23 @@ import app.revanced.patcher.patch.annotation.Patch
@Patch( @Patch(
name = "Bitrate default value", name = "Bitrate default value",
description = "Sets the audio quality to \"Always High\" when you first install the app.", 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") @Suppress("unused")
object BitrateDefaultValuePatch : ResourcePatch() { object BitrateDefaultValuePatch : ResourcePatch() {

View File

@ -12,7 +12,23 @@ import app.revanced.patches.shared.patch.opus.AbstractOpusCodecsPatch
name = "Enable opus codec", name = "Enable opus codec",
description = "Adds an option use the opus audio codec instead of the mp4a audio codec.", description = "Adds an option use the opus audio codec instead of the mp4a audio codec.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object CodecsUnlockPatch : AbstractOpusCodecsPatch( object CodecsUnlockPatch : AbstractOpusCodecsPatch(

View File

@ -11,7 +11,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
name = "Enable debug logging", name = "Enable debug logging",
description = "Adds an option to enable debug logging.", description = "Adds an option to enable debug logging.",
dependencies = [SettingsPatch::class], 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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
@Patch( @Patch(
name = "Exclusive audio playback", name = "Exclusive audio playback",
description = "Unlocks the option to play music without video.", 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") @Suppress("unused")
object ExclusiveAudioPatch : BytecodePatch( object ExclusiveAudioPatch : BytecodePatch(

View File

@ -11,7 +11,23 @@ import app.revanced.util.exception
@Patch( @Patch(
name = "Enable minimized playback", name = "Enable minimized playback",
description = "Enables playback in miniplayer for Kids music.", 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") @Suppress("unused")
object MinimizedPlaybackPatch : BytecodePatch( object MinimizedPlaybackPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference
name = "Hide get premium", name = "Hide get premium",
description = "Hides the \"Get Music Premium\" label from the account menu and settings.", description = "Hides the \"Get Music Premium\" label from the account menu and settings.",
dependencies = [SharedResourceIdPatch::class], 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") @Suppress("unused")
object HideGetPremiumPatch : BytecodePatch( object HideGetPremiumPatch : BytecodePatch(

View File

@ -21,7 +21,23 @@ import app.revanced.util.copyXmlNode
OldStyleLibraryShelfPatch::class, OldStyleLibraryShelfPatch::class,
SettingsPatch::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") @Suppress("unused")
object SpoofAppVersionPatch : AbstractVersionSpoofPatch( object SpoofAppVersionPatch : AbstractVersionSpoofPatch(

View File

@ -13,7 +13,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
@Patch( @Patch(
name = "Hide taste builder", name = "Hide taste builder",
description = "Hides the \"Tell us which artists you like\" card from the homepage.", 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") @Suppress("unused")
object TasteBuilderPatch : BytecodePatch( object TasteBuilderPatch : BytecodePatch(

View File

@ -14,7 +14,23 @@ import app.revanced.patches.shared.patch.tracking.AbstractSanitizeUrlQueryPatch
name = "Sanitize sharing links", name = "Sanitize sharing links",
description = "Adds an option to remove tracking query parameters from URLs when sharing links.", description = "Adds an option to remove tracking query parameters from URLs when sharing links.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object SanitizeUrlQueryPatch : AbstractSanitizeUrlQueryPatch( object SanitizeUrlQueryPatch : AbstractSanitizeUrlQueryPatch(

View File

@ -9,7 +9,23 @@ import app.revanced.patches.shared.patch.translations.AbstractTranslationsPatch
name = "Translations", name = "Translations",
description = "Adds Crowdin translations for YouTube Music.", description = "Adds Crowdin translations for YouTube Music.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object TranslationsPatch : AbstractTranslationsPatch( object TranslationsPatch : AbstractTranslationsPatch(

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object BlackNavigationBarPatch : BytecodePatch( object BlackNavigationBarPatch : BytecodePatch(

View File

@ -27,7 +27,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object NavigationBarComponentPatch : BytecodePatch( object NavigationBarComponentPatch : BytecodePatch(

View File

@ -26,7 +26,23 @@ import kotlin.properties.Delegates
name = "Enable color match player", name = "Enable color match player",
description = "Adds an option to match the color of the miniplayer to the fullscreen player.", description = "Adds an option to match the color of the miniplayer to the fullscreen player.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object ColorMatchPlayerPatch : BytecodePatch( object ColorMatchPlayerPatch : BytecodePatch(

View File

@ -16,7 +16,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable force minimized player", name = "Enable force minimized player",
description = "Adds an option to keep the miniplayer minimized even when another track is played.", description = "Adds an option to keep the miniplayer minimized even when another track is played.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object MinimizedPlayerPatch : BytecodePatch( object MinimizedPlayerPatch : BytecodePatch(

View File

@ -15,7 +15,23 @@ import app.revanced.util.exception
name = "Enable new player background", name = "Enable new player background",
description = "Adds an option to enable the new player background.", description = "Adds an option to enable the new player background.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object NewPlayerBackgroundPatch : BytecodePatch( object NewPlayerBackgroundPatch : BytecodePatch(

View File

@ -15,7 +15,23 @@ import app.revanced.patches.music.utils.settings.SettingsPatch
name = "Enable old player layout", 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+.", description = "Adds an option to return the player layout to the old style. Deprecated on YT Music 6.31.55+.",
dependencies = [SettingsPatch::class], 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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -19,7 +19,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Enable old style miniplayer", name = "Enable old style miniplayer",
description = "Adds an option to return the miniplayer to the old style.", description = "Adds an option to return the miniplayer to the old style.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object OldStyleMiniPlayerPatch : BytecodePatch( object OldStyleMiniPlayerPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Remember repeat state", name = "Remember repeat state",
description = "Adds an option to remember the state of the repeat toggle.", description = "Adds an option to remember the state of the repeat toggle.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object RememberRepeatPatch : BytecodePatch( object RememberRepeatPatch : BytecodePatch(

View File

@ -40,7 +40,23 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
SharedResourceIdPatch::class, SharedResourceIdPatch::class,
VideoTypeHookPatch::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 use = false
) )
@Suppress("unused") @Suppress("unused")

View File

@ -21,7 +21,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
SettingsPatch::class, SettingsPatch::class,
SharedResourceIdPatch::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") @Suppress("unused")
object ShareButtonPatch : BytecodePatch( object ShareButtonPatch : BytecodePatch(

View File

@ -33,7 +33,23 @@ import com.android.tools.smali.dexlib2.util.MethodUtil
name = "Remember shuffle state", name = "Remember shuffle state",
description = "Adds an option to remember the state of the shuffle toggle.", description = "Adds an option to remember the state of the shuffle toggle.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object RememberShufflePatch : BytecodePatch( object RememberShufflePatch : BytecodePatch(

View File

@ -20,7 +20,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
name = "Enable zen mode", name = "Enable zen mode",
description = "Adds an option to change the player background to light grey to reduce eye strain.", description = "Adds an option to change the player background to light grey to reduce eye strain.",
dependencies = [SettingsPatch::class], 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") @Suppress("unused")
object ZenModePatch : BytecodePatch( object ZenModePatch : BytecodePatch(

View File

@ -11,7 +11,23 @@ import app.revanced.util.exception
@Patch( @Patch(
name = "Certificate spoof", name = "Certificate spoof",
description = "Enables YouTube Music to work with Android Auto by spoofing the YouTube Music certificate.", 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") @Suppress("unused")
object AndroidAutoCertificatePatch : BytecodePatch( object AndroidAutoCertificatePatch : BytecodePatch(

View File

@ -30,7 +30,23 @@ import app.revanced.patches.shared.patch.packagename.PackageNamePatch
PackageNamePatch::class, PackageNamePatch::class,
FileProviderPatch::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") @Suppress("unused")
object MicroGPatch : BytecodePatch( object MicroGPatch : BytecodePatch(

View File

@ -17,7 +17,23 @@ import org.w3c.dom.Node
ReturnYouTubeDislikeBytecodePatch::class, ReturnYouTubeDislikeBytecodePatch::class,
SettingsPatch::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") @Suppress("unused")
object ReturnYouTubeDislikePatch : ResourcePatch() { object ReturnYouTubeDislikePatch : ResourcePatch() {

View File

@ -21,7 +21,23 @@ import java.io.Closeable
name = "Settings", name = "Settings",
description = "Adds ReVanced Extended settings to YouTube Music.", description = "Adds ReVanced Extended settings to YouTube Music.",
dependencies = [SettingsBytecodePatch::class], 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") @Suppress("unused")
object SettingsPatch : AbstractSettingsResourcePatch( object SettingsPatch : AbstractSettingsResourcePatch(

View File

@ -19,7 +19,23 @@ import app.revanced.util.copyResources
SettingsPatch::class, SettingsPatch::class,
SponsorBlockBytecodePatch::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") @Suppress("unused")
object SponsorBlockPatch : ResourcePatch() { object SponsorBlockPatch : ResourcePatch() {

View File

@ -13,7 +13,23 @@ import app.revanced.patches.shared.patch.customspeed.AbstractCustomPlaybackSpeed
name = "Custom playback speed", name = "Custom playback speed",
description = "Adds an option to customize available playback speeds.", description = "Adds an option to customize available playback speeds.",
dependencies = [IntentHookPatch::class], 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") @Suppress("unused")
object CustomPlaybackSpeedPatch : AbstractCustomPlaybackSpeedPatch( object CustomPlaybackSpeedPatch : AbstractCustomPlaybackSpeedPatch(

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction21c
SettingsPatch::class, SettingsPatch::class,
VideoIdPatch::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") @Suppress("unused")
object VideoQualityPatch : BytecodePatch( object VideoQualityPatch : BytecodePatch(

View File

@ -24,7 +24,23 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
OverrideSpeedHookPatch::class, OverrideSpeedHookPatch::class,
SettingsPatch::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") @Suppress("unused")
object PlaybackSpeedPatch : BytecodePatch( object PlaybackSpeedPatch : BytecodePatch(