Skip to content

Commit c5de9e2

Browse files
committed
fix: check if fingerprint string is substring of any string references
1 parent c391ca6 commit c5de9e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/app/revanced/patcher/fingerprint/method/impl/MethodFingerprint.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ abstract class MethodFingerprint(
109109
if (instruction.opcode.ordinal != Opcode.CONST_STRING.ordinal) return@forEachIndexed
110110

111111
val string = ((instruction as ReferenceInstruction).reference as StringReference).string
112-
val index = stringsList.indexOfFirst { it == string }
112+
val index = stringsList.indexOfFirst(string::contains)
113113
if (index == -1) return@forEachIndexed
114114

115115
add(

src/main/kotlin/app/revanced/patcher/patch/annotations/PatchAnnotation.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import kotlin.reflect.KClass
1414
annotation class Patch(val include: Boolean = true)
1515

1616
/**
17-
* Annotation for dependencies of [Patch]es .
17+
* Annotation for dependencies of [Patch]es.
1818
*/
1919
@Target(AnnotationTarget.CLASS)
2020
@Retention(AnnotationRetention.RUNTIME)

0 commit comments

Comments
 (0)