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.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)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址