From 17a5a6c1691b0c23f601d3355b72f122c2bd5dcb Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:00:32 +0400 Subject: [PATCH] fix(YouTube Music - Bypass certificate checks): Add a recommended target version (#4104) --- .../misc/androidauto/BypassCertificateChecksPatch.kt | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt index d53691886..cf3ada07b 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt @@ -1,22 +1,16 @@ package app.revanced.patches.music.misc.androidauto -import app.revanced.patcher.extensions.InstructionExtensions.addInstructions import app.revanced.patcher.patch.bytecodePatch +import app.revanced.util.returnEarly @Suppress("unused") val bypassCertificateChecksPatch = bytecodePatch( name = "Bypass certificate checks", 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 { - checkCertificateFingerprint.method.addInstructions( - 0, - """ - const/4 v0, 0x1 - return v0 - """, - ) + checkCertificateFingerprint.method.returnEarly(true) } }