youtube music patches work now

This commit is contained in:
oSumAtrIX
2026-01-30 16:28:16 +01:00
parent 2ea26b02ea
commit d39c53f677

View File

@@ -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;")
}
instructions("Failed to get certificate"(String::contains))
}