Kamis, 03 Juli 2014

[Guide][Apktool] Basic Guide To Decompile and Recompile Apks

First, you must know some basic meaning first

Apk is Android application package that contains Xml and Smali files. Those smali and xml files is files that control behavior or action in an app.

Decompile (DC) and Recompile (RC) is process to extract the xml and smali to a folder. It used to make modification on the app

So, this guide is about to DC and RC some apk to make some mods (I'll give the guide in the next post :) )

Requirements :
1. JDK (Java Development Kit) : HERE!!
2. Apktool : HERE!! (place both file in C:\Windows\ )
3. Rooted phone (to take out the framework-res.apk and tw-framework-res.apk) ; place both apk in Local Disc C [Not inside any folder ¡¡¡]

4. Nice Brain.apk

How To :
1. Press the windows icon and then search for cmd app ; then right click and choose Run as administrator and accept any security message

2. Then type cd.. (no need to make it bold and yes, type the dot twice)

3. Type cd.. again

4. The to install the framework; type
apktool if c:\framework-res.apk
apktool if c:\twframework-res.apk

5. Place the apk that want to DC in Local Disc C

6. Then type this
apktool d c:\nameoftheapp.apk (e.g. SystemUI.apk) c:\folderoftheDCfolder (e.g. : newSystemUI

7. It'll start to decompile

How to Recompile :

1. Type in cmd :
apktool b c:\nameofthefolder c:\newapkname.apk

2. Hope no error when recompile :D

Note:
It also work on jar files

Tidak ada komentar:

Posting Komentar