FORUMS
Remove All Ads from XDA

 View Poll Results: How was the guide?

It was very interactive and easy to understand!
 
72 Vote(s)
78.26%
It was very dull and boring!
 
8 Vote(s)
8.70%
I am color blind and it was very hard!
 
12 Vote(s)
13.04%

[GUIDE]Theming your ROM on Phone(Editing framework-res.apk to change icons)

3,713 posts
Thanks Meter: 5,236
 
Post Reply Email Thread
So friends, here is a quick and easy guide for changing the status bar icons of your s5830i(Actually any phone )
For those who don't know how to do it(for anyone actually )


Theory

Android is the awesome platform which is easily configurable and is able of being edited very easily
The icons used in every app and Android framework are located as png images in apk of those respective apps in location:-
*.apk/res/drawable-mdpi (in our case, as our phone is mdpi)
So, we can change any icon of our status bar like battery, signal, (not clock[clock is to be configures in SystemUI.apk{will post how to change it shortly}]), etc by editing png's in framework-res.apk

Not even that, you can edit images of any app as I told you

There are several ways to decompile and compile apk in which we have made change
If we want full access of apk and want to change every thing like the xml's in it and smali content in jar files, then we would have to do it on computer by apktool or apkmanager
But, we are here to only change image, so we would not go in detail of apktool or apkmanager. For changing images, that can be very easily done even on the phone by an app NinjaMorph that is made for developers by our senior head and DEVELOPING LEGEND Stephen(Stericson)

But be careful as backing up the original file if you do something wrong

And as you all know any developer or even a newbie posting something interesting that you want to try WILL NOT BE RESPONSIBLE for your mobile blowing up, resting in peace, sleeping like a dead, behaving like a non-living BRICK, or anything whatsoever that may or may not happen to phone in this universe or any other universe known or unknown
What to do if anything happened to my mobile

We have had a backup of your original file so we can restore it

But if while editing the system files like framework-res.apk
If you deleted some un-backed up apk's

Well you can always have backup of your ROM and that is why Koushik Datta has made clockworkmod Recovery
You can restore your ROM from there


Pre-Requisites



GUIDE

So Let's Start

  1. Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
  2. Now you would have three options, namely, New Project, Finish Project, Existing Project
  3. Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
  4. Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
  5. Exit it and go to your file explorer.
  6. Go to /sdcard/AndroidThemes/workspace/framework-resapk
  7. This is what is inside apk. Go to res/drawable-mdpi folder
  8. There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
  9. You can edit them and replace them as you want. But the name of the file you are replacing and size and dimension must be equal to the file you are replacing with(I recommend Googling and finding icons of battery, signal, and other things)[I have even used hdpi icons, there was no problem]
  10. If you download a theme file which is to be flashed in recovery that is not for your phone, no problem, extract the zip and place its framework-res.apk in your sdcard and extract the apk with Ninjamorph. Replace your icons with its icons and TADA
  11. After you have done replacing the icons and you are satisfied(I am never)
  12. Go to NinjaMorph. Click on Fininsh Projects. Click on framework-resapk. It will recompile and ask to replace the original apk with modded one. Click OK
  13. Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
  14. Reboot your phone
  15. Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
  16. Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
  17. There you will see framework-res.apk. Copy it and go to /system/framework
  18. Mount as R/W
  19. Paste the apk. If it asks that file already exists, overwrite it.
  20. SET PERMISSIONS
    Long click on framework-res.apk and click on permissions

    You will see three columns
    Read Write Execute

    You have to set them in the following way
    x means you have to tick it
    blank means uncheck

    Read Write Execute
    .....x........x.................
    .....x...........................
    .....x...........................

    Click OK

    You will see it as rw-r--r--
  21. Reboot
  22. Do it over again if nothing happens
  23. Enjoy


This way you can edit not only framework-res.apk but any apk




Treat

This section is different from the thread topic

I: Faking Up

Want to make your device show Jelly Bean in About Phone

Go to Root Explorer
Go to /system
Long click on build.prop
Click on Open in a Text Editor
Change the files as

ro.build.display.id=Jelly Bean
ro.build.version.release=4.1.4
Save Changes
Reboot


II: Easter Egg

You all must know that an image of GingerBread Zombie comes up when you repeatedly click on Android Version in Setting>About Phone

Wanna change it to look like Jelly Bean?




Extract framework-res.apk
Go to res/drawable-nodpi
You will see platlogo.jpg
Replace it with the file in attachment
Recompile
Reboot



Troubleshooting

Will find and update it
Tell me what problems are you having
Attached Thumbnails
Click image for larger version

Name:	platlogo.jpg
Views:	134775
Size:	52.7 KB
ID:	1506650  
The Following 65 Users Say Thank You to iamareebjamal For This Useful Post: [ View ] Gift iamareebjamal Ad-Free
24th November 2012, 07:15 AM |#2  
iamareebjamal's Avatar
OP Senior Member
Flag Batcave
Thanks Meter: 5,236
 
More
How to make your status bar transparent


Quick Guide


Detailed one afterwards




Open SystemUI.apk/res/layout/status_bar.xml


Change android:background code from ff000000 to 7f000000 for 50% Transparency
For 100% code is 00000000
The Following 16 Users Say Thank You to iamareebjamal For This Useful Post: [ View ] Gift iamareebjamal Ad-Free
24th November 2012, 10:28 AM |#3  
Alucard1989pl's Avatar
Senior Member
Flag Tarnów
Thanks Meter: 616
 
More
You forget about this http://www.java2s.com/Open-Source/An...ivity.java.htm
To change 'zombie art by Jack Larson' to yours text for example 'Android KING !!' :P to have a Fully changed Ginger Bread Easter Egg a'la Jelly Bean

How to:
-Decompile framework.jar
-Find PlatLogoActivity.xml in com/android/internal/app/
-Open with notepad++(Windows) or gedit(Linux)
-Find this line "Zombie art by Jack Larson"
-Change this text to yours
-Save and close file
-Recompile your framework.jar file
-Make an CWM package and install it
-Or replace it with Root Explorer or other app like MiFile and change permissions to 644(rw-r--r--) and restart your phone
-Enjoy
The Following 19 Users Say Thank You to Alucard1989pl For This Useful Post: [ View ] Gift Alucard1989pl Ad-Free
24th November 2012, 04:21 PM |#4  
whisper_'s Avatar
Senior Member
Thanks Meter: 19
 
More
Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard

Sent from my GT-S5830i using xda premium
24th November 2012, 04:45 PM |#5  
Boudz78's Avatar
Senior Member
Flag Beirut
Thanks Meter: 161
 
More
Quote:
Originally Posted by whisper_

Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard

Sent from my GT-S5830i using xda premium

Try 4Shared, Don't Post Links.. Warez Not Allowed..
The Following 2 Users Say Thank You to Boudz78 For This Useful Post: [ View ] Gift Boudz78 Ad-Free
24th November 2012, 04:52 PM |#6  
GermainZ's Avatar
Inactive Recognized Developer / Retired Forum Moderator
Thanks Meter: 8,917
 
More
Quote:
Originally Posted by whisper_

Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard

Sent from my GT-S5830i using xda premium

If you don't want to pay, get a free file explorer (Solid Explorer, FX File Explorer, ES File Explorer).

Quote:
Originally Posted by Boudz78

Try 4Shared, Don't Post Links.. Warez Not Allowed..

I get it, you're lebanese, and we here pretty much never pay for any software. But warez discussion isn't allowed as well, so you broke the rules as well.
The Following 2 Users Say Thank You to GermainZ For This Useful Post: [ View ] Gift GermainZ Ad-Free
24th November 2012, 05:02 PM |#7  
iamareebjamal's Avatar
OP Senior Member
Flag Batcave
Thanks Meter: 5,236
 
More
Quote:
Originally Posted by whisper_

Ty 4 ur work but can u give me root explorer on media fire coz my own one from black mart is chinies n I really use it very hard

Sent from my GT-S5830i using xda premium

It is not allowed to post warez on xda forum

And I don't know why people don't Thank for useful posts but thank more on useless post
The Following 5 Users Say Thank You to iamareebjamal For This Useful Post: [ View ] Gift iamareebjamal Ad-Free
24th November 2012, 05:03 PM |#8  
iamareebjamal's Avatar
OP Senior Member
Flag Batcave
Thanks Meter: 5,236
 
More
Quote:
Originally Posted by GermainZ

If you don't want to pay, get a free file explorer (Solid Explorer, FX File Explorer, ES File Explorer).


I get it, you're lebanese, and we here pretty much never pay for any software. But warez discussion isn't allowed as well, so you broke the rules as well.

Yeah lolllz
The Following 5 Users Say Thank You to iamareebjamal For This Useful Post: [ View ] Gift iamareebjamal Ad-Free
25th November 2012, 07:42 AM |#9  
Junior Member
Thanks Meter: 0
 
More
I ever want to know how to edit the icons...but i have two questions

1.-What is the name of the image that appears of background in the messages?..i want to changue the color of the messages that i send and received

2.-The room that i have installed has 6 toggles on screen and only want to appearss 5..what line of code i should to edit?
25th November 2012, 10:19 AM |#10  
iamareebjamal's Avatar
OP Senior Member
Flag Batcave
Thanks Meter: 5,236
 
More
Quote:
Originally Posted by ErickBG

I ever want to know how to edit the icons...but i have two questions

1.-What is the name of the image that appears of background in the messages?..i want to changue the color of the messages that i send and received

2.-The room that i have installed has 6 toggles on screen and only want to appearss 5..what line of code i should to edit?

You should edit Mms.apk


I don't know as I never edited Mms.apk



For colour you should edit xml files
Which won't be accessed by this method

And the code you are asking for
You won't get the xml from this method
So you won't be able to edit it
The Following 2 Users Say Thank You to iamareebjamal For This Useful Post: [ View ] Gift iamareebjamal Ad-Free
25th November 2012, 11:38 AM |#11  
iamareebjamal's Avatar
OP Senior Member
Flag Batcave
Thanks Meter: 5,236
 
More
I don't know why my thread was moved


Modifying ROM is in development section by XDA rules
Post Reply Subscribe to Thread

Tags
framework-res.apk, icons, s5830i, status bar, theme

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes