feat(YouTube Music): Add support for 8.44.54

This commit is contained in:
oSumAtrIX 2026-03-11 02:25:27 +01:00
parent 81b24642be
commit 636698c96e
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
22 changed files with 32 additions and 11 deletions

View file

@ -29,6 +29,7 @@ val hideMusicVideoAdsPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -21,6 +21,7 @@ val enableExclusiveAudioPlaybackPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -32,6 +32,7 @@ val permanentRepeatPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -74,6 +74,7 @@ val customBrandingPatch = baseCustomBrandingPatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )
}, },

View file

@ -69,6 +69,7 @@ val changeHeaderPatch = changeHeaderPatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
), ),
resourcesAppId = "music", resourcesAppId = "music",

View file

@ -52,6 +52,7 @@ val hideButtonsPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -35,6 +35,7 @@ val hideCategoryBarPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -15,7 +15,8 @@ val hideLayoutComponentsPatch = hideLayoutComponentsPatch(
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
), ),
) )

View file

@ -43,6 +43,7 @@ val changeMiniplayerColorPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -57,6 +57,7 @@ val navigationBarPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -33,6 +33,7 @@ val hideGetMusicPremiumPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -41,6 +41,7 @@ val changeStartPagePatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
) )
) )

View file

@ -7,7 +7,8 @@ import app.revanced.patches.shared.layout.theme.baseThemeResourcePatch
import app.revanced.patches.shared.layout.theme.darkThemeBackgroundColorOption import app.revanced.patches.shared.layout.theme.darkThemeBackgroundColorOption
import app.revanced.patches.shared.misc.settings.overrideThemeColors import app.revanced.patches.shared.misc.settings.overrideThemeColors
private const val EXTENSION_CLASS_DESCRIPTOR = "Lapp/revanced/extension/music/patches/theme/ThemePatch;" private const val EXTENSION_CLASS_DESCRIPTOR =
"Lapp/revanced/extension/music/patches/theme/ThemePatch;"
@Suppress("unused") @Suppress("unused")
val themePatch = baseThemePatch( val themePatch = baseThemePatch(
@ -33,7 +34,8 @@ val themePatch = baseThemePatch(
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
) )
}, },

View file

@ -10,9 +10,7 @@ import app.revanced.patcher.returnType
import app.revanced.patcher.strings import app.revanced.patcher.strings
import com.android.tools.smali.dexlib2.iface.ClassDef import com.android.tools.smali.dexlib2.iface.ClassDef
internal val BytecodePatchContext.checkCertificateMethod by gettingFirstMethodDeclaratively( internal val BytecodePatchContext.checkCertificateMethod by gettingFirstMethodDeclaratively {
"X509",
) {
returnType("Z") returnType("Z")
parameterTypes("L") parameterTypes("L")
strings("X509", "isPartnerSHAFingerprint") strings("X509", "isPartnerSHAFingerprint")

View file

@ -20,6 +20,7 @@ val unlockAndroidAutoMediaBrowserPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -22,7 +22,8 @@ val forceOriginalAudioPatch = forceOriginalAudioPatch(
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
) )
}, },

View file

@ -21,6 +21,7 @@ val removeBackgroundPlaybackRestrictionsPatch = bytecodePatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )

View file

@ -21,6 +21,7 @@ val enableDebuggingPatch = enableDebuggingPatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
) )
) )
}, },

View file

@ -15,7 +15,8 @@ val checkWatchHistoryDomainNameResolutionPatch = checkWatchHistoryDomainNameReso
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
) )
}, },

View file

@ -10,6 +10,7 @@ import app.revanced.patches.music.misc.gms.Constants.MUSIC_PACKAGE_NAME
import app.revanced.patches.music.misc.gms.Constants.REVANCED_MUSIC_PACKAGE_NAME import app.revanced.patches.music.misc.gms.Constants.REVANCED_MUSIC_PACKAGE_NAME
import app.revanced.patches.music.misc.settings.PreferenceScreen import app.revanced.patches.music.misc.settings.PreferenceScreen
import app.revanced.patches.music.misc.settings.settingsPatch import app.revanced.patches.music.misc.settings.settingsPatch
import app.revanced.patches.music.shared.mainActivityOnCreateMethod
import app.revanced.patches.shared.castContextFetchMethod import app.revanced.patches.shared.castContextFetchMethod
import app.revanced.patches.shared.misc.gms.gmsCoreSupportPatch import app.revanced.patches.shared.misc.gms.gmsCoreSupportPatch
import app.revanced.patches.shared.misc.settings.preference.IntentPreference import app.revanced.patches.shared.misc.settings.preference.IntentPreference
@ -23,7 +24,7 @@ val gmsCoreSupportPatch = gmsCoreSupportPatch(
toPackageName = REVANCED_MUSIC_PACKAGE_NAME, toPackageName = REVANCED_MUSIC_PACKAGE_NAME,
getPrimeMethod = { primeMethod }, getPrimeMethod = { primeMethod },
getEarlyReturnMethods = setOf(BytecodePatchContext::castContextFetchMethod::get), getEarlyReturnMethods = setOf(BytecodePatchContext::castContextFetchMethod::get),
getMainActivityOnCreateMethodToGetInsertIndex = BytecodePatchContext::musicActivityOnCreateMethod::get to { 0 }, getMainActivityOnCreateMethodToGetInsertIndex = BytecodePatchContext::mainActivityOnCreateMethod::get to { 0 },
extensionPatch = sharedExtensionPatch, extensionPatch = sharedExtensionPatch,
gmsCoreSupportResourcePatchFactory = ::gmsCoreSupportResourcePatch, gmsCoreSupportResourcePatchFactory = ::gmsCoreSupportResourcePatch,
) { ) {
@ -34,6 +35,7 @@ val gmsCoreSupportPatch = gmsCoreSupportPatch(
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54", "8.40.54",
"8.44.54"
), ),
) )
} }

View file

@ -18,7 +18,8 @@ val sanitizeSharingLinksPatch = sanitizeSharingLinksPatch(
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
) )
}, },

View file

@ -33,7 +33,8 @@ val spoofVideoStreamsPatch = spoofVideoStreamsPatch(
"7.29.52", "7.29.52",
"8.10.52", "8.10.52",
"8.37.56", "8.37.56",
"8.40.54" "8.40.54",
"8.44.54"
) )
) )
}, },