androiddexsmaliapktool

How to get dex file from apk when using v2 signature?


I hava an apk file.

When the apk is used v1 signature, it is ok when unzip an apk file. But when using v2, unzip fails.

How can i get the original dex file?

What i want to do is to modify the dex with ida, then rebuild to get a new apk.

I know i can use apktool to get smali files, then modify smali file and rebuild to a new apk. But i want do try modify dex file in hex mode(eg. using ultra edit).

enter image description here


Solution

  • You can pass -s, --no-src to apktool for apktool -s name_of_apk.apk and that will skip the sources. This is what is normally disassembled to smali folders.

    https://ibotpeaches.github.io/Apktool/documentation/#decode