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.

Verze ze dne 17. 04. 2025. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
StephenP
Hodnocení
0 0 0
Verze
1.2
Vytvořeno
09. 04. 2025
Aktualizováno
17. 04. 2025
Size
8,0 KB
Licence
neuvedeno
Spustit na

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.