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