mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-10 03:24:37 +02:00
19 lines
781 B
Kotlin
19 lines
781 B
Kotlin
package app.revanced.patches.shared.fingerprints
|
|
|
|
import app.revanced.patcher.extensions.or
|
|
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
|
import app.revanced.patches.youtube.misc.resourceid.patch.SharedResourcdIdPatch
|
|
import org.jf.dexlib2.iface.instruction.WideLiteralInstruction
|
|
import org.jf.dexlib2.AccessFlags
|
|
import org.jf.dexlib2.Opcode
|
|
|
|
object PivotBarCreateButtonViewFingerprint : MethodFingerprint(
|
|
returnType = "V",
|
|
access = AccessFlags.PUBLIC or AccessFlags.FINAL,
|
|
customFingerprint = { methodDef ->
|
|
methodDef.implementation?.instructions?.any {
|
|
it.opcode.ordinal == Opcode.CONST.ordinal &&
|
|
(it as? WideLiteralInstruction)?.wideLiteral == SharedResourcdIdPatch.imageOnlyTabId
|
|
} == true
|
|
}
|
|
) |