How to decompile and recompile the system ui of android phone

Hi there! writing to you after a long interval, today i am going to tell you how to design a system ui of a android phone with apktools.

So here is a guide for theming systemui for probably all devices.

Things needed:

Java JRE: Download link- http://filehippo.com/download_jre_32

Apktool: Download link-https://docs.google.com/file/d/0B_nizg6yUZ0NdktUaEpKbXNHNlE/edit?pli=1

Now Download stock deodexed ui of Samung galaxy star pro here: http://www.4shared.com/mobile/4lObUSo-ba/system.html

Note: For other mobile users don't use the above ui, you must get deoxded ui for you phone model. Search on google for that.
Famework.apk from your phone. you can get that from framework folder of your phone.

Download some sample toggles: Links:
http://d-h.st/IXi
http://d-h.st/Znu
http://d-h.st/pfn
http://d-h.st/fPp
http://d-h.st/D9s

Now lets start.


  • Install Java JRE in pc.
  • Unzip apktool and copy all files except framework and 7zip.
  • Open CMD and check the directory written there.
  • Paste those copied files of apktool to that directory.
  • Now copy system.apk and framework folder and paste it in the same directory where apktool is pasted.
  • Now open Framework folder and copy Freamwork-res.apk and paste it in the directory where all other files are pasted.
  • Now we are done.


Lets get back to modding.
Open CMD.
Type (or just copy and paste the lines)
apktool if framework-res.apk
wait....then type
apktool if system.apk
wait....then type
apktool d framework-res.apk
wait....then type
apktool d system.apk
Wait for a minute. Now the systemui is decompiled.Minimize the CMD window.

Now goto the directory and you will find a folder called system. Open it.
Goto res>drawable-hdpi folder and minimize the window.

Now,download any toggles.zip you want. Unzip it.Copy all the images in it and paste it in the drawable-hdpi folder that you minimized. Click yes to all while pasting.
Now get out of system folder means go back to the directory.

Maximize CMD window. Now type (or paste this line):
apktool b system
wait until it shows 'building apk file'. Now minimize CMD.

Now its time to sign the systemui:

Place the original system.apk on desktop. Unzip it using 7zip (its setup is included in the apktool.zip)
Now copy android-manifest.xml and Meta-inf folder from the unzipped system.apk.

Goto system folder that you just modified which is in the CMD directory. Open it.
Goto Build>Apk folder and paste those two files there,press yes to all.

Now get out of system folder.
Open CMD and type or paste this line:
apktool b system
Wait for few seconds until the process gets completed. After its done close CMD window and goto system>dist and check if you get the system.apk file. Thats the one that you built just now.

Now you too,are a themer!!! Enjoy!!!!

Credits to Mr. Aniruddha B.Pathak.
Previous
Next Post »

Use me to comment your thoughts... EmoticonEmoticon

NEW VIDEO