mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-24 19:15:50 +01:00
feat: display metadata for each signature in SignatureChecker
This commit is contained in:
parent
e46ef02302
commit
736a71fac2
@ -27,8 +27,8 @@ internal class SignatureChecker {
|
||||
if (patternScanMethod is PatternScanMethod.Fuzzy) {
|
||||
val warnings = patternScanMethod.warnings!!
|
||||
val method = signature.result!!.method
|
||||
|
||||
println("Signature: ${signature.metadata.name}.\nMethod: ${method.definingClass}->${method.toStr()}\nWarnings: ${warnings.count()}")
|
||||
val methodFromMetadata = signature.metadata.methodMetadata
|
||||
println("Signature: ${signature.metadata.name}.\nMethod: ${methodFromMetadata.definingClass}->${methodFromMetadata.name} (Signature matches: ${method.definingClass}->${method.toStr()})\nWarnings: ${warnings.count()}")
|
||||
for (warning in warnings) {
|
||||
println("${warning.instructionIndex} / ${warning.patternIndex}: ${warning.wrongOpcode} (expected: ${warning.correctOpcode})")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user