feat(YouTube Music): Make working patches compatible with latest versions (#3556)

This commit is contained in:
Pun Butrach 2024-09-17 20:56:00 +07:00 committed by GitHub
parent 7b12688c01
commit 12f6f1966a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 10 additions and 100 deletions

View file

@ -13,16 +13,7 @@ import app.revanced.util.exception
name = "Hide video ads", name = "Hide 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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
], ],
) )
@Suppress("unused") @Suppress("unused")

View file

@ -12,16 +12,7 @@ import com.android.tools.smali.dexlib2.Opcode
@Patch( @Patch(
description = "Adds more audio codec options. The new audio codecs usually result in better audio quality.", description = "Adds more audio codec options. The new audio codecs usually result in better audio quality.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Deprecated("This patch is no longer needed as the feature is now enabled by default.") @Deprecated("This patch is no longer needed as the feature is now enabled by default.")

View file

@ -12,16 +12,7 @@ import app.revanced.util.exception
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Suppress("unused") @Suppress("unused")

View file

@ -14,16 +14,7 @@ import app.revanced.patches.music.interaction.permanentrepeat.fingerprints.Repea
name = "Permanent repeat", name = "Permanent repeat",
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
], ],
use = false use = false
) )

View file

@ -14,16 +14,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
name = "Hide category bar", name = "Hide category bar",
description = "Hides the category bar at the top of the homepage.", description = "Hides the category bar at the top of the homepage.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
], ],
use = false, use = false,
) )

View file

@ -17,16 +17,7 @@ import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Suppress("unused") @Suppress("unused")

View file

@ -23,16 +23,7 @@ import com.android.tools.smali.dexlib2.iface.reference.FieldReference
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Suppress("unused") @Suppress("unused")

View file

@ -13,16 +13,7 @@ import app.revanced.patches.music.misc.androidauto.fingerprints.CheckCertificate
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Suppress("unused") @Suppress("unused")

View file

@ -14,16 +14,7 @@ import app.revanced.util.resultOrThrow
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.",
compatiblePackages = [ compatiblePackages = [
CompatiblePackage( CompatiblePackage("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",
]
)
] ]
) )
@Suppress("unused") @Suppress("unused")

View file

@ -23,16 +23,7 @@ object GmsCoreSupportPatch : BaseGmsCoreSupportPatch(
integrationsPatchDependency = IntegrationsPatch::class, integrationsPatchDependency = IntegrationsPatch::class,
gmsCoreSupportResourcePatch = GmsCoreSupportResourcePatch, gmsCoreSupportResourcePatch = GmsCoreSupportResourcePatch,
compatiblePackages = setOf( compatiblePackages = setOf(
CompatiblePackage( CompatiblePackage("com.google.android.apps.youtube.music"),
"com.google.android.apps.youtube.music",
setOf(
"6.45.54",
"6.51.53",
"7.01.53",
"7.02.52",
"7.03.52",
),
),
), ),
fingerprints = setOf( fingerprints = setOf(
CastDynamiteModuleV2Fingerprint, CastDynamiteModuleV2Fingerprint,