Donate
Dear Members, If you would like to see our site and development grow, please consider a small donation to our efforts. More donations means more devices supported which means more ROMs! Any and all donations go towards the site, development and much more! Thank you for your contributions! -BDH ======================= =======================
Top posters
BDH (171)
 
jl90x (137)
 
johnthehillbilly (95)
 
usmcamgrimm (70)
 
Nosnhoj (54)
 
CharmPeddler (29)
 
JaeKar99 (23)
 
lazer (23)
 
BDAZZG1 (17)
 
tomsgt123 (11)
 

Search
 
 

Display results as :
 


Rechercher Advanced Search

Statistics
We have 885 registered users
The newest registered user is Madhatter75

Our users have posted a total of 711 messages in 116 subjects

[How-To] Begin Making Themes

 :: General :: How-To's

Go down

[How-To] Begin Making Themes

Post by BDH on Fri Jun 07, 2013 9:18 am

Hi there! So you want to start making themes?? I'm going to help you get started very easily! I'm warning you now though, this is A LOT of work and will use up A LOT of your time!

Prerequisites - These are what you'll need to start making Themes:

Winrar - 32bit: [You must be registered and logged in to see this link.] 64bit: [You must be registered and logged in to see this link.]
7zip: [You must be registered and logged in to see this link.]
Apktool - [You must be registered and logged in to see this link.]
Java6 - [You must be registered and logged in to see this link.]
Notepad++: [You must be registered and logged in to see this link.]
Paint.NET ( a very good and FREE image editor): [You must be registered and logged in to see this link.]

Download and install Java JDK 6 (make sure you get the right OS build and either 32bit or 64bit)

Download an install Winrar. After installing, your zip files will now have an icon that looks like a stack of books.

Download Apktool. After it downloads, right click the zip file and click on "Extract Files..." and extract the Apktool zip to your desktop.

Download and Install Notepad++

Download and install Paint.NET


Getting Started:

On your phone, using a root file explorer like Root Explorer, navigate to /system/framework and copy/paste the framework-res.apk to your external sdcard. SystemUI.apk is located in /system/app

Also do the same with whatever apk you want to edit (there is no promise this will work with downloaded apps from the Play Store, this WILL work with any app that is in the /system directory.)

For purposes of this guide, we are going to assume you're editing the SystemUI.apk and the framework-res.apk because these are the 2 main files for making a theme for a ROM.

Now take whatever apks you are editing and move them to your PC.

Now let's go back to the Apktool folder on your desktop. It should look like this:





Take those apks you took from your phone and place them in the Apktool folder like this:



Now go back to your desktop. Now we're going to hold the "shift" key, and right click on the Apktool folder. On the menu that pops up, select "Open command window here"

Now you should see this:



Obviously, your path to Apktool will not be the same as mine, that's irrelevant. (Note: Anything you type into the command prompt IS case sensitive! Make sure you type everything correctly, or just copy and paste the commands from here!)

In that command prompt window, type the following code:

Code:
apktool if framework-res.apk

What this code does, is install the framework-res.apk in case it's needed to edit any other files (and it will be).

Now you should see this:



Now it's time to decompile the SystemUI.apk for edits, for that you will use this command:

Code:
apktool d SystemUI.apk


Your command prompt should now look like this:



Now go back to the Apktool folder on your desktop and you'll notice there is now a folder in there named "SystemUI" this will be where you make your edits. A few tips: Most of the images you will edit will be in the /res/drawable-hdpi, folder. DO NOT EDIT ANY XMLS OR IMAGES THAT END IN .9 THESE CAN CAUSE SERIOUS SYSTEM ISSUES! READ UP ON THEM BEFORE YOU START EDITING ANYTHING IN XML FILES OR .9 IMAGES. When editing images, make sure the image keeps the EXACT same file name. You cannot change the name of any icons.

Ok so let's say that you have now finished all of your image edits and you're ready to see your own work! That's the simple part (as long as you didn't mess anything up lol).

Ok now after editing, go back to your command prompt window. If you don't remember how to do it, hold down "shift" and right click on the Apktool folder, then select "Open command window here."

If you closed the command window earlier, you need to reinstall the framework-res.apk with "apktool if framework-res.apk"

Now in that same command window, type or copy/paste the following:

Code:
apktool b SystemUI


Note, you are building from a file, so make sure you DO NOT put ".apk" after SystemUI.

Now you should be looking at a screen like this:



Now navigate to the apktool folder again and go the following directory /apktool/SystemUI/dist

Inside there is your newly built SystemUI.apk, however, you're not going to use it lol. You're only going to use parts of it.

Rename that new SystemUI.apk to something distinguishable, like "newSystemUI.apk."

Now right click that new apk and hover over "7zip" and select the top option which is "Open Archive"

A new window will appear:



Now go back to the apktool folder and open the old SystemUI.apk the SAME WAY! Right click, hover over 7zip, select "Open Archive."

The same kind of window will pop up.

Now here's where things get a little tricky.

You're going to need to put these 2 7zip windows side by side!!!

Like this:



Now hold down "ctrl" and highlight the following items in the NEW apk window:
  • res
    resources.arsc


Now drag and drop both of those items into the OLD apk window.

Close out all windows

Now take that OLD SystemUI.apk which has the new images in it, and place it back on your sdcard.

Use a Root File Explorer on your phone and move the SystemUI.apk to /system

Now press and hold on the file and select "Permissions"

Make sure the permissions look like this:



Now move that apk to /system/app

Now reboot

Your phone should boot backup normally and you will see the changes you made.

Now repeat this process for every apk you're editing.

If your phone fails to boot, you messed something up, seriously you did lol.

A few more tips and notes:

SystemUI's and framework-res.apk's are NOT inter-changeable. You cannot take these files from other ROMs and place them in yours.
Again, DO NOT touch the XML files, or the 9 patch images (images that end in .9) until you have read up on them A LOT. There are tons of posts that talk about dealing with .9 images and XML edits.


If you get any errors with apktool, post it here and I will try to help as much as I can.

NOW GET OUT THERE AND MAKE SOME THEMES!!!!!

===============================================================================================





avatar
BDH
Admin
Admin

Posts : 171
Join date : 2013-06-03
Age : 37
Location : Hawaii

View user profile http://teamrage.4rumer.com

Back to top Go down

Back to top


 :: General :: How-To's

 
Permissions in this forum:
You cannot reply to topics in this forum