mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-27 20:51:03 +00:00
feat(YT Music): Support latest versions (#5524)
This commit is contained in:
@@ -8,12 +8,7 @@ val hideVideoAdsPatch = bytecodePatch(
|
|||||||
name = "Hide music video ads",
|
name = "Hide music video ads",
|
||||||
description = "Hides ads that appear while listening to or streaming music videos, podcasts, or songs.",
|
description = "Hides ads that appear while listening to or streaming music videos, podcasts, or songs.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
navigate(showVideoAdsParentFingerprint.originalMethod)
|
navigate(showVideoAdsParentFingerprint.originalMethod)
|
||||||
|
|||||||
@@ -8,12 +8,7 @@ val enableExclusiveAudioPlaybackPatch = bytecodePatch(
|
|||||||
name = "Enable exclusive audio playback",
|
name = "Enable exclusive audio playback",
|
||||||
description = "Enables the option to play audio without video.",
|
description = "Enables the option to play audio without video.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
allowExclusiveAudioPlaybackFingerprint.method.returnEarly(true)
|
allowExclusiveAudioPlaybackFingerprint.method.returnEarly(true)
|
||||||
|
|||||||
@@ -11,12 +11,7 @@ val permanentRepeatPatch = bytecodePatch(
|
|||||||
description = "Permanently remember your repeating preference even if the playlist ends or another track is played.",
|
description = "Permanently remember your repeating preference even if the playlist ends or another track is played.",
|
||||||
use = false,
|
use = false,
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
val startIndex = repeatTrackFingerprint.patternMatch!!.endIndex
|
val startIndex = repeatTrackFingerprint.patternMatch!!.endIndex
|
||||||
|
|||||||
@@ -7,18 +7,9 @@ import app.revanced.patcher.patch.bytecodePatch
|
|||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
val permanentShufflePatch = bytecodePatch(
|
val permanentShufflePatch = bytecodePatch(
|
||||||
description = "Permanently remember your shuffle preference " +
|
description = "Permanently remember your shuffle preference " +
|
||||||
"even if the playlist ends or another track is played.",
|
"even if the playlist ends or another track is played."
|
||||||
use = false,
|
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"6.45.54",
|
|
||||||
"6.51.53",
|
|
||||||
"7.01.53",
|
|
||||||
"7.02.52",
|
|
||||||
"7.03.52",
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
disableShuffleFingerprint.method.addInstruction(0, "return-void")
|
disableShuffleFingerprint.method.addInstruction(0, "return-void")
|
||||||
|
|||||||
@@ -11,12 +11,7 @@ val hideCategoryBar = bytecodePatch(
|
|||||||
description = "Hides the category bar at the top of the homepage.",
|
description = "Hides the category bar at the top of the homepage.",
|
||||||
use = false,
|
use = false,
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
constructCategoryBarFingerprint.method.apply {
|
constructCategoryBarFingerprint.method.apply {
|
||||||
|
|||||||
@@ -11,12 +11,7 @@ val hideGetPremiumPatch = bytecodePatch(
|
|||||||
name = "Hide 'Get Music Premium' label",
|
name = "Hide 'Get Music Premium' label",
|
||||||
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.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
hideGetPremiumFingerprint.method.apply {
|
hideGetPremiumFingerprint.method.apply {
|
||||||
|
|||||||
@@ -18,12 +18,7 @@ val removeUpgradeButtonPatch = bytecodePatch(
|
|||||||
name = "Remove upgrade button",
|
name = "Remove upgrade button",
|
||||||
description = "Removes the upgrade tab from the pivot bar.",
|
description = "Removes the upgrade tab from the pivot bar.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
pivotBarConstructorFingerprint.method.apply {
|
pivotBarConstructorFingerprint.method.apply {
|
||||||
|
|||||||
@@ -8,12 +8,7 @@ val bypassCertificateChecksPatch = bytecodePatch(
|
|||||||
name = "Bypass certificate checks",
|
name = "Bypass certificate checks",
|
||||||
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.",
|
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
checkCertificateFingerprint.method.returnEarly(true)
|
checkCertificateFingerprint.method.returnEarly(true)
|
||||||
|
|||||||
@@ -8,12 +8,7 @@ val backgroundPlaybackPatch = bytecodePatch(
|
|||||||
name = "Remove background playback restrictions",
|
name = "Remove background playback restrictions",
|
||||||
description = "Removes restrictions on background playback, including playing kids videos in the background.",
|
description = "Removes restrictions on background playback, including playing kids videos in the background.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
kidsBackgroundPlaybackPolicyControllerFingerprint.method.addInstruction(
|
kidsBackgroundPlaybackPolicyControllerFingerprint.method.addInstruction(
|
||||||
|
|||||||
@@ -25,12 +25,7 @@ val spoofClientPatch = bytecodePatch(
|
|||||||
name = "Spoof client",
|
name = "Spoof client",
|
||||||
description = "Spoofs the client to fix playback.",
|
description = "Spoofs the client to fix playback.",
|
||||||
) {
|
) {
|
||||||
compatibleWith(
|
compatibleWith("com.google.android.apps.youtube.music")
|
||||||
"com.google.android.apps.youtube.music"(
|
|
||||||
"7.16.53",
|
|
||||||
"8.05.51"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
dependsOn(
|
dependsOn(
|
||||||
sharedExtensionPatch,
|
sharedExtensionPatch,
|
||||||
|
|||||||
Reference in New Issue
Block a user