mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-31 06:31:02 +00:00
youtube music patches work now
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user