Jump to content

  •  

  • iBotModz CBox


    Tutorial info Visit support topic

    • Added on: Dec 12 2011 11:42 AM
    • Date Updated: Dec 14 2011 06:58 PM
    • Views: 15758
    • |
     


    Decompiling Android APPs using APKTool

    This tutorial helps decompile applications so you may translate or change the applications. This is used for the MIUI application, as the main ROM is Chinese.

    NOTE: This is not for illegal purposes.

    Posted by iBotPeaches on Dec 12 2011 11:42 AM

    Setup (Part 2)







    We must first explore our downloaded ROM. For this example I will be using the DHD 1.12.9 copy of MIUI. Directly inside the ZIP will be a META-INF folder, system folder, and a boot.img file. You should only be concerned with the system folder. That holds all the APKs we need.

    First off, we must get the framework-res.apk from our ROM. You must do this everything. Since every ROM runs separate frameworks and extracted APKs are dependent on this APK.

    This picture shows where the APK was located for MIUI.
    Posted Image
    We are under /system/framework/framework-res.apk

    Copy that file into a folder where the downloaded apktool.jar file is, and the extracted contents of the template.rar file. Now traverse to /system/app/ . You will be greeted with every APK that your ROM ships with. For this example we will be modifying the MIUIStats.apk, as seen below.
    Posted Image

    We are going to COPY that file into the same location as the previous file and apktool. If done correctly, it should like below (Except with whatever application you are decompiling). Notice the batch files from the template.rar folder. You need this.
    Posted Image



    Powered by Tutorials 1.5.0 © 2024, by Michael McCune