Skip to content

Commit c73a03c

Browse files
authored
fix(Instagram): Update failing fingerprints on newer versions (#6181)
1 parent c1681f9 commit c73a03c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

patches/src/main/kotlin/app/revanced/patches/instagram/hide/navigation/Fingerprints.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package app.revanced.patches.instagram.hide.navigation
33

44
import app.revanced.patcher.fingerprint
55
import app.revanced.patcher.patch.BytecodePatchContext
6+
import com.android.tools.smali.dexlib2.AccessFlags
67

78
internal val initializeNavigationButtonsListFingerprint = fingerprint {
8-
strings("Nav3")
9+
accessFlags(AccessFlags.PUBLIC, AccessFlags.FINAL)
910
parameters("Lcom/instagram/common/session/UserSession;", "Z")
1011
returns("Ljava/util/List;")
1112
}

patches/src/main/kotlin/app/revanced/patches/instagram/misc/devmenu/EnableDeveloperMenuPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ val enableDeveloperMenuPatch = bytecodePatch(
2424
with(clearNotificationReceiverFingerprint.method) {
2525
indexOfFirstInstructionReversedOrThrow(clearNotificationReceiverFingerprint.stringMatches!!.first().index) {
2626
val reference = getReference<MethodReference>()
27-
Opcode.INVOKE_STATIC == opcode &&
27+
opcode in listOf(Opcode.INVOKE_STATIC, Opcode.INVOKE_STATIC_RANGE) &&
2828
reference?.parameterTypes?.size == 1 &&
2929
reference.parameterTypes.first() == "Lcom/instagram/common/session/UserSession;" &&
3030
reference.returnType == "Z"

0 commit comments

Comments
 (0)