Skip to content
Discussion options

You must be logged in to vote

@nitanmarcel looks like your request is similar to this scripts example:

jadx.replace.insns { mth, insn ->
if (insn is InvokeNode && insn.callMth.rawFullId == mthSignature) {
val str = getConstStr(insn.getArg(0))
if (str != null) {
val resultStr = decode(str)
log.info { "Decode '$str' to '$resultStr' in $mth" }
return@insns ConstStringNode(resultStr)

It searches for method usage and replaces it with a string calculated based on method argument.
You can use this script directly.
If you want to create a plugin, you can check implementation of …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nitanmarcel
Comment options

@skylot
Comment options

@nitanmarcel
Comment options

Answer selected by nitanmarcel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants