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.
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.
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.
- Korupt Data likes this