Smali to Dalvik OpCode

Helper script to translate parts of the smali code of an application to the corresponding Dalvik opcodes, leaving wildcards for the variable parts of the code (variables, parameters, etc.). The output is formatted to be easily transformed in a LuckyPatcher patch.

作者
StephenP
今日安裝
0
安裝總數
0
評價
0 0 0
版本
1.1
建立日期
2025-04-09
更新日期
2025-04-15
尺寸
9.2 KB
授權條款
未知
腳本執行於

Smali to Dalvik bytecode converter, to be used on Gábor Paller's Dalvik opcodes documentation.
The script adds an input field above the table, where you can put the original smali code that you want to patch. If you haven't tried it yet, I suggest you to use Apktool M to decompile Android apps.
When you click on the "CONVERT" button, you will get the Dalvik bytecode ready to be pasted in a txt file to be used with LuckyPatcher (check LuckyPatcher's in-app documentation for the details on the creation of a patch);
If you think this was useful, and you manage to make a working patch, please remember to submit it to LuckyPatcher developer's website so that it can be useful to all the users of LuckyPatcher.

F.A.Q:
-Why so many "??" wildcards in the output? This script does a very rough translation that only considers the instructions and their length, ignoring the variables used in these instructions. If the code that has to be patched is in a method that is often updated with every new version of the app, variables numbering may easily vary in each version, and it's frequently better to use only the sequence of instructions to make a reliable patch. Moreover, the bytes sequence of some instructions are quite obscure (see note 5 on Gábor Paller's page) and I'm too lazy to deal with that mess.