[Guide] How to edit app icons using Apktool - Android General

Hello,
This is a guide that will show you how to edit app icons, by decompiling the apk file using Apktool X (current version is: 7.2.2a- Black).
But why would You want to edit a app icon using this method?
Well, at the time of speaking Android N doesn't have support for Xposed so you can't use Flipster for example... Or if you don't have root, by following this guide you can edit app icons system- wide.
Firstly download Apktool X by Andro Black.
After that you want to install it, and find a apk file you want to modify.
After you found the apk, press it once and chose: Decompile res
After that is done (depending on your phone and the apk size it might take several minutes), Use a file manager and open the "Base_src" > "res".
Then find " minimap-*****-** (the "*" could be for example xxhdpi-v4).
Then open one of those minimap folders ( I recommended the first or last one so you could keep track of it where you replaced the icons).
Copy your preferred .png icon and paste it in one of the folders. In the minimap folder you should find the .png icon... Usually it has a name ic_launcher.png.
Delete it, and rename your icon to the name of the stock icon.
Repeat the process in every minimap folder.
After you did that, go to Apktool X and find the Base_src file that you just edited.
Long press it and chose recompile.
Now wait... A few moments/minutes...
When it's done you will get a base_src.apk.
Press it and chosse "Sign".
After that install the base_src_sign.apk
After installation i recommended disabling updates for that app, because a future update will (most likely) overwrite your icon.
Special thanks to: @iBotPeaches for making the original Apktool, and Andro Black for updating the app.
Hope this help's Your OCD :laugh:
In case this guide doesn't help you, leave a question, and i will kindly answer as soon as i can.
In case this works for You, it would be great if You could leave a thumb's up
Links:
Apktool by Andro Black: https://www.androidfilehost.com/?w=profile&uid=24562946973631820
Tags: Edit app icons, no root, icon pack, system wide

Screenshots:
-Here is: Kernel Auditor with a modified icon:

Whatsapp with S8 icon plz

Editing app's totally
Open an app as zip file then res>midmap.
You can see three or four midmaps, there will be a png called ic_launcher.png or icon.png change it manually which icon you want and rename it as what the icon name is in midmap that's all it will be change completely.
Thank you for reading.:

Related

[GUIDE] Newbie's How To: Port Theme's

How To Port Theme's
(Using Apktool, and Theme Porter)
Since there are some people out there willing to learn but not exactly able to with all of the convoluted information on the forums, I decided I'd start putting together a guide similar to other's to aid those trying to learn. Stay tuned as this is under construction!
All credit is due to original creators of the product's used in this process, without them there wouldn't be a reason for this guide . Please be respectful of other's work, sometimes it's best to ask before attempting (if it is an original product) but at very least give credit and a link back.
What is porting?
Porting very basically is taking .png files and XML changes from one theme (typically created for a different model, but using the same resolution) and copying them into deodexed stock rom's such as EC10/EE19 Pick and Pack so that they can be flashed onto our phones and used with our framework and/or updated framework.
Sounds really easy, doesn't it? At first it will be cumbersome and frustrating, but after you've used the processes enough you will be able to snap these out in 30 minutes or less! The problem lies in the way these files are packaged, they are mainly just a .zip file that isn't compressed, however there is another layer to an .apk that you can only see once you've learned how to use tools such as apktool/apkmanager. The other tool we will use to aid us in this painstaking process is an application called Theme Porter, which essentially is a script that has been written that will do all of the legwork for us. Let's get started!
What will I need?
Apktool I currently use an older version of the program, you can download here, this one I know works for sure - last I heard the other has issues.
ThemePorter
7zip (Win rar could be used instead)
Notepad++ (Or equivalent code editing software) which will be used to make the xml changes. If you're not familiar with using something such as this, you may want to take time to research before attempting to port.
How to set up;
Begin by getting ThemePorter setup, you just need to unzip the download and that will be "theme porter" It is basically just made up of a few folders, and has a batch script that you will use to initiate the process. I just place mine on the desktop for easy access.
Secondly, get apktool downloaded and unzipped. place the apt folder somewhere where you can easily navigate to it through a command prompt. C: might be a good place if you want to save yourself some keystrokes.
Next just make sure you have notepad++ or another editor installed for use later.
Lastly, get 7zip installed so that you're able to open .apk and .zip files without actually extracting the files.
Where do I get my source files?
You can use any framework from any rom that can be decompiled correctly with apktool. This means when you decompile it, there are no errors and it generates a folder with the same name. Download the rom of your choice and save it (still zipped) somewhere on your desktop, and make an extra copy in case you mess up and overwrite the wrong files. You will ALWAYS use these in the NEW folder within theme porter, but we will get to that.
As for the theme you're trying to port, I usually use fascinate theme's, because it is basically a direct copy of our phone (Note: As of 2.2 they now have a Data on/off icon in their status pull down, where we have Silence, so this will often need to be taken care of separate from this process.) I've also recently started using Vibrant theme's, as these are also very similar - but there are tweaks with these too and I will try to cover them in the guide at some point. You may find others that will work too, at this point this is all I've had time to mess with. Either way, download the .ZIP file and also place it somewhere easy to access.
This is where it get's sort of difficult.
Stock ROM's have some differences to theme's that theme porter cannot handle for you. These are basically MOD's that may exist in the theme ROM and/or XML changes that have been made to alter text color's to accommodate the theme (black to white, white to black, etc.) These changes WILL NOT be ported over using theme porter and unfortunately also cannot be made AFTER using theme porter, so there is a certain process to go about this.
Now enter's apktool. Apktool is a script brut.all very kindly wrote to assist android developers in decompiling/recompiling .apk files without losing structure that normal compression software breaks. Basically there are two reasons you will need to take this step.
When;
Editing Text Color- When choosing a theme to port you will need to pay attention to the screenshots the original poster has posted, as these will clue you in whether or not this needs to happen.
The Pick and Pack rom is essentially still stock, as far as XML goes - so the text on menu's for example, will be Black text on a white background. If the theme you chose has something different, you will need to take this step so that the text is legible in the final theme.
Adding accurate battery MOD- Also when choosing a theme you will need to take a look at the framework-res.apk file to determine if the themer has added the accurate battery mod. Essentially all this means is the XML and image's have been edited to show you each percentage of battery life vs. the stock one that only shows odd increments of 10/15/20.
Open framework-res.apk with 7zip
Navigate to res/drawable-hdpi (this also may be drawable-hdpi-v4 depending on your theme, I haven't quite figured out why this is)
Scroll down until you see the status_battery icons near the bottom - if there are not images for every percentage - then no mod exist's and you can skip using apktool for this step.
How;
For either change you will follow this process to decompile To gain access to the XML/PNG files that contain these text values, we will need to decompile the framework-res.apk file from the rom.
Copy framework-res.apk from the rom and place in the APT folder created earlier.
Rename this to something shorter such as "FW.apk" for easier command lines
Start a command prompt (in windows 7 type "cmd" in the search bar within start menu)
Navigate to the APT folder, For example;
Code:
CD c:\Users\brandon\Desktop\apt
Type
Code:
apktool d FW.apk
This will decompile the .apk into a folder called FW within the APT folder, allowing you access to the files. I will cover the actual changes in a later post.
At this point you have the files in a folder and they can be edited how you see fit (should you choose to just edit the stock ones vs. actually porting already changed ones).
You'll notice when examining the folder that there are quite a bit more files. Also, you will be introduced to the .9.png file type, which essentially is just a .png file that has some black lines embedded in the file to instruct android how to resize and reuse the image within the framework.
Any edits made to these files must be made carefully, as to not alter the integrity of these black lines. When the file is recompiled, the lines will disappear but will be included (if you tried doing this without decompiling - your photo editor would nix these lines and android wouldn't know how to size them)
If all your edits were complete, you would then recompile the file through apktool. (I will continue with the theme porting guide in the next step, this is just a good reference point for these steps.)
Type this into the command prompt
Code:
apktool b FW framework-res.apk
This would then create the framework-res.apk file in the APT folder, however there is an important step here. During this process the META folder is lost, and the AndroidManifest file is corrupted.
Delete the AndroidManifest.xml file from the new framework-res.apk
Copy the META-INF folder and the AndroidManfiest.xml file from the ORIGINAL framework-res.apk (now named FW.apk in this example) and place it in the new framework-res.apk using 7zip (do not extract the file, open the archive with 7zip.)
At this point, your framework could be ready for replacing in your theme.zip (will be covered later) with the edit's you've made Or if you're learning how to port theme's, continue reading.
Guide Part 2....
Preparing for Theme Porter
Okay now that we have some of the side process out of the way, let's get back to the guide.
Determine if you need to make any XML edit's for battery or text color changes and perform them per the processes detailed below. If you do not need to make them, you may skip this step completely and move on to using theme porter.
Correcting Accurate Battery Mod Animations-
Follow this guide to make the changes to the framework to use the new charging animation images and will allow you to then use theme porter to swap the .png files
Decompile the framework-res.apk from the ROM download (I usually just rename this to EE19.apk or whatever the rom is i'm working with)
Decompile the framework-res.apk (I first rename the framework-res.apk file to NEW.apk (or whatever you wish) Note: It will typcially give you errors (unless it's theme'd correctly) but you're just after some code from a few .xml files so don't worry.
In the NEW folder Navigate to
Code:
\res\drawable-hdpi\
or
\res\drawable-hdpi-v4\
Copy all of the battery charging .png's and drag them to a folder on your desktop. Then open the EE19 folder within APT (the one you decompiled from the rom you're working from) Drag those images into the /res/drawable-hdpi-v4 directory replacing any existing ones.
open the following file in notepad++
Code:
\apt\NEW\res\drawable\stat_sys_battery_charge.xml
Also open the same file within the EE19 decompiled folder
In the THEME xml file select all and copy
In the EE19 xml file, paste this replacing the text. Then save it overwriting the original.
At this point, the battery mod is done and the new .png files exist so that theme porter can do it's work (And the xml is there to make it works when it get's to your phone). If you don't have any text edits to make, you can recompile the apk (as stated in steps in first post) and move on to steps below (skipping the section on changing text).
Changing text colors-
If you have determined that the text in the theme is different from the rom framework (I.E. Text on notifications, menu's, etc.) then you will follow these steps to locate where these changes need to be made.
If you haven't already, decompile the framework-res.apk from the Rom.
Next, determine what text color edit's you need to make and then use this wonderful reference to determine which actual files those edit's correspond to.
Locate the file you need to edit in the decompiled folder, and open it with 7zip.
Typically removing the "inverse" reference on the color line will change it from black to white, or white to black and is the easiest/best way to alter colors in a ROM. (For a quick note, searching for "menu" in the styles.xml files located in /values/ will give you the items you need to change, watch for _bright references for the dividers, change those to _dark instead.
Once you are done making these edits, recompile the folder as stated in first post. And move on to using theme porter.
Using Theme Porter-PAY CLOSE ATTENTION HERE.
Now that you have the appropriate prep-work done, the easy part finally comes. (Hopefully)
Copy and paste the applications & framework-res.apk twframework-res.apk files from the THEME.zip into the appropriate folders within the OLD folder in theme porter.
Now copy and paste the same files that you copied from the theme.zip, now from the rom (EE19 for example) to the NEW folder in theme porter.
Once all files are in appropriate folders, run the Script.bat file in theme porter. Use a selection of "1" and press enter.
Theme porter will now copy all of the .png files from one .apk to the other (where the folder names are an exact match)
NOTE:At this step, you may have issues where the images aren't brought over (This typically only effects the framework files and just depends on how the file was generated/edited). This can be detrmined by opening the .apk in 7zip and pulling out the res folder, where you can view the files (you will see if it's been changed or not) If it hasn't, you will need to make sure the folder within the Themed .apk's are the exact same as the ROM you're themeing and re-run the theme porter script. (meaning you need to add or remove the -v4 ending depending on where the previous themer placed the themed files)
If you're lucky, everything is done at this point and you can move on to packaging a flashable update.zip.
Packaging A Flashable Update.Zip
A flashable package is simply a .zip file (stored as "store" in 7zip, no compression) that is made up of META-INF and System folders. The META-INF folder is very important as there is a big difference between using one from a ROM (pick and pick) and a theme (NeonGT) You will need to download a theme and pull the META-INF folder out so that you can use it in your theme ports. This is to ensure you have the correct script (edify or ammend) typically now we're using edify so use one from one of the H57 theme's via baked_tator The system folder should contain two folders "framework" and "app" each of which will hold the respective .apk files you have been working with. (but could also contain a "Media" folder for changing bootanimation.zip files, basically any files within the folder structure you create (matches the system structure) will be replaced when flashed. So be careful not to include things I haven't listed here unless you know what you're doing. And be sure to test these things before even thinking about a release.
Create the following folder that can be re-used with any new theme port, it's the easiest way to keep things organized and not lose track of files.
Create a new folder on your desktop called New Theme
Within that folder paste in the META-INF folder from another EE19 theme.
Create a new folder called "system"
Open system and create two new folders "app" and "framework" (and "media" if you are including the bootanimation.zip from the theme (which typically will work on our phone)
Place approprate files from the NEW folder within theme porter into these folders, respectively
Back up so that you see the META-INF folder and System folder, select those two, right-click and select "add to archive" in the 7zip menu.
Name the file "EE19 ThemeName VX.zip" and select "Store" for the method
Drag this to your desktop and this will be what you will place on your SD card for flashing.
Test the theme thoroughly to make sure everything ported over and everything still works (make sure to test USB, even color XML edits can cause odd issues) and get help from others to make sure the bugs are out.
If you run into issues, check the next post for possible resolutions.
BE SURE TO CREDIT THE PROPER CREATORS!!! I can't express this enough, I have a format for the way I do release posts, feel free to copy it if you'd like but either way make sure you make it known that it's not your work!
FAQ / Common Issues / Other Resources
Common Issues:
Images do not transfer to new framework.apk files.
(typically the applications all have the same folder names, so no problems occur here.)
As stated in the guide, all folders within each res folder within each .apk file used in theme porter must have exact matching folders/files for the .png to actually transfer. If it's been edited with apktool, it typically has the -v4 extension.
Troubleshoot your issue by opening the resulting .apk file in 7zip and comparing to the downloaded theme file in 7zip. You may have to pull the res folders out and look that way to actually see which images didn't transfer.
First thing to check is the folder names within the res folder, if the rom folder's names are "drawable-hdpi" and "drawable-land-hdpi" and the theme has "drawable-hdp-v4" then you need to remove the -v4 from those folders and run theme porter again.
NOTE: I've also run into situations where both folder's existed in the .apk file, meaning both drawable-hdpi and drawable-hdpi-v4 folders were there, but only one actually had the themed .pngs. In this case it was the drawable-hdpi folder that had the themed ones, but I needed it to be -v4, so I deleted the existing -v4 folders and renamed the others to -v4 - this also slimmed the rom because you really don't need the extra folders/files (nor wan't them!)
Some times icons don't exist on other phones, or they are completely different icons. I.E. with 2.2 fascinate theme's the Silence icon does not exist and therefore would need to be pulled from another theme or created to be fixed. This can be done with 7zip, no need to decompile the file if you're just swapping .png files (in the final framework-res.apk .
[*]Problems after testing theme.
This has happened to me on all sorts of levels;
Problems Restoring - Sometimes after testing theme's you'll go to restore and things will not be right when you boot, FC's and whatnot. Best case scenario you can restore to a vanilla restore (meaning your rom + any app's you wanted, but no theme's) or just flash your rom to fix.
Problems with icon's not being correct on a restore or a flash.
Same as above, sometimes things just go awry when you're flashing theme on top of theme, so i'ts best to start from the rom. Make a restore point with your rom + all your apps, then you can always go back to it and flash your day to day theme - this will give you the least trouble.
Phone stuck in airplane mode, setting is disabled.
I had this happen to me randomly once, no idea why but if you do run into this the only thing that fixed it for me was an odin back to a full build. No restore or flash would fix it. Typically your problem should be solved with a fresh flash of your rom, but sometimes going to a full build with odin is the only way.
FAQ:
Post them and we'll get them answered and edited in here. So far I've tried to cover everything I knew of in the guide .
Reserved
Reserved
Reserved
Other Resourcs:
Great guide by nitsuj17 on how to theme
Hex Colors
Free Photoshop Alternative
XML Color Edit Guide - in case you missed it above - credits to KBanause
wow, you rock bde. thanks for your time and help with this, I will be following it to help you guys out with stuff more.
Sent from my SCH-I500 using Tapatalk
sageDieu said:
wow, you rock bde. thanks for your time and help with this, I will be following it to help you guys out with stuff more.
Sent from my SCH-I500 using Tapatalk
Click to expand...
Click to collapse
Great, and thanks, I'm glad to share what I've learned with the community
Great write up,ive read through it several times. Just wish I hadn't traded my desktop for tattoo work this weekend. ..
Sent from my SCH-I500 using Tapatalk
man you write some good tutorials...
Very thorough and still easy to understand, Great work!!
Very nice! Just fixed the white on white text in my super light port. Big Thanks!
Great write up!
So, I tried using apktool to decompile the framwork-res.apk and it worked fine, recompiled it and everything was good, are these the same steps I would use for other APK's such as in the apps folder (i.e. Settings.apk) because I cannot get them to work I keep getting brut.androlib errors
bwot75 said:
So, I tried using apktool to decompile the framwork-res.apk and it worked fine, recompiled it and everything was good, are these the same steps I would use for other APK's such as in the apps folder (i.e. Settings.apk) because I cannot get them to work I keep getting brut.androlib errors
Click to expand...
Click to collapse
Usually if you get errors in compiling there have been things added or removed after compiling, this is sometimes caused by using theme porter for example.
Apktool works on any apk, but i'ts fussy about what's there before it recompiles. Try decompiling and recompiling with no changes, if it doesn't work then it won't work on that .apk (to my knowledge). You basically will always need to start with one of the deodexed apks from phidelt's pick and pack, then add changes while i'ts decompiled, then run theme porter after it's recompiled if needed.
And glad you all appreciate it
I vote sticky on this how-to...very good write up and it makes my life easier!!!
Definitely sticky
Sent from my SCH-I500 using XDA App
Thanks for the good reading bde. great tutorial.
Hey thanks, glad to share the wealth
Sent from my SCH-I500 using XDA Premium App
I followed this guide and made XML editing for Framework-res.apk to change font colour in the Menu using Notepad++, but after xml edit, cant build the framework.apk, it says sources have changed and does not build the apk. Am using apktool for this. Any suggestions how to go about it. Or somebody can guide, how can I change the menu background so that Menu texts are visible?
trip007in said:
I followed this guide and made XML editing for Framework-res.apk to change font colour in the Menu using Notepad++, but after xml edit, cant build the framework.apk, it says sources have changed and does not build the apk. Am using apktool for this. Any suggestions how to go about it. Or somebody can guide, how can I change the menu background so that Menu texts are visible?
Click to expand...
Click to collapse
As stated in an above post, try decompiling the framework-res.apk you are working with - without any edits and see if it will recompile with no error. If it doesn't then re-read my guide
Ok thanks will check it.
Never mind, I figured it out.
Sent from my SCH-I500 using XDA App
I did some major fixin' on the OP, hope it's more clear!

Theme Developin Made Easy

​Tools Needed :
APK Manager (to decompile and recompile apks)
Photoshop or other photo editing software’s ( corel draw etc etc)
FS Resizer or GIMP( to resize or reshape png)
NOTEPAD ++(edit xml files)
Eclipse
AXMLPrinter (convert xml to txt files)
From the start:
Make sure u hav a deodexed ROM….If your ROM is not deodexed den use xultimate to deodex….
• You will get a zip or rar file in which u will find “meta inf” and “system”…. We will be concentrating only on the system folder…..Extract it to the desktop or which ever location u want….
• Inside the system folder u would see folders called “app” “framework” “media” “bin” etc….
​ Let me explain what does these folders Hav to do.
“app” is the major folder which has to do with all the pre installed apps(default apps) like calculator camera mms(messaging) touchwiz bluetooth etc…..
“framework” is the folder associated with the body formation (i.e) the skeleton of out fit…..examples like the battery icon,icons in the notification panel like “autorotate” “Wi-Fi” “GPS” etc….
“media” consists of “bootanimation.zip” file allows u to change the boot animation ( we would discuss about this later)
TUTORIAL ON HOW TO CHANGE THE ICON OF APPS:
STEP 1: First go into the “apps” folder and extract everythin(if u wish extract everythin or extract only the file u want) to the desktop…….
• Don’t be bothered about the .odex files… concentrate only on the .apk files…..
• for ex: if u wish to change the “messaging” icon…select mms.apk….enter into that and u would find folders called “res” “metainf”…….. ENTER into “res” folder and u would see folders such as “drawable” “drawable ldpi”( or similar to that) leave the folders like “xml” etc and just concentrate on “drawable-ldpi” and extract it to the desktop…..enter into that folder and u would find all the images which u see on the mobile while messaging….. Hope u would remember how the icon for the messagin app be….now search for that….for this apk it would be as “ic_launcher_smsmms”….. and BINGO your done…… download a png of the icon u want from google (for that go into google and type message icon png and select images…. Select the image of ur choice and save it) now copy that downloaded image (for ex the downloaded image name is 123.png replace that name to “ic_launcher_smsmms”)After renaming it copy and replace the default image in the “drawable ldpi” folder….. Similarly make changes for wat ever icon u want but REMBEMBER the icon ur changing should hav the same name of the default icon”
• Since u’ve modded(changed) only the “drawable ldpi” folder copy that folder in which u hav changed the icon to the folder in “res” of “mms.apk”…… to make it clear delete the default drawable ldpi and replace it with the one u modded from the desktop……(to replace just drag from the desktop to the rar file) IF WINRAR asks a confirmation “update changes made” click YES…… cool now u’ve changed the icon of the messaging app….
• Similarly try replacing the default icon of the calculator camera dialer tab activity etc by just moving into the apk file “res””drawable ldpi (hdpi, land-ldpi or wateva)
• To go more interior take dialer tab activity and follow the above steps first.,….den replace the number icons, dialer_tab_background image with any image u like  but it should be of PNG and of the same default name while replacing it in the folder……
• That’s it now u’ve learnt how to change the icons and images……
• Now do the reverse of STEP 1….. copy the modded(changed) apk files from the desktop into the “system””app” folder and don’t forget to save the changes…..
• TUTORIAL ON HOW TO CHANGE THE ICON OF FRAMEWORK :
SIMILARLY just like how u replaced the icons of “apps” try replacing icons of framework folder….
• Open “framework” folder…..u’ll find many .JAR files and “framework-res.apk” and “twt-framework.apk”
• Go into framework-res.apkresand extract drawable (ldpi,hdpi,mdpi,land-hdpi) or wateva file is der to ur desktop…. Just as how u did it in “apps” replace the PNGS in it…. For ex: replace the alarm clock icon “auto rotate” “vibrate” “sound””battery icons” etc…..
• After doing all the changes in drawable folder replace the drawable folder in “framework-res.apk” and replace this “framework-res.apk” in the framework folder of the RAR file….
XML EDITTING:
XML editing is the trickiest and difficult part yet a challenging part
To do this u must need “apk manager” version 4 or higher…..
These are the folders inside the apk manager
Take the apk file for which u r goin to edit the xml for example to change the conversion of sms to mms from 4pgs to any no of pgs u want……copy the “mms.apk” file from “system””app” to “PLACE APK HERE FOR MODDING” of the apk manager….. HINT: for beginners u can edit only one file at a time After this open “SCRIPT”
IF u hav placed mms.apk file in “PLACE APK HERE FOR MODDING” den “NONE” would be shown as “mms.apk” or if u had placed “touchwiz.apk” it would show as “touchwiz.apk” on the place of NONE
Now press no 9….. the “DECOMPILING” would start and would finish with no alert…
now go to the “APK manager” folder and go into “PROJECTS” u’ll find mms.apk or wateva apk u hav used….
Den go into “RES””XML” ..... u’ll find “mms_config” open it with notepad or notepad++….(notepad++ is advisable and recommended)
You will find a line called <int name="smsToMmsTextThreshold">4</int> replace that four with whatever number u want….
Well u hav learnt how to edit the XML’s also… ….try to edit xml of touchwiz (androidmanifest.xml) to enable touch wiz rotation or touchwiz(launcher_config{to change number of rows and columns}….”default_mainapplication_order”{to change order of the apps in the touch wiz}
All the changes must be made in the projects folder and COMPILE it again by pressing number 11…..
copy the COMPILED .APK back into “apps” or “framework-res” or from wer ever u took the apk file….. THEME DEVELOPING DOESN’T COME WITHIN A DAY SO TRY IT REPEATEDLY TILL U GET THE ART OF IT My sincere thanks to Amit who motivated me and thanks to pratyush and dev for helpin me at the beginning, Rishee for the support rendered from the beginning and all the group members for your support…..
THE SCERENSHOTS ARE PROVIDED IN THE LINK BELOW
www.multiupload.com/7EVOSODEHX
Nice one !!
invincible authority said:
Nice one !!
Click to expand...
Click to collapse
Thank u.....
Thnx bro! That was really helpful!!!
wilfredcool007 said:
​Tools Needed :
 APK Manager (to decompile and recompile apks)
 Photoshop or other photo editing software’s ( corel draw etc etc)
 FS Resizer or GIMP( to resize or reshape png)
 NOTEPAD ++(edit xml files)
 Eclipse
 AXMLPrinter (convert xml to txt files)
From the start:
Make sure u hav a deodexed ROM….If your ROM is not deodexed den use xultimate to deodex….
• You will get a zip or rar file in which u will find “meta inf” and “system”…. We will be concentrating only on the system folder…..Extract it to the desktop or which ever location u want….
• Inside the system folder u would see folders called “app” “framework” “media” “bin” etc….
Let me explain what does these folders Hav to do,,,,,
“app” is the major folder which has to do with all the pre installed apps(default apps) like calculator camera mms(messaging) touchwiz bluetooth etc…..
 “framework” is the folder associated with the body formation (i.e) the skeleton of out fit…..examples like the battery icon,icons in the notification panel like “autorotate” “Wi-Fi” “GPS” etc….
 “media” consists of “bootanimation.zip” file allows u to change the boot animation ( we would discuss about this later)
TUTORIAL ON HOW TO CHANGE THE ICON OF APPS:
STEP 1: First go into the “apps” folder and extract everythin(if u wish extract everythin or extract only the file u want) to the desktop…….
• Don’t be bothered about the .odex files… concentrate only on the .apk files…..
• for ex: if u wish to change the “messaging” icon…select mms.apk….enter into that and u would find folders called “res” “metainf”…….. ENTER into “res” folder and u would see folders such as “drawable” “drawable ldpi”( or similar to that) leave the folders like “xml” etc and just concentrate on “drawable-ldpi” and extract it to the desktop…..enter into that folder and u would find all the images which u see on the mobile while messaging….. Hope u would remember how the icon for the messagin app be….now search for that….for this apk it would be as “ic_launcher_smsmms”….. and BINGO your done…… download a png of the icon u want from google (for that go into google and type message icon png and select images…. Select the image of ur choice and save it) now copy that downloaded image (for ex the downloaded image name is 123.png replace that name to “ic_launcher_smsmms”)After renaming it copy and replace the default image in the “drawable ldpi” folder….. Similarly make changes for wat ever icon u want but REMBEMBER the icon ur changing should hav the same name of the default icon”
• Since u’ve modded(changed) only the “drawable ldpi” folder copy that folder in which u hav changed the icon to the folder in “res” of “mms.apk”…… to make it clear delete the default drawable ldpi and replace it with the one u modded from the desktop……(to replace just drag from the desktop to the rar file) IF WINRAR asks a confirmation “update changes made” click YES…… cool now u’ve changed the icon of the messaging app….
• Similarly try replacing the default icon of the calculator camera dialer tab activity etc by just moving into the apk file “res””drawable ldpi (hdpi, land-ldpi or wateva)
• To go more interior take dialer tab activity and follow the above steps first.,….den replace the number icons, dialer_tab_background image with any image u like  but it should be of PNG and of the same default name while replacing it in the folder……
• That’s it now u’ve learnt how to change the icons and images……
• Now do the reverse of STEP 1….. copy the modded(changed) apk files from the desktop into the “system””app” folder and don’t forget to save the changes…..
• TUTORIAL ON HOW TO CHANGE THE ICON OF FRAMEWORK:•
SIMILARLY just like how u replaced the icons of “apps” try replacing icons of framework folder….
• Open “framework” folder…..u’ll find many .JAR files and “framework-res.apk” and “twt-framework.apk”
• Go into framework-res.apkresand extract drawable (ldpi,hdpi,mdpi,land-hdpi) or wateva file is der to ur desktop…. Just as how u did it in “apps” replace the PNGS in it…. For ex: replace the alarm clock icon “auto rotate” “vibrate” “sound””battery icons” etc…..
• After doing all the changes in drawable folder replace the drawable folder in “framework-res.apk” and replace this “framework-res.apk” in the framework folder of the RAR file….
XML EDITTING:
XML editing is the trickiest and difficult part yet a challenging part
To do this u must need “apk manager” version 4 or higher…..
These are the folders inside the apk manager
Take the apk file for which u r goin to edit the xml for example to change the conversion of sms to mms from 4pgs to any no of pgs u want……copy the “mms.apk” file from “system””app” to “PLACE APK HERE FOR MODDING” of the apk manager….. HINT: for beginners u can edit only one file at a time :O After this open “SCRIPT”
IF u hav placed mms.apk file in “PLACE APK HERE FOR MODDING” den “NONE” would be shown as “mms.apk” or if u had placed “touchwiz.apk” it would show as “touchwiz.apk” on the place of NONE
Now press no 9….. the “DECOMPILING” would start and would finish with no alert…
now go to the “APK manager” folder and go into “PROJECTS” u’ll find mms.apk or wateva apk u hav used….
Den go into “RES””XML” ..... u’ll find “mms_config” open it with notepad or notepad++….(notepad++ is advisable and recommended)
You will find a line called <int name="smsToMmsTextThreshold">4</int> replace that four with whatever number u want….
Well u hav learnt how to edit the XML’s also…….try to edit xml of touchwiz (androidmanifest.xml) to enable touch wiz rotation or touchwiz(launcher_config{to change number of rows and columns}….”default_mainapplication_order”{to change order of the apps in the touch wiz}
All the changes must be made in the projects folder and COMPILE it again by pressing number 11…..
copy the COMPILED .APK back into “apps” or “framework-res” or from wer ever u took the apk file….. THEME DEVELOPING DOESN’T COME WITHIN A DAY SO TRY IT REPEATEDLY TILL U GET THE ART OF IT My sincere thanks to Amit who motivated me and thanks to pratyush and dev for helpin me at the beginning, Rishee for the support rendered from the beginning and all the group members for ur support….. THANK U 
IF U LIKE MY THREAD DONT FORGET TO CLICK THANKS
THE SCERENSHOTS ARE PROVIDED IN THE BROKEN LINK BELOW
multiupload.com/7EVOSODEHX
Click to expand...
Click to collapse
This is very helpfull thankx bro
N again thankx for adding my name :-D
Sent from my Galaxy fit using XDA App
rajrocks said:
This is very helpfull thankx bro
N again thankx for adding my name :-D
Sent from my Galaxy fit using XDA App
Click to expand...
Click to collapse
Thanx for sharing ..!!
Sent from my GT-S5670 using xda premium
Do you guys have any video tuts for this one?
it maybe easier if you see how it's done visually, aside from still images of course...
thanks..
reikableu said:
Do you guys have any video tuts for this one?
it maybe easier if you see how it's done visually, aside from still images of course...
thanks..
Click to expand...
Click to collapse
If u hav any doubts feel free to ask.......
where do you use Eclipse? and which eclipse should i get?
Example, for step 1, how do i extract the file using APK Manger?
sorry i am very noob about this things...
I was able to run apk manager and it asked me to choose an option, i chose extract an APK... but it just closes and does nothing... or i am doing something wrong?
thanks...
reikableu said:
where do you use Eclipse? and which eclipse should i get?
Example, for step 1, how do i extract the file using APK Manger?
sorry i am very noob about this things...
I was able to run apk manager and it asked me to choose an option, i chose extract an APK... but it just closes and does nothing... or i am doing something wrong?
thanks...
Click to expand...
Click to collapse
U need not use eclipse.... just use the apktool to deompile the apk file.... u will find folders called res xml value etc etc after u decompile the apk usin either apktool or apk manager.... If u want to change the icon or appearance use the drawables's folder where all the pngs's are present if u want to make any changes in xml use the folder"xml" and open the files usin notepad++
CLICK THANKS IF U LIKE MY POST
Nice work bro.....
wilfredcool007 said:
just use the apktool to deompile the apk file.... u will find folders called res xml value etc etc after u decompile the apk usin either apktool or apk manager.... If u want to change the icon or appearance use the drawables's folder where all the pngs's are present if u want to make any changes in xml use the folder"xml" and open the files usin notepad++
CLICK THANKS IF U LIKE MY POST
Click to expand...
Click to collapse
Sorry, I am really noob at this... how do i decompile? i tried doing that in apk manager, but i don't seem to get it to work... do i have to have the phone connected to the computer? can you give me a link where i can learn on how to use it?
reikableu said:
Sorry, I am really noob at this... how do i decompile? i tried doing that in apk manager, but i don't seem to get it to work... do i have to have the phone connected to the computer? can you give me a link where i can learn on how to use it?
Click to expand...
Click to collapse
downlaod the "complete set of tools" by me it'll be in the posts under android development and hackins ection.... in that ull find apktool and apk manager and some more
copy the apk file u want into "keep here for Modding" folder of apk manager den open "script".... press 9 to decompile... the decompiled files wil be in the "projects" folder of apkmanager... go into it and do ur modifications...more than this no one can be taught for more reference search using google..
wilfredcool007 said:
downlaod the "complete set of tools" by me it'll be in the posts under android development and hackins ection.... in that ull find apktool and apk manager and some more
copy the apk file u want into "keep here for Modding" folder of apk manager den open "script".... press 9 to decompile... the decompiled files wil be in the "projects" folder of apkmanager... go into it and do ur modifications...more than this no one can be taught for more reference search using google..
Click to expand...
Click to collapse
i did download all that is in here... so i'll give it a try again...
...edit...
i always get an error for decompiling...
i attached a log where the error is, maybe you can check it...
reikableu said:
i did download all that is in here... so i'll give it a try again...
...edit...
i always get an error for decompiling...
i attached a log where the error is, maybe you can check it...
Click to expand...
Click to collapse
listen...ill teach u now as simple as possible.... first hav the apk file with u for example take mms.apk
den download my tools
den in that go to apk manager
place the apk file in the place here for modding folder
now open script den press 9... u will hav hav no response but a folder with the apk name u hav will be created in the projects folder.... now go into the projects folder and there u will find folder called res
open that and further go to drawable folder or which ever folder u want... replace the icon which u want to be replaced with the same name as it was in the folder... for example if u want to change the mms icon the default icon is "icon.png" now download a png of ur choice rename it as "icon" and replace it in the folder.... now open the scripts again
press 11 to compile
it'll ask whether its a system file press "y" den again press "y"
den follow the instructions as given in that box... and thats it
DarshpreetGulati said:
Nice work bro.....
Click to expand...
Click to collapse
Thanks darshpreet
reikableu said:
i always get an error for de-compiling...
i attached a log where the error is, maybe you can check it...
Click to expand...
Click to collapse
as i said, i followed your instructions... and like i said as well...
de-compiling gives me an error that is why i uploaded the error log...
thanks...
Nice share....
really help me to mod icon and status bar .....thank's
AldoSebastian said:
Nice share....
really help me to mod icon and status bar .....thank's
Click to expand...
Click to collapse
Dont just say thanks press it
wilfredcool007 said:
Dont just say thanks press it
Click to expand...
Click to collapse
arrrgghhh...sorry sir...I miss that thing...hehehehe
do it now...n thank's once again for remembering me

<<<GUIDE>>>theming 9.png's

Okay, is a pretty simple process to be honest, but time consuming, if you find a short-cut as you learn, please share. So, do you have:
adb installed,
winrar or similar application,
apktool installed,
and a photo editing program installed?
if your answer to all of these is yes, than follow these steps.
1.get your framework.apk
2.your com.resources.apk
put them in your apktool/framework folder, should be in your USER name folder, look for it,
Once there paste the .apk's in that folder, rename your framework.apk to 1,
and rename your com.resources.apk to 2
next create a folder in your desktop and name it MODS (this is what i use so this is what we will call it ) place all the .apk's which you are going to theme in there.
for this tutorial we are going to call it the rosie.apk
first thing is de-compiling the .apk, this will reveal the 9.png's to you
ok, open up command prompt and type:
cd desktop\MODS
press enter, next type:
apktool d rosie .apk
after this you should have a new folder in your MODS folder called rosie,
once in that folder go to the location of the 9.png's you are trying to theme,
open them in your photo editing program and you should now see some black lines along the edges of the 9.png images don't touch them (you can but i don't really have the knowledge to do it myself, so don't touch them )
if your photo editor has a selection tool go ahead and select everything but the first pixel where the black lines are located,
now erase whats inside your selection and theme away as long as you don't touch that first pixel, so to be safe use the selection tool!
after you are done theming it, save the image to replace the old one,
okay, remember that time consuming part..... well you must do this to each individual image as far as i know anyhow , so ONCE again if you find/know shortcuts please share and pass the knowledge along......
after you are done with the .apk, type this in command prompt:
apktool b rosie rosie-new.apk
this will compile your newly themed apk, along with your new 9.png's
REMEMBER, I'M USING rosie.apk AS AN EXAMPLE, SO INSTEAD OF rosie IT SHOUD BE THE NAME OF THE .apk YOU ARE BUILDING AT THAT TIME
that's it!
add the .apk to your theme, just remember to remove the -new part from the name, flash and enjoy
This Tutorial was made possible mainly 2 individuals:
tommytomatoe
mpitcher225
this guys where and are TREMENDOUS help to me!
Hope this helps!

Tutorial - Changing App Icons

Tutorial :- Changing App Icons
Hi Friends,
This is a little Tutorial about changing app icons permanently. There was a lot of applications available in Playstore like
“ icon changer free” etc etc to change the app icons. But the problem is that u cant use that changed apps in ur app drawer. U can only use that in ur home screen as a shortcut.
So I just decided to put a little tutorial to do that easily. I know everybody will know this already. But it will help for someone I am sure….
Credit goes to my friend dewanshu93 for teaching me this by personally
Credit Why So Serious? For the Icons
(And Sorry For My Bad English)
Tools Needed:-
(a) One PC
(b) 7 zip
(c) Some good icons
STEPS:-
1) Get some cool icons from here http://forum.xda-developers.com/showthread.php?t=2207136 and save it ur PC. Give him big thanks for the work.
Edit:- If u need some cool Galaxy S4 icons means go here: - http://forum.xda-developers.com/showthread.php?t=2216289 Please give thanks for his work..
2) Put the apps u want to change the icons to a Folder in ur PC. For example SemcAlbum, Phonebook, Browser etc
3) Here I am taking the Phonebook app for Example..
4) Right Click the Phonebook apk -> Open With -> 7zip File Manager. Then U will get a box contained some files like the attached Image 1
5) Then double click on the res folder and u get another box like attached Image 2
6) Find the folder named “ drawable-xhdpi “ and open it. U will get This Image 3
7) And most important thing is u need to find the original icon and its name of the phonebook.apk or whatever apk u take …
8) For that an easy way is create a new folder in ur PC’s Desktop and select all the images from the box ( Image 3 ) then drag it to the that new folder in the desktop.
9)Then open that folder then search for original the apk icon. Look in to Image 4
10) In my case the name of the Phonebook.apk’s icon is “ic_launcher_contacts “. So just note down the icon name and then open the folder that contains the icons that u downloaded. Image 5
11) And choose which icon u need and select it. Then rename it to the exact name of the original apk icon. ( For example ic_launcher_contacts )
12) After that just drag that renamed icon to res/drawable-xhdpi. It will ask for overright. Press Ok or Yes. That’s it. Copy the apk to ur phone and move it to the System/app with correct permission…
Check the lastly Attached Two images for ur refference .
U can do it with almost all the apks. But I cant guarantee that it will work with all apks. Some System apks did not worked for me…
And also u can take icos from other apks too..
And this is my first work in XDA. Any mistake is there means I am sorry…
Thanks....
Lookin good.. Thanks for sharing this..:good:

modifying setting.apk and framework or any apk

HI folks i was just playing with rom tools and stuff i have found we can modify icons and layout stuff which apear on screen very easy way so here what i found just rename any apk to *.zip and open it in 7z zip or winrar and go to res and find drawablemdpi or drawablehdpi whatever in your case open it and you will find all the display icons or separators etc etc so change the icon with the one you want but remember the format,size,name should be same otherwise it will make a mess careful with it and rename it back to *.apk and sign it with any apk signer and simply replace your stock apk with your modified one and you will get the icons you want it works with farmework.apk,settings.apk,mms.apk maybe works with all other apks but did,nt tried it so try and post result
sohailrabani said:
HI folks i was just playing with rom tools and stuff i have found we can modify icons and layout stuff which apear on screen very easy way so here what i found just rename any apk to *.zip and open it in 7z zip or winrar and go to res and find drawablemdpi or drawablehdpi whatever in your case open it and you will find all the display icons or separators etc etc so change the icon with the one you want but remember the format,size,name should be same otherwise it will make a mess careful with it and rename it back to *.apk and sign it with any apk signer and simply replace your stock apk with your modified one and you will get the icons you want it works with farmework.apk,settings.apk,mms.apk maybe works with all other apks but did,nt tried it so try and post result
Click to expand...
Click to collapse
i think you should read up on vrtheme
this kind of thing is very old news
http://forum.xda-developers.com/showthread.php?t=1207017
DSA said:
this kind of thing is very old news
Click to expand...
Click to collapse
Ancient more like.

Categories

Resources