mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-18 08:53:57 +00:00
20 lines
679 B
Kotlin
20 lines
679 B
Kotlin
package app.revanced.patcher.usage.bytecode
|
|
import app.revanced.patcher.extensions.or
|
|
import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod
|
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
|
import org.jf.dexlib2.AccessFlags
|
|
import org.jf.dexlib2.Opcode
|
|
|
|
@FuzzyPatternScanMethod(2)
|
|
object ExampleFingerprint : MethodFingerprint(
|
|
"V",
|
|
AccessFlags.PUBLIC or AccessFlags.STATIC,
|
|
listOf("[L"),
|
|
listOf(
|
|
Opcode.SGET_OBJECT,
|
|
null, // Testing unknown opcodes.
|
|
Opcode.INVOKE_STATIC, // This is intentionally wrong to test the Fuzzy resolver.
|
|
Opcode.RETURN_VOID
|
|
),
|
|
null
|
|
) |