mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-01 03:42:56 +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) {
|
if (patternScanMethod is PatternScanMethod.Fuzzy) {
|
||||||
val warnings = patternScanMethod.warnings!!
|
val warnings = patternScanMethod.warnings!!
|
||||||
val method = signature.result!!.method
|
val method = signature.result!!.method
|
||||||
|
val methodFromMetadata = signature.metadata.methodMetadata
|
||||||
println("Signature: ${signature.metadata.name}.\nMethod: ${method.definingClass}->${method.toStr()}\nWarnings: ${warnings.count()}")
|
println("Signature: ${signature.metadata.name}.\nMethod: ${methodFromMetadata.definingClass}->${methodFromMetadata.name} (Signature matches: ${method.definingClass}->${method.toStr()})\nWarnings: ${warnings.count()}")
|
||||||
for (warning in warnings) {
|
for (warning in warnings) {
|
||||||
println("${warning.instructionIndex} / ${warning.patternIndex}: ${warning.wrongOpcode} (expected: ${warning.correctOpcode})")
|
println("${warning.instructionIndex} / ${warning.patternIndex}: ${warning.wrongOpcode} (expected: ${warning.correctOpcode})")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user