youtube music patches work now
This commit is contained in:
parent
2ea26b02ea
commit
d39c53f677
1 changed files with 4 additions and 2 deletions
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue