fix: messenger patches

This commit is contained in:
drobotk 2026-02-23 23:09:03 +01:00
parent 581369077f
commit 80d81ea030
No known key found for this signature in database
GPG key ID: 4B532DAB8340742C
2 changed files with 6 additions and 2 deletions

View file

@ -4,8 +4,11 @@ import app.revanced.patcher.gettingFirstMethodDeclaratively
import app.revanced.patcher.parameterTypes
import app.revanced.patcher.patch.BytecodePatchContext
import app.revanced.patcher.returnType
import app.revanced.patcher.instructions
import app.revanced.patcher.invoke
internal val BytecodePatchContext.isFacebookButtonEnabledMethod by gettingFirstMethodDeclaratively("FacebookButtonTabButtonImplementation") {
internal val BytecodePatchContext.isFacebookButtonEnabledMethod by gettingFirstMethodDeclaratively {
parameterTypes()
returnType("Z")
instructions("FacebookButtonTabButtonImplementation"(String::contains))
}

View file

@ -11,8 +11,9 @@ internal val BytecodePatchContext.getMobileConfigBoolMethodMatch by composingFir
custom { "Lcom/facebook/mobileconfig/factory/MobileConfigUnsafeContext;" in immutableClassDef.interfaces }
}
internal val BytecodePatchContext.metaAIKillSwitchCheckMethodMatch by composingFirstMethod("SearchAiagentImplementationsKillSwitch") {
internal val BytecodePatchContext.metaAIKillSwitchCheckMethodMatch by composingFirstMethod {
opcodes(Opcode.CONST_WIDE)
instructions("SearchAiagentImplementationsKillSwitch"(String::contains))
}
internal val BytecodePatchContext.extensionMethodMatch by composingFirstMethod {