Skip to content

Commit f83e314

Browse files
authored
feat(YouTube Music): Make working patches compatible with latest versions (#3556)
1 parent d5e383b commit f83e314

File tree

10 files changed

+10
-100
lines changed

10 files changed

+10
-100
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ import app.revanced.util.exception
1313
name = "Hide video ads",
1414
description = "Hides ads that appear while listening to or streaming music videos, podcasts, or songs.",
1515
compatiblePackages = [
16-
CompatiblePackage(
17-
"com.google.android.apps.youtube.music",
18-
[
19-
"6.45.54",
20-
"6.51.53",
21-
"7.01.53",
22-
"7.02.52",
23-
"7.03.52",
24-
]
25-
)
16+
CompatiblePackage("com.google.android.apps.youtube.music")
2617
],
2718
)
2819
@Suppress("unused")

src/main/kotlin/app/revanced/patches/music/audio/codecs/CodecsUnlockPatch.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ import com.android.tools.smali.dexlib2.Opcode
1212
@Patch(
1313
description = "Adds more audio codec options. The new audio codecs usually result in better audio quality.",
1414
compatiblePackages = [
15-
CompatiblePackage(
16-
"com.google.android.apps.youtube.music",
17-
[
18-
"6.45.54",
19-
"6.51.53",
20-
"7.01.53",
21-
"7.02.52",
22-
"7.03.52",
23-
]
24-
)
15+
CompatiblePackage("com.google.android.apps.youtube.music")
2516
]
2617
)
2718
@Deprecated("This patch is no longer needed as the feature is now enabled by default.")

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,7 @@ import app.revanced.util.exception
1212
name = "Enable exclusive audio playback",
1313
description = "Enables the option to play audio without video.",
1414
compatiblePackages = [
15-
CompatiblePackage(
16-
"com.google.android.apps.youtube.music",
17-
[
18-
"6.45.54",
19-
"6.51.53",
20-
"7.01.53",
21-
"7.02.52",
22-
"7.03.52",
23-
]
24-
)
15+
CompatiblePackage("com.google.android.apps.youtube.music")
2516
]
2617
)
2718
@Suppress("unused")

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ import app.revanced.patches.music.interaction.permanentrepeat.fingerprints.Repea
1414
name = "Permanent repeat",
1515
description = "Permanently remember your repeating preference even if the playlist ends or another track is played.",
1616
compatiblePackages = [
17-
CompatiblePackage(
18-
"com.google.android.apps.youtube.music",
19-
[
20-
"6.45.54",
21-
"6.51.53",
22-
"7.01.53",
23-
"7.02.52",
24-
"7.03.52",
25-
]
26-
)
17+
CompatiblePackage("com.google.android.apps.youtube.music")
2718
],
2819
use = false
2920
)

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
1414
name = "Hide category bar",
1515
description = "Hides the category bar at the top of the homepage.",
1616
compatiblePackages = [
17-
CompatiblePackage(
18-
"com.google.android.apps.youtube.music",
19-
[
20-
"6.45.54",
21-
"6.51.53",
22-
"7.01.53",
23-
"7.02.52",
24-
"7.03.52",
25-
]
26-
)
17+
CompatiblePackage("com.google.android.apps.youtube.music")
2718
],
2819
use = false,
2920
)

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
1717
name = "Hide 'Get Music Premium' label",
1818
description = "Hides the \"Get Music Premium\" label from the account menu and settings.",
1919
compatiblePackages = [
20-
CompatiblePackage(
21-
"com.google.android.apps.youtube.music",
22-
[
23-
"6.45.54",
24-
"6.51.53",
25-
"7.01.53",
26-
"7.02.52",
27-
"7.03.52",
28-
]
29-
)
20+
CompatiblePackage("com.google.android.apps.youtube.music")
3021
]
3122
)
3223
@Suppress("unused")

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,7 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference
2323
name = "Remove upgrade button",
2424
description = "Removes the upgrade tab from the pivot bar.",
2525
compatiblePackages = [
26-
CompatiblePackage(
27-
"com.google.android.apps.youtube.music",
28-
[
29-
"6.45.54",
30-
"6.51.53",
31-
"7.01.53",
32-
"7.02.52",
33-
"7.03.52",
34-
]
35-
)
26+
CompatiblePackage("com.google.android.apps.youtube.music")
3627
]
3728
)
3829
@Suppress("unused")

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,7 @@ import app.revanced.patches.music.misc.androidauto.fingerprints.CheckCertificate
1313
name = "Bypass certificate checks",
1414
description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.",
1515
compatiblePackages = [
16-
CompatiblePackage(
17-
"com.google.android.apps.youtube.music",
18-
[
19-
"6.45.54",
20-
"6.51.53",
21-
"7.01.53",
22-
"7.02.52",
23-
"7.03.52",
24-
]
25-
)
16+
CompatiblePackage("com.google.android.apps.youtube.music")
2617
]
2718
)
2819
@Suppress("unused")

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ import app.revanced.util.resultOrThrow
1414
name = "Remove background playback restrictions",
1515
description = "Removes restrictions on background playback, including playing kids videos in the background.",
1616
compatiblePackages = [
17-
CompatiblePackage(
18-
"com.google.android.apps.youtube.music",
19-
[
20-
"6.45.54",
21-
"6.51.53",
22-
"7.01.53",
23-
"7.02.52",
24-
"7.03.52",
25-
]
26-
)
17+
CompatiblePackage("com.google.android.apps.youtube.music")
2718
]
2819
)
2920
@Suppress("unused")

src/main/kotlin/app/revanced/patches/music/misc/gms/GmsCoreSupportPatch.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,7 @@ object GmsCoreSupportPatch : BaseGmsCoreSupportPatch(
2323
integrationsPatchDependency = IntegrationsPatch::class,
2424
gmsCoreSupportResourcePatch = GmsCoreSupportResourcePatch,
2525
compatiblePackages = setOf(
26-
CompatiblePackage(
27-
"com.google.android.apps.youtube.music",
28-
setOf(
29-
"6.45.54",
30-
"6.51.53",
31-
"7.01.53",
32-
"7.02.52",
33-
"7.03.52",
34-
),
35-
),
26+
CompatiblePackage("com.google.android.apps.youtube.music"),
3627
),
3728
fingerprints = setOf(
3829
CastDynamiteModuleV2Fingerprint,

0 commit comments

Comments
 (0)