diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/Fingerprints.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/Fingerprints.kt index 0301168ab..bc4a05e49 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/Fingerprints.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/Fingerprints.kt @@ -1,14 +1,16 @@ package app.revanced.patches.music.misc.androidauto import app.revanced.patcher.gettingFirstMutableMethodDeclaratively +import app.revanced.patcher.instructions +import app.revanced.patcher.invoke import app.revanced.patcher.parameterTypes import app.revanced.patcher.patch.BytecodePatchContext import app.revanced.patcher.returnType internal val BytecodePatchContext.checkCertificateMethod by gettingFirstMutableMethodDeclaratively( "X509", - "Failed to get certificate" // Partial String match. ) { returnType("Z") parameterTypes("Ljava/lang/String;") -} \ No newline at end of file + instructions("Failed to get certificate"(String::contains)) +}