mirror of
https://github.com/revanced/revanced-patcher.git
synced 2025-05-01 05:44:24 +02:00
fix: string signature in SignatureResolver
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
612515acf8
commit
e5ae970009
@ -72,17 +72,18 @@ internal class SignatureResolver(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
method.implementation?.instructions?.let { instructions ->
|
signature.strings?.let { strings ->
|
||||||
signature.strings?.let {
|
method.implementation ?: return null
|
||||||
val stringsList = it as MutableSet
|
|
||||||
|
method.implementation!!.instructions.let { instructions ->
|
||||||
|
val stringsList = strings.toMutableList()
|
||||||
|
|
||||||
for (instruction in instructions) {
|
for (instruction in instructions) {
|
||||||
if (instruction.opcode != Opcode.CONST_STRING) continue
|
if (instruction.opcode != Opcode.CONST_STRING) continue
|
||||||
|
|
||||||
val string = ((instruction as Instruction21c).reference as StringReference).string
|
val string = ((instruction as Instruction21c).reference as StringReference).string
|
||||||
if (stringsList.contains(string)) {
|
val i = stringsList.indexOfFirst { it == string }
|
||||||
stringsList.remove(string)
|
if (i != -1) stringsList.removeAt(i)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stringsList.isNotEmpty()) return null
|
if (stringsList.isNotEmpty()) return null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user