fix(YouTube Music - Bypass certificate checks): Add a recommended target version (#4104)

This commit is contained in:
LisoUseInAIKyrios 2024-12-12 00:00:32 +04:00 committed by GitHub
parent 5897a1cc2b
commit 17a5a6c169
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,22 +1,16 @@
package app.revanced.patches.music.misc.androidauto package app.revanced.patches.music.misc.androidauto
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
import app.revanced.patcher.patch.bytecodePatch import app.revanced.patcher.patch.bytecodePatch
import app.revanced.util.returnEarly
@Suppress("unused") @Suppress("unused")
val bypassCertificateChecksPatch = bytecodePatch( 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("com.google.android.apps.youtube.music") compatibleWith("com.google.android.apps.youtube.music"("7.29.52"))
execute { execute {
checkCertificateFingerprint.method.addInstructions( checkCertificateFingerprint.method.returnEarly(true)
0,
"""
const/4 v0, 0x1
return v0
""",
)
} }
} }