Hey all! I sat down today, for hours, trying to figure this out and I finally got it. The solution was actually a little bit easier than I had thought but I had to jump through a lot of hoops, semi-boot loops and more.
Status Bar XML's per a couple requests. Download and pop in an Extracted (NOT decoded) framework-res.apk. These are encoded with light colors. You CAN edit these in a hex editor like HxD, open up the file, then Find 0800001C Make sure "Hex Values" is selected.
EDIT: Currently Making a Windows App to do this and other things. Stay tuned.
First things first:
- Instructions are from a Win 7 x64 PC perspective
- I am NOT liable if you screw something up
- Your phone must be rooted, have froyo (2.2), and be de-odexed.
- This guide assumes you know how to use adb, 7-Zip
- I am not going to explain the above steps, use google or xda's search.
- If you are going to edit any .9.png files like "status_bar_close_on.9.png" you MUST keep the existing transparency and black bars in place. If you don't you will NOT be able to finish the process.
** Quick Trick **
Windows 7: Right click My Computer, Click Properties, Click Advanced System Settings, Click Environment Variables. In user vars and system vars there is a "path" variable. Edit it. Copy paste your SDK path and the SDK\Tools path.
Windows XP: Right click My Computer, Properties, Advanced Tab, Environment Variables. In user vars and system vars there is a "path" variable. Edit it. Copy paste your SDK path and the SDK\Tools path.
This will allow ADB to run without being in the sdk\tools folder.
Instructions:
0. Make a backup of framework-res.apk from /system/framework
- Open the command Prompt
: adb pull /system/framework/framework-res.apk C:\phonetheme\backup\fwbu.apk
: adb pull /system/framework/framework-res.apk C:\phonetheme\working\framework-res.apk
1. Get APKTOOL.
2. Download the top 2 files. Extract the contents of the files to C:\Windows
3. Open the command prompt
: apktool if C:\phonetheme\backup\fwbu.apk droidx (or whatever your device is)
: apktool d -f -t droidx C:\phonetheme\working\framework-res.apk C:\phonetheme\working\framework-decoded\
Optional. Go to C:\phonetheme\working\framework-decoded\res\drawable-hdpi-v4\ and modify images if you wish. You do not have to do it this way, but it can be done. You can just open the apk with 7 zip and extract them/edit them as well.
4. Go to C:\phonetheme\working\framework-decoded\res\layout
5. Open status_bar_latest_event_content.xml in notepad
6. Where ever you see something like this: android:textColor="?textColorSecondaryInverse"
In between the quotes, replace @color/dim_foreground_dark (or whatever) with a 8 char hex string. The format is NORMAL, not BACKWARD like in Hex. So when you are done you should have something like "#FFFFFFFF". The format is #AARRGGBB
The first color changes the heading "Voicemail Messages"
The second changes the descriptor "Dial *86"
The third changes the datetime stamp
So mine is, "#FFFFFFF", then "#FF747c8d", last "#ffbdc8df"
7. Make all your color changes. Save.
8. Open up the command prompt again
: apktool b C:\phonetheme\working\framework-decoded C:\phonetheme\build\framework-res.apk
Now IF you get a LOT of messages, like hundreds. Your .9.png's are not compiling correctly. You may have to load the originals and start over.
If you get WARNINGS but not many (mine were related to a translation message for "en-GB") then you are fine.
9. Browse to C:\phonetheme\working\framework-decoded\build
Ah ha, that wasn't there before!
10. Open C:\phonetheme\working\framework-res.apk in 7-Zip
11. With it open delete the /res directory, AndroidManifest.xml, resources.arsc files from 7-Zip.
LEAVE THE /META-INF and /assets folders!
12. From the C:\phonetheme\working\framework-decoded\build directory, open apk directory. Select and drag the /res folder, AndroidManifest.xml, and resources.arsc to the 7-Zip window so they are in the archive.
13. Backup C:\phonetheme\working\framework-res.apk. Copy to C:\phonetheme\backup\ and name it something like framework-res-new.apk
14. Open the command prompt window
: adb remount
: adb push C:\phonetheme\working\framework-res.apk /sdcard/framework-res.apk
: adb push C:\phonetheme\backup\fwbu.apk /sdcard/fwbu.apk (you only need to do this when you have a new backup!
: adb shell
#: su (if not already #)
[At this point, I always make my screen on and unlocked, you don't have to, but I like to]
#: cp /sdcard/framework-res.apk /system/framework/
At this point, if you try and open anything on your phone, it will lock for a second and droid to the droid text/eye animation for a second. IF it loops! You will notice that you are still connected over ADB.
If and only IF it LOOPS from the eye to the text or if the text animation looks obviously broken. Type the following
#: cp /sdcard/fwbu.apk /system/framework/framework-res.apk
The next time it loops, it will load your backup and start running again. DO NOT REBOOT! Other wise you have to nandroid or SBF it like I did.
#: rm /sdcard/framework-res.apk
#: exit
: adb remount
: adb pull /system/framework/framework-res.apk C:\phonetheme\backup\fwbu.apk
If it comes up normally, and you get to the lock screen, unlock, and open your notification shade. Tada! You are done!
Best part? Because the decoded folder is there, if you want to make changes you just start at Step 7 again, delete the build folder, re-build and so on.
Here's what mine looks like!
Last note. If I missed something, let me know, or if you have problems, report them here. I'll try and answer best I can. I worked for hours on this today, so I may have missed something, though I doubt it.
Status Bar XML's per a couple requests. Download and pop in an Extracted (NOT decoded) framework-res.apk. These are encoded with light colors. You CAN edit these in a hex editor like HxD, open up the file, then Find 0800001C Make sure "Hex Values" is selected.
EDIT: Currently Making a Windows App to do this and other things. Stay tuned.
First things first:
- Instructions are from a Win 7 x64 PC perspective
- I am NOT liable if you screw something up
- Your phone must be rooted, have froyo (2.2), and be de-odexed.
- This guide assumes you know how to use adb, 7-Zip
- I am not going to explain the above steps, use google or xda's search.
- If you are going to edit any .9.png files like "status_bar_close_on.9.png" you MUST keep the existing transparency and black bars in place. If you don't you will NOT be able to finish the process.
** Quick Trick **
Windows 7: Right click My Computer, Click Properties, Click Advanced System Settings, Click Environment Variables. In user vars and system vars there is a "path" variable. Edit it. Copy paste your SDK path and the SDK\Tools path.
Windows XP: Right click My Computer, Properties, Advanced Tab, Environment Variables. In user vars and system vars there is a "path" variable. Edit it. Copy paste your SDK path and the SDK\Tools path.
This will allow ADB to run without being in the sdk\tools folder.
Instructions:
0. Make a backup of framework-res.apk from /system/framework
- Open the command Prompt
: adb pull /system/framework/framework-res.apk C:\phonetheme\backup\fwbu.apk
: adb pull /system/framework/framework-res.apk C:\phonetheme\working\framework-res.apk
1. Get APKTOOL.
2. Download the top 2 files. Extract the contents of the files to C:\Windows
3. Open the command prompt
: apktool if C:\phonetheme\backup\fwbu.apk droidx (or whatever your device is)
: apktool d -f -t droidx C:\phonetheme\working\framework-res.apk C:\phonetheme\working\framework-decoded\
Optional. Go to C:\phonetheme\working\framework-decoded\res\drawable-hdpi-v4\ and modify images if you wish. You do not have to do it this way, but it can be done. You can just open the apk with 7 zip and extract them/edit them as well.
4. Go to C:\phonetheme\working\framework-decoded\res\layout
5. Open status_bar_latest_event_content.xml in notepad
6. Where ever you see something like this: android:textColor="?textColorSecondaryInverse"
In between the quotes, replace @color/dim_foreground_dark (or whatever) with a 8 char hex string. The format is NORMAL, not BACKWARD like in Hex. So when you are done you should have something like "#FFFFFFFF". The format is #AARRGGBB
The first color changes the heading "Voicemail Messages"
The second changes the descriptor "Dial *86"
The third changes the datetime stamp
So mine is, "#FFFFFFF", then "#FF747c8d", last "#ffbdc8df"
7. Make all your color changes. Save.
8. Open up the command prompt again
: apktool b C:\phonetheme\working\framework-decoded C:\phonetheme\build\framework-res.apk
Now IF you get a LOT of messages, like hundreds. Your .9.png's are not compiling correctly. You may have to load the originals and start over.
If you get WARNINGS but not many (mine were related to a translation message for "en-GB") then you are fine.
9. Browse to C:\phonetheme\working\framework-decoded\build
Ah ha, that wasn't there before!
10. Open C:\phonetheme\working\framework-res.apk in 7-Zip
11. With it open delete the /res directory, AndroidManifest.xml, resources.arsc files from 7-Zip.
LEAVE THE /META-INF and /assets folders!
12. From the C:\phonetheme\working\framework-decoded\build directory, open apk directory. Select and drag the /res folder, AndroidManifest.xml, and resources.arsc to the 7-Zip window so they are in the archive.
13. Backup C:\phonetheme\working\framework-res.apk. Copy to C:\phonetheme\backup\ and name it something like framework-res-new.apk
14. Open the command prompt window
: adb remount
: adb push C:\phonetheme\working\framework-res.apk /sdcard/framework-res.apk
: adb push C:\phonetheme\backup\fwbu.apk /sdcard/fwbu.apk (you only need to do this when you have a new backup!
: adb shell
#: su (if not already #)
[At this point, I always make my screen on and unlocked, you don't have to, but I like to]
#: cp /sdcard/framework-res.apk /system/framework/
At this point, if you try and open anything on your phone, it will lock for a second and droid to the droid text/eye animation for a second. IF it loops! You will notice that you are still connected over ADB.
If and only IF it LOOPS from the eye to the text or if the text animation looks obviously broken. Type the following
#: cp /sdcard/fwbu.apk /system/framework/framework-res.apk
The next time it loops, it will load your backup and start running again. DO NOT REBOOT! Other wise you have to nandroid or SBF it like I did.
#: rm /sdcard/framework-res.apk
#: exit
: adb remount
: adb pull /system/framework/framework-res.apk C:\phonetheme\backup\fwbu.apk
If it comes up normally, and you get to the lock screen, unlock, and open your notification shade. Tada! You are done!
Best part? Because the decoded folder is there, if you want to make changes you just start at Step 7 again, delete the build folder, re-build and so on.
Here's what mine looks like!
Last note. If I missed something, let me know, or if you have problems, report them here. I'll try and answer best I can. I worked for hours on this today, so I may have missed something, though I doubt it.
Last edited: