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.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
StephenP
日安装量
0
总安装量
0
评分
0 0 0
版本
1.2.1
创建于
2025-04-09
更新于
2025-04-17
大小
8.0 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.

-Is there an application that does the same thing? I made an Android app with the same function. You can find it on Mobimart Italia (you need to be registered on the forum to see it)