mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-29 22:24:31 +02:00
feat(YouTube Music): remove compatibility version constraints (minimum support version: v6.21.52
)
This commit is contained in:
parent
a2b633d9a2
commit
5d11727d9b
@ -54,9 +54,7 @@ Example:
|
||||
{
|
||||
"name": "com.google.android.apps.youtube.music",
|
||||
"versions": [
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
"6.21.52+"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -5,6 +5,10 @@ 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" +
|
||||
@ -25,14 +29,14 @@ internal class ReadmeGenerator : PatchesFileGenerator {
|
||||
}
|
||||
.entries
|
||||
.sortedByDescending { it.value.size }
|
||||
.forEach { (`package`, patches) ->
|
||||
.forEach { (pkg, patches) ->
|
||||
output.apply {
|
||||
appendLine("### [\uD83D\uDCE6 `${`package`}`](https://play.google.com/store/apps/details?id=${`package`})")
|
||||
appendLine("### [\uD83D\uDCE6 `$pkg`](https://play.google.com/store/apps/details?id=$pkg)")
|
||||
appendLine("<details>\n")
|
||||
appendLine(TABLE_HEADER)
|
||||
patches.sortedBy { it.name }.forEach { patch ->
|
||||
val supportedVersionArray =
|
||||
patch.compatiblePackages?.single { it.name == `package` }?.versions
|
||||
patch.compatiblePackages?.single { it.name == pkg }?.versions
|
||||
val supportedVersion =
|
||||
if (supportedVersionArray?.isNotEmpty() == true) {
|
||||
val minVersion = supportedVersionArray.elementAt(0)
|
||||
@ -42,7 +46,9 @@ internal class ReadmeGenerator : PatchesFileGenerator {
|
||||
maxVersion
|
||||
else
|
||||
"$minVersion ~ $maxVersion"
|
||||
} else
|
||||
} else if (exception.containsKey(pkg))
|
||||
exception[pkg] + "+"
|
||||
else
|
||||
"all"
|
||||
|
||||
appendLine(
|
||||
|
@ -25,16 +25,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object MenuComponentPatch : BytecodePatch(
|
||||
|
@ -27,16 +27,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideHandlePatch : BytecodePatch(
|
||||
|
@ -25,16 +25,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.formats.Instruction35c
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object TermsContainerPatch : BytecodePatch(
|
||||
|
@ -19,16 +19,7 @@ import app.revanced.util.enum.CategoryType
|
||||
SettingsPatch::class,
|
||||
VideoInformationPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object DownloadButtonHookPatch : BytecodePatch() {
|
||||
|
@ -22,16 +22,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ActionBarLabelPatch : BytecodePatch(
|
||||
|
@ -15,16 +15,7 @@ import app.revanced.util.enum.CategoryType
|
||||
ActionBarHookPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideRadioButtonPatch : BytecodePatch() {
|
||||
|
@ -17,16 +17,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object MusicAdsPatch : AbstractAdsPatch(
|
||||
|
@ -20,16 +20,7 @@ import app.revanced.util.integrations.Constants.MUSIC_FLYOUT
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CompactDialogPatch : BytecodePatch(
|
||||
|
@ -26,16 +26,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
FlyoutButtonContainerPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object FlyoutPanelPatch : BytecodePatch(
|
||||
|
@ -17,16 +17,7 @@ import app.revanced.util.enum.CategoryType
|
||||
OverrideSpeedHookPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object PlaybackSpeedPatch : BytecodePatch() {
|
||||
|
@ -24,16 +24,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
VideoInformationPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ReplaceDismissQueuePatch : BytecodePatch(
|
||||
|
@ -17,16 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Enable sleep timer",
|
||||
description = "Add sleep timer to flyout menu.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object SleepTimerPatch : BytecodePatch(
|
||||
|
@ -12,16 +12,7 @@ import org.w3c.dom.Element
|
||||
name = "Amoled",
|
||||
description = "Applies pure black theme on some components.",
|
||||
dependencies = [LithoThemePatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
)
|
||||
@Suppress("unused")
|
||||
object AmoledPatch : ResourcePatch() {
|
||||
|
@ -17,16 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Disable auto captions",
|
||||
description = "Disables forced auto captions.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
)
|
||||
@Suppress("unused")
|
||||
object DisableAutoCaptionsPatch : BytecodePatch(
|
||||
|
@ -10,16 +10,7 @@ import app.revanced.util.resources.IconHelper.customIconMusicAdditional
|
||||
@Patch(
|
||||
name = "Custom branding icon MMT",
|
||||
description = "Changes the YouTube Music launcher icon to MMT.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
use = false
|
||||
)
|
||||
@Suppress("unused")
|
||||
|
@ -9,16 +9,7 @@ import app.revanced.util.resources.IconHelper.customIconMusic
|
||||
@Patch(
|
||||
name = "Custom branding icon Revancify Blue",
|
||||
description = "Changes the YouTube Music launcher icon to Revancify Blue.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CustomBrandingIconRevancifyBluePatch : ResourcePatch() {
|
||||
|
@ -9,16 +9,7 @@ import app.revanced.util.resources.IconHelper.customIconMusic
|
||||
@Patch(
|
||||
name = "Custom branding icon Revancify Red",
|
||||
description = "Changes the YouTube Music launcher icon to Revancify Red.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
use = false
|
||||
)
|
||||
@Suppress("unused")
|
||||
|
@ -11,16 +11,7 @@ import app.revanced.patcher.patch.options.PatchOption.PatchExtensions.stringPatc
|
||||
name = "Custom branding name YouTube Music",
|
||||
description = "Rename the YouTube Music app to the name specified in options.json.",
|
||||
dependencies = [RemoveElementsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CustomBrandingNamePatch : ResourcePatch() {
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideButtonShelfPatch : BytecodePatch() {
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideCarouselShelfPatch : BytecodePatch() {
|
||||
|
@ -26,16 +26,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideCastButtonPatch : BytecodePatch(
|
||||
|
@ -21,16 +21,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CategoryBarPatch : BytecodePatch(
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideChannelGuidelinesPatch : BytecodePatch() {
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CustomFilterPatch : BytecodePatch() {
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideEmojiPickerPatch : BytecodePatch() {
|
||||
|
@ -22,16 +22,7 @@ import app.revanced.util.integrations.Constants.MUSIC_GENERAL
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object NewPlaylistButtonPatch : BytecodePatch(
|
||||
|
@ -21,16 +21,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideHistoryButtonPatch : BytecodePatch(
|
||||
|
@ -19,16 +19,7 @@ import app.revanced.util.integrations.Constants.MUSIC_GENERAL
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object LandScapeModePatch : BytecodePatch(
|
||||
|
@ -18,16 +18,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
|
||||
name = "Enable old style library shelf",
|
||||
description = "Return the library shelf to old style.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object OldStyleLibraryShelfPatch : BytecodePatch(
|
||||
|
@ -16,16 +16,7 @@ import app.revanced.util.integrations.Constants.MUSIC_COMPONENTS_PATH
|
||||
LithoFilterPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HidePlaylistCardPatch : BytecodePatch() {
|
||||
|
@ -24,16 +24,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
IntentHookPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object StartPagePatch : BytecodePatch(
|
||||
|
@ -13,16 +13,7 @@ import app.revanced.patches.music.utils.resourceid.SharedResourceIdPatch
|
||||
name = "Hide tooltip content",
|
||||
description = "Hides the tooltip box that appears on first install.",
|
||||
dependencies = [SharedResourceIdPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object TooltipContentViewPatch : BytecodePatch(
|
||||
|
@ -12,16 +12,7 @@ import app.revanced.patches.music.misc.backgroundplay.fingerprints.BackgroundPla
|
||||
@Patch(
|
||||
name = "Background play",
|
||||
description = "Enables playing music in the background.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object BackgroundPlayPatch : BytecodePatch(
|
||||
|
@ -8,16 +8,7 @@ import app.revanced.patcher.patch.annotation.Patch
|
||||
@Patch(
|
||||
name = "Bitrate default value",
|
||||
description = "Set the audio quality to \"Always High\" when you first install the app.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object BitrateDefaultValuePatch : ResourcePatch() {
|
||||
|
@ -12,16 +12,7 @@ import app.revanced.util.integrations.Constants.MUSIC_MISC_PATH
|
||||
name = "Enable opus codec",
|
||||
description = "Enable opus codec when playing audio.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CodecsUnlockPatch : AbstractOpusCodecsPatch(
|
||||
|
@ -11,16 +11,7 @@ import app.revanced.util.enum.CategoryType
|
||||
name = "Enable debug logging",
|
||||
description = "Adds debugging options.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
use = false
|
||||
)
|
||||
@Suppress("unused")
|
||||
|
@ -21,16 +21,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
|
||||
@Patch(
|
||||
name = "Exclusive audio playback",
|
||||
description = "Enables the option to play music without video.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ExclusiveAudioPatch : BytecodePatch(
|
||||
|
@ -11,16 +11,7 @@ import app.revanced.patches.music.misc.minimizedplayback.fingerprints.MinimizedP
|
||||
@Patch(
|
||||
name = "Enable minimized playback",
|
||||
description = "Enables minimized playback on Kids music.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object MinimizedPlaybackPatch : BytecodePatch(
|
||||
|
@ -26,16 +26,7 @@ import com.android.tools.smali.dexlib2.iface.reference.Reference
|
||||
name = "Hide get premium",
|
||||
description = "Hides \"Get Premium\" label from the account menu or settings.",
|
||||
dependencies = [SharedResourceIdPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object HideGetPremiumPatch : BytecodePatch(
|
||||
|
@ -20,16 +20,7 @@ import app.revanced.util.resources.ResourceUtils.copyXmlNode
|
||||
OldStyleLibraryShelfPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object SpoofAppVersionPatch : AbstractVersionSpoofPatch(
|
||||
|
@ -13,16 +13,7 @@ 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 homepage.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object TasteBuilderPatch : BytecodePatch(
|
||||
|
@ -14,16 +14,7 @@ import app.revanced.util.integrations.Constants.MUSIC_MISC_PATH
|
||||
name = "Sanitize sharing links",
|
||||
description = "Removes tracking query parameters from the URLs when sharing links.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object SanitizeUrlQueryPatch : AbstractSanitizeUrlQueryPatch(
|
||||
|
@ -11,16 +11,7 @@ import app.revanced.util.resources.ResourceHelper.addTranslations
|
||||
name = "Translations",
|
||||
description = "Add Crowdin translations for YouTube Music.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object TranslationsPatch : ResourcePatch() {
|
||||
|
@ -21,16 +21,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object BlackNavigationBarPatch : BytecodePatch(
|
||||
|
@ -27,16 +27,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||
SettingsPatch::class,
|
||||
SharedResourceIdPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object NavigationBarComponentPatch : BytecodePatch(
|
||||
|
@ -26,16 +26,7 @@ import kotlin.properties.Delegates
|
||||
name = "Enable color match player",
|
||||
description = "Matches the color of the mini player and the fullscreen player.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ColorMatchPlayerPatch : BytecodePatch(
|
||||
|
@ -16,16 +16,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Enable force minimized player",
|
||||
description = "Keep player permanently minimized even if another track is played.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object MinimizedPlayerPatch : BytecodePatch(
|
||||
|
@ -15,16 +15,7 @@ import app.revanced.util.integrations.Constants.MUSIC_PLAYER
|
||||
name = "Enable new player background",
|
||||
description = "Enable new player background.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object NewPlayerBackgroundPatch : BytecodePatch(
|
||||
|
@ -15,16 +15,7 @@ import app.revanced.util.integrations.Constants.MUSIC_PLAYER
|
||||
name = "Enable old player layout",
|
||||
description = "Return the player layout to old style.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
use = false
|
||||
)
|
||||
@Suppress("unused")
|
||||
|
@ -19,16 +19,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Enable old style miniplayer",
|
||||
description = "Return the miniplayers to old style.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object OldStyleMiniPlayerPatch : BytecodePatch(
|
||||
|
@ -17,16 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
name = "Remember repeat state",
|
||||
description = "Remembers the state of the repeat.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object RememberRepeatPatch : BytecodePatch(
|
||||
|
@ -37,16 +37,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
||||
SharedResourceIdPatch::class,
|
||||
VideoTypeHookPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
use = false
|
||||
)
|
||||
@Suppress("unused")
|
||||
|
@ -33,16 +33,7 @@ import com.android.tools.smali.dexlib2.util.MethodUtil
|
||||
name = "Remember shuffle state",
|
||||
description = "Remembers the state of the shuffle.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object RememberShufflePatch : BytecodePatch(
|
||||
|
@ -20,16 +20,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.ReferenceInstruction
|
||||
name = "Enable zen mode",
|
||||
description = "Adds a grey tint to the video player to reduce eye strain.",
|
||||
dependencies = [SettingsPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ZenModePatch : BytecodePatch(
|
||||
|
@ -11,16 +11,7 @@ import app.revanced.patches.music.utils.fix.androidauto.fingerprints.Certificate
|
||||
@Patch(
|
||||
name = "Certificate spoof",
|
||||
description = "Spoofs the YouTube Music certificate for Android Auto.",
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object AndroidAutoCertificatePatch : BytecodePatch(
|
||||
|
@ -26,16 +26,7 @@ import app.revanced.util.microg.MicroGBytecodeHelper
|
||||
MicroGResourcePatch::class,
|
||||
PackageNamePatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object MicroGPatch : BytecodePatch(
|
||||
|
@ -17,16 +17,7 @@ import org.w3c.dom.Node
|
||||
ReturnYouTubeDislikeBytecodePatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object ReturnYouTubeDislikePatch : ResourcePatch() {
|
||||
|
@ -27,16 +27,7 @@ import java.nio.file.Paths
|
||||
name = "Settings",
|
||||
description = "Adds settings for ReVanced Extended to YouTube Music.",
|
||||
dependencies = [SettingsBytecodePatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object SettingsPatch : AbstractSettingsResourcePatch(
|
||||
|
@ -17,16 +17,7 @@ import app.revanced.util.resources.ResourceUtils.copyResources
|
||||
SettingsPatch::class,
|
||||
SponsorBlockBytecodePatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object SponsorBlockPatch : ResourcePatch() {
|
||||
|
@ -13,16 +13,7 @@ import app.revanced.util.integrations.Constants.MUSIC_VIDEO_PATH
|
||||
name = "Custom playback speed",
|
||||
description = "Adds more playback speed options.",
|
||||
dependencies = [IntentHookPatch::class],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
],
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")],
|
||||
)
|
||||
@Suppress("unused")
|
||||
object CustomPlaybackSpeedPatch : AbstractCustomPlaybackSpeedPatch(
|
||||
|
@ -24,16 +24,7 @@ import com.android.tools.smali.dexlib2.builder.instruction.BuilderInstruction21c
|
||||
SettingsPatch::class,
|
||||
VideoInformationPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object VideoQualityPatch : BytecodePatch(
|
||||
|
@ -23,16 +23,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
|
||||
OverrideSpeedHookPatch::class,
|
||||
SettingsPatch::class
|
||||
],
|
||||
compatiblePackages = [
|
||||
CompatiblePackage(
|
||||
"com.google.android.apps.youtube.music",
|
||||
[
|
||||
"6.21.52",
|
||||
"6.27.54",
|
||||
"6.28.52"
|
||||
]
|
||||
)
|
||||
]
|
||||
compatiblePackages = [CompatiblePackage("com.google.android.apps.youtube.music")]
|
||||
)
|
||||
@Suppress("unused")
|
||||
object PlaybackSpeedPatch : BytecodePatch(
|
||||
|
Loading…
x
Reference in New Issue
Block a user