Skip to content

Commit 1258555

Browse files
authored
feat(YT Music): Support latest versions (#5524)
1 parent a8eee82 commit 1258555

File tree

10 files changed

+11
-65
lines changed

10 files changed

+11
-65
lines changed

patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ val hideVideoAdsPatch = bytecodePatch(
88
name = "Hide music video ads",
99
description = "Hides ads that appear while listening to or streaming music videos, podcasts, or songs.",
1010
) {
11-
compatibleWith(
12-
"com.google.android.apps.youtube.music"(
13-
"7.16.53",
14-
"8.05.51"
15-
)
16-
)
11+
compatibleWith("com.google.android.apps.youtube.music")
1712

1813
execute {
1914
navigate(showVideoAdsParentFingerprint.originalMethod)

patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ val enableExclusiveAudioPlaybackPatch = bytecodePatch(
88
name = "Enable exclusive audio playback",
99
description = "Enables the option to play audio without video.",
1010
) {
11-
compatibleWith(
12-
"com.google.android.apps.youtube.music"(
13-
"7.16.53",
14-
"8.05.51"
15-
)
16-
)
11+
compatibleWith("com.google.android.apps.youtube.music")
1712

1813
execute {
1914
allowExclusiveAudioPlaybackFingerprint.method.returnEarly(true)

patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ val permanentRepeatPatch = bytecodePatch(
1111
description = "Permanently remember your repeating preference even if the playlist ends or another track is played.",
1212
use = false,
1313
) {
14-
compatibleWith(
15-
"com.google.android.apps.youtube.music"(
16-
"7.16.53",
17-
"8.05.51"
18-
)
19-
)
14+
compatibleWith("com.google.android.apps.youtube.music")
2015

2116
execute {
2217
val startIndex = repeatTrackFingerprint.patternMatch!!.endIndex

patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentshuffle/PermanentShufflePatch.kt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,9 @@ import app.revanced.patcher.patch.bytecodePatch
77
@Suppress("unused")
88
val permanentShufflePatch = bytecodePatch(
99
description = "Permanently remember your shuffle preference " +
10-
"even if the playlist ends or another track is played.",
11-
use = false,
10+
"even if the playlist ends or another track is played."
1211
) {
13-
compatibleWith(
14-
"com.google.android.apps.youtube.music"(
15-
"6.45.54",
16-
"6.51.53",
17-
"7.01.53",
18-
"7.02.52",
19-
"7.03.52",
20-
),
21-
)
12+
compatibleWith("com.google.android.apps.youtube.music")
2213

2314
execute {
2415
disableShuffleFingerprint.method.addInstruction(0, "return-void")

patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ val hideCategoryBar = bytecodePatch(
1111
description = "Hides the category bar at the top of the homepage.",
1212
use = false,
1313
) {
14-
compatibleWith(
15-
"com.google.android.apps.youtube.music"(
16-
"7.16.53",
17-
"8.05.51"
18-
)
19-
)
14+
compatibleWith("com.google.android.apps.youtube.music")
2015

2116
execute {
2217
constructCategoryBarFingerprint.method.apply {

patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@ val hideGetPremiumPatch = bytecodePatch(
1111
name = "Hide 'Get Music Premium' label",
1212
description = "Hides the \"Get Music Premium\" label from the account menu and settings.",
1313
) {
14-
compatibleWith(
15-
"com.google.android.apps.youtube.music"(
16-
"7.16.53",
17-
"8.05.51"
18-
)
19-
)
14+
compatibleWith("com.google.android.apps.youtube.music")
2015

2116
execute {
2217
hideGetPremiumFingerprint.method.apply {

patches/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/RemoveUpgradeButtonPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ val removeUpgradeButtonPatch = bytecodePatch(
1818
name = "Remove upgrade button",
1919
description = "Removes the upgrade tab from the pivot bar.",
2020
) {
21-
compatibleWith(
22-
"com.google.android.apps.youtube.music"(
23-
"7.16.53",
24-
"8.05.51"
25-
)
26-
)
21+
compatibleWith("com.google.android.apps.youtube.music")
2722

2823
execute {
2924
pivotBarConstructorFingerprint.method.apply {

patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ val bypassCertificateChecksPatch = bytecodePatch(
88
name = "Bypass certificate checks",
99
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.",
1010
) {
11-
compatibleWith(
12-
"com.google.android.apps.youtube.music"(
13-
"7.16.53",
14-
"8.05.51"
15-
)
16-
)
11+
compatibleWith("com.google.android.apps.youtube.music")
1712

1813
execute {
1914
checkCertificateFingerprint.method.returnEarly(true)

patches/src/main/kotlin/app/revanced/patches/music/misc/backgroundplayback/BackgroundPlaybackPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ val backgroundPlaybackPatch = bytecodePatch(
88
name = "Remove background playback restrictions",
99
description = "Removes restrictions on background playback, including playing kids videos in the background.",
1010
) {
11-
compatibleWith(
12-
"com.google.android.apps.youtube.music"(
13-
"7.16.53",
14-
"8.05.51"
15-
)
16-
)
11+
compatibleWith("com.google.android.apps.youtube.music")
1712

1813
execute {
1914
kidsBackgroundPlaybackPolicyControllerFingerprint.method.addInstruction(

patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofClientPatch.kt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ val spoofClientPatch = bytecodePatch(
2525
name = "Spoof client",
2626
description = "Spoofs the client to fix playback.",
2727
) {
28-
compatibleWith(
29-
"com.google.android.apps.youtube.music"(
30-
"7.16.53",
31-
"8.05.51"
32-
)
33-
)
28+
compatibleWith("com.google.android.apps.youtube.music")
3429

3530
dependsOn(
3631
sharedExtensionPatch,

0 commit comments

Comments
 (0)