[Guide] Transparent background - framework-res.apk Contacts.apk [ICS-JB] - Galaxy S II Themes and Apps

This is a simply method to set a transparent background on framework-dependent apks and Contacts.apk.
1. Using Photoshop or similar create a trasparent image (% as you wish) and save it as .png. If you insert a texture or image, use your device resolution for better results. Make two copies and rename its as "background_holo_dark.png" and "background_dial_holo_dark.png"
2. Decompile framework-res.apk. You can follow this great guide
3. Browse to res/values and open styles.xml. Search code for "<style name="Theme.Holo" parent="@style/Theme">"
4. On it, search this line "<item name="windowShowWallpaper">false</item>" (using Komodo is line 1006) and replace values with true. Save and close.
5. Browse to res/drawable-nodpi and replace existing background_holo_dark.png with your image
6. Recompile framework-res. You may refer to guide posted above
7. Using winrar or similar browse into Contacs.apk to res/drawable-nodpi and replace existing background_dial_holo_dark.png with your image (simply drag&drop, be careful to set compression to Store)
8. Replace framework-res and Contacts.apk on your device (Root explorer, adb, flash through recovery). Personally I also clear cache and dalvik cache
9. Enjoy your modded apks!
After the editing of framework-res.apk you may visit this thread to download also my transparent calendar and mms apks!
Remeber: always perform backup before replace any system file! Also, I'm no responsible for any problems that may occure on your phone
Attached you can find two transparent background 480x800
Here some screenshots (second one from esk02k)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----------------------------------------------------------------------------
P.S. Of course, this method allows you to change backgroung also with any non transparent image. You simply have to rename your two image copies as reported in point 1. Then replace the original file using winrar or similar as in point 7. You don't need to decompile framework-res.apk in this case!

Thanks but can I use 7zip
I don't like to Decompile and decompile process I think it's hard

You can use 7zip to replace image on Contacts.apk, but you need to decompile framework-res.apk to modify styles.xml.
If you follow the linked guide you will see that compile/decompile apks is not so difficult!

Sorry
What link do you mean ?

nice, thanx.
But one question, do you know how to change the color of font in contacts? ie. from black to white? like how it is in dial...

Kadhim7 said:
Sorry
What link do you mean ?
Click to expand...
Click to collapse
This one
Sorry, I've forgotten to add link on first post, fixed.

Thanks it came out real nice. I settled on 60% transparency. Heres a screenshot for the op if you want it :
(using galaxy pack livewallpaper)

esk02k said:
Thanks it came out real nice. I settled on 60% transparency. Heres a screenshot for the op if you want it :
Click to expand...
Click to collapse
Taken!

Hi is it possible for you to make the stock calendar background transparent??? I hate the stock look!!.

can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.

sam5154 said:
can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.
Click to expand...
Click to collapse
During last days I've replaced framework-res about one hundred of times I think, and I never lost any account. Don't know what VRT is, I usually flash new framework-res with recovery.

sam5154 said:
can we use VRT universal theme flasher for CM9 Roms?
replacing framework-res usually deletes every account registered on the device. I used vrt zips on stock-based Roms easilly. but when I was trying to use it on a CM9 Rom iit just crashed everything.
Click to expand...
Click to collapse
Yea you can. Im using a zip I posted here. Its by Villain team and JRsoft. I haven't had any problems with it. This ones set up to replace the whole framework though so dont flash it on anything other than paranoid 1.6.

Hi,
This material is gold, my friend, thank very much.
But, i followed every single step on this, but i can't get transparency in contacts, only in phone application, and all the rom...very cool.
But my contacts background it's completely dark.
I also changed framework, inside res/drawable-nodpi, background_holo_light.png to a transparent png file with the same name....but didn't worked also...
So, what to do?

ruicc said:
Hi,
This material is gold, my friend, thank very much.
But, i followed every single step on this, but i can't get transparency in contacts, only in phone application, and all the rom...very cool.
But my contacts background it's completely dark.
I also changed framework, inside res/drawable-nodpi, background_holo_light.png to a transparent png file with the same name....but didn't worked also...
So, what to do?
Click to expand...
Click to collapse
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.

Many thanks, esk02k, it worked like a charm...
But, what's the difference between this one and the one i used? (F1 rom, from faryaab) Did you change anything else on this?
Cheers

esk02k said:
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.
Click to expand...
Click to collapse
Hi,
Here' the good MOD : ww.phonandroid.com/forum/rom-andyx-4-0-4-v5-t16615-1490.html#p297978
It's is normal you've only phone.apk transparent.
Having contacts.apk too, you need edit xml and compile it.

ocenis64 said:
Hi,
Here' the good MOD : ww.phonandroid.com/forum/rom-andyx-4-0-4-v5-t16615-1490.html#p297978
It's is normal you've only phone.apk transparent.
Having contacts.apk too, you need edit xml and compile it.
Click to expand...
Click to collapse
I didn't find any "how to" about transparency on that thread...just a guy who post some pics of transparency and said it was very easy.....
So, everyone is telling "need to edit xml on contacts.apk and compile"...i'm tired of know that...it would be more useful say which files, where and what to do.
Cheers

esk02k said:
use the contacts.apk I posted in the zip above. Backup yours first of course, it can be found in the extras/system/app folder of the zip.
Click to expand...
Click to collapse
The easiest way is taking my files.
Compiling AOKP contacts.apk gives a lot of problem. It's a know bug and any tools can compile it correctly.
(excuse me for my bad english, I'm french)

ocenis64 said:
The easiest way is taking my files.
Compiling AOKP contacts.apk gives a lot of problem. It's a know bug and any tools can compile it correctly.
(excuse me for my bad english, I'm french)
Click to expand...
Click to collapse
But, what about the rest of the rom? I saw that mms.apk and the rest are transparent...

ruicc said:
But, what about the rest of the rom? I saw that mms.apk and the rest are transparent...
Click to expand...
Click to collapse
The rest is the framework See the title, you're in the right thred !
Yes, MMS.apk is transparent too.
If you don't want it, remove it from the zip.

Related

Need help editing CyanBread.apk theme

Hi, I basically want to change the Battery Icon in the Notification Bar.
Yes I replaced the .png files with the ones I wanted but the problem is, the png files I have are exact battery percentages but in my Dinc it only shows battery levels in intervals of 5's.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
That is the battery icon I am replacing it with. There are 134 .png's (100 battery status, 33 for battery charge, and 1 for unknown battery).
Basically my question is, how can I edit the theme so that it will show all .png files so the phone will display the exact battery percentage it is on?
This is how my phone looks so far
Thanks in advance!
I believe you'll need to edit XML files to make it pull the correct image for each 1% icon like you want. Just adding the images won't do it. I have never done this before, so maybe someone like fernando sor or Hatman (just to name a couple of themers) can help you out with that.
RMarkwald said:
I believe you'll need to edit XML files to make it pull the correct image for each 1% icon like you want. Just adding the images won't do it. I have never done this before, so maybe someone like fernando sor or Hatman (just to name a couple of themers) can help you out with that.
Click to expand...
Click to collapse
Do you have an idea of what xml file I need to edit I can't find anything that connects to the battery.
Sent from my ADR6300
eljean said:
Do you have an idea of what xml file I need to edit I can't find anything that connects to the battery.
Sent from my ADR6300
Click to expand...
Click to collapse
Maybe in framework-res - res - drawable - stat_sys_battery and stat_sys_battery_charge xml's....?
I am not running CM7/Cyanbread theme, so I'm not sure if those XML's are there.
RMarkwald said:
Maybe in framework-res - res - drawable - stat_sys_battery and stat_sys_battery_charge xml's....?
I am not running CM7/Cyanbread theme, so I'm not sure if those XML's are there.
Click to expand...
Click to collapse
Yeah is not in the Cyanbread.apk its only in the framework-res.apk... also Im kinda noobish at this sort of stuff how do I exactly edit these files?
You'd need to edit those files in the framework-res.apk to make them show. You'd need to decompile the apk file with apktool to view the XML's, then recompile it. I've decompiled framework-res, but never recompiled things with it or really made any changes.
You're best bet is to PM fernando sor or Stoney666, maybe they can help out further.
First thing is you need to decompile the apk. To get the phone to display 1% increments you will need to edit the stat_sys_battery xml file in drawable. To have the apk display your battery images you will need to define them in the android xml file in the xml folder. Once the edits are done recompile, sign the apk and install.
N-Forced said:
First thing is you need to decompile the apk. To get the phone to display 1% increments you will need to edit the stat_sys_battery xml file in drawable. To have the apk display your battery images you will need to define them in the android xml file in the xml folder. Once the edits are done recompile, sign the apk and install.
Click to expand...
Click to collapse
Will try this once I get home. Can I just open the apk using winrar and edit the xml file? Or do I need to decompile in order to read the xml file?
Sent from my ADR6300
Need to decompile first.
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
CondemnedSoul said:
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
Click to expand...
Click to collapse
Will I be able to install it by simply ADB Pushing the new Cyanbread.apk or will I have to reflash?
**This is a lot of writing sheesh, I started 10 minutes ago and I am only up to 50. Now I know how hard it is to make a theme, i really need to start donating to themers for their work lol.
CondemnedSoul said:
My suggestion would be to decompile the cyanbread apk and add the xmls for the battery to the apk. Then there's a couple more xmls in the theme apk that would need to be edited as well. When I get to my computer I can give you more info on it if you'd like but doing it this way would avoid any interference of the xml being in framework and having a standard battery icon if you go back to stock. This way too when you change nightlies you can bring your modified cyanbread theme with you instead of having to change the framework each time. Just a thought though.
Sent from my ADR6300
Click to expand...
Click to collapse
Any help signing the new APK? I cant seem to get this. I had just about done everything, eexcept this.
eljean said:
Any help signing the new APK? I cant seem to get this. I had just about done everything, eexcept this.
Click to expand...
Click to collapse
I've used Android Signer from PPC Geeks.
Sent from my ADR6300 using xda premium
Yes you can install it with adb or with root explorer and setting permissions. I've used android signer from ppc geeks as well on Windows.
Sent from my ADR6300 using XDA App
Thank you all. As I tried to install it however it tells me I compiled it wrong and to contact the developer or whatever.
All I changed was the stat_sys_battery and stat_sys_battery_charge xml files. I used cyanbreadx.apk and i dont want to edit framework-res on my rom just incase I mess it up.
I'm I missing something here? Do I have to edit anymore xml? Is it maybe the public.xml or android. xml?
Sent from my ADR6300 using XDA App
eljean said:
Thank you all. As I tried to install it however it tells me I compiled it wrong and to contact the developer or whatever.
All I changed was the stat_sys_battery and stat_sys_battery_charge xml files. I used cyanbreadx.apk and i dont want to edit framework-res on my rom just incase I mess it up.
I'm I missing something here? Do I have to edit anymore xml? Is it maybe the public.xml or android. xml?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Well, you could make a backup of your framework-res on your ROM by using adb shell. You can then use adb to revert it back if you screwed something up or it's unusable.
Create backup:
adb shell
cd /system/framework
cp framework-res.apk framework-res.bak
Restore backup:
adb shell
cd /system/framework
cp framework-res.bak framework-res.apk
Then you can try modifying your apk, and use adb push to put it back into /system/framework.
As far as other file editing, I'm not sure about that.
A very simple solution to your problem would be to use the theme kitchen http://uot.dakra.lt/. Just pick what battery you want from the ones provided, upload the cyanbread.apk, then install like a normal apk file.
RMarkwald said:
Well, you could make a backup of your framework-res on your ROM by using adb shell. You can then use adb to revert it back if you screwed something up or it's unusable.
Create backup:
adb shell
cd /system/framework
cp framework-res.apk framework-res.bak
Restore backup:
adb shell
cd /system/framework
cp framework-res.bak framework-res.apk
Then you can try modifying your apk, and use adb push to put it back into /system/framework.
As far as other file editing, I'm not sure about that.
Click to expand...
Click to collapse
It sent me in a bootloop, I guess I am compiling it wrong. I have no Idea what I am doing wrong. I rather edit the CyanbreadX.apk. So far I fixed the /res/drawable/stat_sys_battery.xml , /res/drawable/stat_sys_battery_charge and res/xml/Android.xml . I do not know what else I need to edit or what I am doing wrong.
Attached are the .xml files I customized.
Please if you can tell me what I did wrong and check them out.
***I changed the extension to .txt so it can attach.
N-Forced said:
A very simple solution to your problem would be to use the theme kitchen http://uot.dakra.lt/. Just pick what battery you want from the ones provided, upload the cyanbread.apk, then install like a normal apk file.
Click to expand...
Click to collapse
Anyway I can use my .png's since I spent a good minute modifying it in photoshop to get the colors I wanted?
eljean said:
Anyway I can use my .png's since I spent a good minute modifying it in photoshop to get the colors I wanted?
Click to expand...
Click to collapse
the theme kitchen allows you to define a custom color if you want.
Sent from my ADR6300 using XDA App

[Request] Trying to make a JKay-ICS theme, could use some (a lot actually) help...

After Trying (and failing epiclly) to MOD JKay's SystemUI.apk file and combine it with this theme here, the theme maker Crussader referred me to this tutorial here for further guidance.
Problem is, JKay's SystemUI.apk file and the one from Crussader's theme are very different from each other and the drawable-hdpi folder is busting with PNG images and I can't tell what file is what and what I should put where, I get totally scrambled and lost in this vast ocean of images and I have no idea what I'm doing...
If someone could make a 'JKay-Crussader SystemUI.apk reference guide' it would be great!
unzip both systemui.apk's with 7-zip or winrar. copy and paste whatever images you want to transfer, (make sure the png names are the same). Zip it back up and replace in /system /app. What problems are you having?
If you're going to change the theme colour too (e.g. the clock colour) you'll need to decompile the SystemUI.apk file and change the theme colour in \res\values\colors.xml
change status_bar_theme_color from #ff8ecd00 to the colour you want (I used #ff009dcd)
stevehkim said:
unzip both systemui.apk's with 7-zip or winrar. copy and paste whatever images you want to transfer, (make sure the png names are the same). Zip it back up and replace in /system /app. What problems are you having?
Click to expand...
Click to collapse
That's exactly what I tried and failed on doing.
In his mode, JKay changed the names that link the PNG files to their use, so if in a un-MODed and clean SAMSUNG's stock SystemUI.apk the file XXX.png is let's say.. the background of the status bar, in JKay's MOD the name that you will need to name the new file you want to put instead will now be: YYY.png...
Not only I don't know what file I need to swap on a stock SystemUI.apk, in JKay's MOD the name was altered, so.. where do I go from here???
Spannaa said:
If you're going to change the theme colour too (e.g. the clock colour) you'll need to decompile the SystemUI.apk file and change the theme colour in \res\values\colors.xml
change status_bar_theme_color from #ff8ecd00 to the colour you want (I used #ff009dcd)
Click to expand...
Click to collapse
Please no big words like compile and de-compile and stuff like that...
All I know is zip / unzip.. please, lets stick with that...
Itzik68 said:
Not only I don't know what file I need to swap on a stock SystemUI.apk, in JKay's MOD the name was altered, so.. where do I go from here???
Click to expand...
Click to collapse
I didn't either but, if you're editing on Windows, set explorer's file view to 'extra large icons' so you can see the images and give it a go!
Why not wait for jkay to do it. I'm sure he's going to have this as a theme option.
Sent from my Transformer TF101 using Tapatalk 2
Spannaa said:
I didn't either but, if you're editing on Windows, set explorer's file view to 'extra large icons' so you can see the images and give it a go!
Click to expand...
Click to collapse
I did, but still too much files, there's a lot of images that are very much a like and I couldn't figure out what was what and got lost...
gadget069 said:
Why not wait for jkay to do it. I'm sure he's going to have this as a theme option.
Sent from my Transformer TF101 using Tapatalk 2
Click to expand...
Click to collapse
JKay's themes are based on the overall layout of the TouchWiz UI while Crussader's theme is based on Vertumus's work which is based on a port of the AOSP layout into the TouchWiz UI framework, therefor it is much more extensive and in my taste a lot better.
Not to mean any disrespect towards JKay's work, I think it's great and I'm very grateful for his MOD! I can't imagine not having it, it would be like rendering my device cripple...
But still, in terms of design, I like Vertumus's & Crussader's approache better, I like the AOSP overall layout, and having it on a Stock TouchWiz based ROM together with JKay's MOD sounds pretty great to me...
What are you trying to do exactly? What Rom are you running and what do you want to theme..
ROM:
Faryaab said:
I9100XWLPF Download (Thanks To SamMobile!)
Base Firmware: I9100XWLPF (4.0.3)
Country Italy
Carrier: Unbranded
Build Date: 18th May 2012
Modem: XXLPX
CSC: OXILP6
Change List: 592261
Click to expand...
Click to collapse
Kernel:
Chainfire said:
CF-Root-SGS2_XW_OXI_LPF-v5.5-CWM5.zip
Click to expand...
Click to collapse
MODs:
_JKay_ said:
JKay Deluxe framework files v14.0: XWLPF
Click to expand...
Click to collapse
I'm trying to theme JKey's MOD and combine it with this theme here made by Crussader.
Problem is, I have no idea what the hell I'm doing...
Love a challenge
It's on... let me check Jkay's files first... keep in mind that maybe we should ask permission to release something in case this works
I love you man!!!
Of course I will ask for his permission, but I believe he'll agree as long as we credit him he said so on his MOD's thread:
_JKay_ said:
Creating themes for the JKay framework is more than welcome but... you are only allowed to change xml and pngs! Remember to credit me! And please test themes containing my mod good before releasing! Think about png resolution and sizes... Use 8bit pngs! Only edit decompiled nine patch pngs... and don't compress the resources.arsc file! While it might work it will actually slow down your framework as Android has to decompress it!
Publish your themes in the Apps and Themes thread. Thanks.
Click to expand...
Click to collapse
His words...
Anyway thanks a lot of it!!!
P.s
Will it be possible to make it compatible to .odex system?
Ummm if we only can change xml and pngs... some things we're not going to be able to theme ( small icons for example ) but let's make something first ans then we might ask for permission to change it.
P.S.: First things first, next will go onto .odex
OK, so what do I do?
Itzik68 said:
That's exactly what I tried and failed on doing.
In his mode, JKay changed the names that link the PNG files to their use, so if in a un-MODed and clean SAMSUNG's stock SystemUI.apk the file XXX.png is let's say.. the background of the status bar, in JKay's MOD the name that you will need to name the new file you want to put instead will now be: YYY.png...
Not only I don't know what file I need to swap on a stock SystemUI.apk, in JKay's MOD the name was altered, so.. where do I go from here???
Please no big words like compile and de-compile and stuff like that...
All I know is zip / unzip.. please, lets stick with that...
Click to expand...
Click to collapse
If you are only changing regular png files then zip and unzip is in order. If you want to work with xml's due to encription then compile and decompile is exactly what should be used, as a word and a method.
OK.. but I have no intention of working with xml files...
No scripts, no anything to do with coding, just the images.
My knowledge in programming sums in about a 'Hello World' button on VB...
Itzik68 said:
OK.. but I have no intention of working with xml files...
No scripts, no anything to do with coding, just the images.
Click to expand...
Click to collapse
You could just change the images but if you want the clock, battery text and notification text themed, you'll have to edit one xml file.
If you don't, they'll still be green.
Care to please tell us which file? Styles.xml?
No problem.
In XWLPF odexed, I changed the theme colour in SystemUI.apk\res\values\colors.xml
Go to:
\res\values\colors.xml
change:
status_bar_theme_color
from:
#ff8ecd00
to:
#ff009dcd
Click to expand...
Click to collapse
Spannaa said:
No problem.
In XWLPF odexed, I changed the theme colour in SystemUI.apk\res\values\colors.xml
Click to expand...
Click to collapse
I was worried that was the file... I'm thinking that there is so little we can change after the framework is placed... let's see what can we do.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Ok... there is progress...
Small notification icons
ICS Style status icons
Battery percentage
missing some stuff though...

[GUIDE] Changing status bar icons by editing framework-res.apk and lots more

So friends, here is a quick and easy guide for changing the status bar icons of your Gingerbread(Actually any phone )
For those who don't know how to do it(for anyone actually :highfive
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 my 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
Patience
Mind
A Android (A spare one if you brick your phone, just kidding)
Root access(to change the apk)
NinjaMorph(http://bit.ly/ninjamorph)
Root Explorer(Optional)(http://bit.ly/stericson)
GUIDE
So Let's Start
Download NinjaMorph. Install it and give it root access. It will prompt for starting checks. Click on start checks.
Now you would have three options, namely, New Project, Finish Project, Existing Project
Click on new project. Go to system/framework/ and click on framework-res.apk. It will start extracting files
Once it has extracted all the files, it will open to show you what is inside framework-res.apk.
Exit it and go to your file explorer.
Go to /sdcard/AndroidThemes/workspace/framework-resapk
This is what is inside apk. Go to res/drawable-mdpi folder
There you will see hundreds of icons of your menu, lockscreen, battery, signal, and everything
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]
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
After you have done replacing the icons and you are satisfied(I am never)
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
Then it will ask if you want to remove the completed project, Say No(As you would need it if something gets wrong)
Reboot your phone
Maximum chances are that your icons will be replaced. Rare cases have their status bar gone or no change, if so:-
Download(Buy) Root Explorer. Go to /sdcard/AndroidThemes/workspace,
There you will see framework-res.apk. Copy it and go to /system/framework
Mount as R/W
Paste the apk. If it asks that file already exists, overwrite it.
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--
Reboot
Do it over again if nothing happens
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?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
FlemishDroid said:
Nice guide. How to change color of clock in gingerbread because white is ugly? Maybe you can add that in future.
Verstuurd van mijn GT-S5660
Click to expand...
Click to collapse
Yes
It is a tedious process
By editing smali files of classes.dex of SystemUI.apk
BUMP
which file do you you need for notificationbar background???
jkoetsier said:
which file do you you need for notificationbar background???
Click to expand...
Click to collapse
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Thanks man, its working!!
Sent from my GT-S5660 using xda premium
SpaceCaker said:
Add @amdroid:background @ frawable/statbarbg
In statusbar tracking.xml
Then add statbarbg.png in drawable-mdpi
For gb clock u need to do smali
Devilsking has made good guide
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
*android
BUMP
BUMP
BUMPS are unneeded, if theres nothing to say, dont do it.
Sent from my GT-S5660 using xda app-developers app
Bigger PNG's
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
JaySilverMusiq said:
Quick question, I know this is an old topic, but upon googling I found this and I feel that my question sort of belongs here. Not even sure if OP is still around to look at this thread, but here goes:
I swapped out a png image for the statusbar icon of an app called CoolSymbols (not using this guide, but using APK Multi tool, but I imagine that the png sizes will have to be the same). Now, this app had a quite ugly statusbar icon, with jagged edges. I replaced it by a circle icon. This circle is pretty much the same size as the previous icon, so the icon looks jagged as well.
Here is the question: Do I simply make a bigger png image, so it will get cropped <---- doubt this
or do I create another folder like res/drawable-hdpi, but for xxhdpi (drawable-xxhdpi???), and if so will that fix the problem, or will I also have to point to that folder somewhere in another file <--- probably the way to go
I hope someone can help me out here!
(PS: I hope my issue is clear from the text above, I don't have a possibility to post proper screenshots until tomorrow, but they will be provided if needed)
(Also I'm sorry if there may have been a more recent topic about this, then I totally missed this!)
Click to expand...
Click to collapse
You need to create an image of correct pixels according to your phone's dpi
Have a look here - http://developer.android.com/design/style/iconography.html

Removing Battery Icon MB4

1) T-Mobile (and probably others) Note 2 has to be rooted.
2) Copy your SystemUI.apk file (from system/app) to your PC.
3) Open it with WinRAR or other archiving program
4) Go to the res\drawable folder
5) Delete stat_sys_battery.xml (or rename it to .xmbak)
-- you can delete the charging one too but I like to see my stuff charging...
6) Repack the .apk using WinRAR
7) *** SAVE YOUR ORIGINAL SYSTEMUI.APK!!! ***
8) do this by renaming your existing SystemUI.apk to SystemUI.bak
9) Copy the new SystemUI.apk to your system/app folder.
10) Reboot and enjoy. Worked for me, should work for you.
DISCLAIMER - I am not responsible if you screw anything up, which is why you should ALWAYS back up your phone and the SystemUI.apk before screwing with it.
Picture attached of result.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
svavrek said:
1) T-Mobile (and probably others) Note 2 has to be rooted.
2) Copy your SystemUI.apk file (from system/app) to your PC.
3) Open it with WinRAR or other archiving program
4) Go to the res\drawable folder
5) Delete stat_sys_battery.xml (or rename it to .xmbak)
-- you can delete the charging one too but I like to see my stuff charging...
6) Repack the .apk using WinRAR
7) *** SAVE YOUR ORIGINAL SYSTEMUI.APK!!! ***
8) do this by renaming your existing SystemUI.apk to SystemUI.bak
9) Copy the new SystemUI.apk to your system/app folder.
10) Reboot and enjoy. Worked for me, should work for you.
DISCLAIMER - I am not responsible if you screw anything up, which is why you should ALWAYS back up your phone and the SystemUI.apk before screwing with it.
Click to expand...
Click to collapse
Note: com.android.systemui has stopped working because I'm an idiot and didnt name the file correctly... learn from my mistake LOL!
There any way u can post ur .apk I am not home and will like to try this ty
Yup. Here it is.
NOTE: I am running a T-Mobile Galaxy Note II with Frosty JB v7.5 (see my signature) - I am newer to all this stuff so use this at your own risk, again backup prior to changing anything!! I actually copied the apk that came with the ROM and made 2 backups of it and then put my new file in place, renamed it to SystemUI.apk, and over-wrote the existing one. worked like a charm.
just a quick question, If I edit stat_sys_battery to where I add maxLevels for all 100 %s and add drawables for them, would this make the 1%Mod??
eurohomie said:
just a quick question, If I edit stat_sys_battery to where I add maxLevels for all 100 %s and add drawables for them, would this make the 1%Mod??
Click to expand...
Click to collapse
I have no Idea... like I said, I am new to this stuff and NOT a developer - so edit at your own risk.
It works prefect ty
You're welcome Now I need to find out how to make this a "Mod" and flashable from recovery... I have to learn more of this stuff, I love it!
svavrek said:
1) T-Mobile (and probably others) Note 2 has to be rooted.
2) Copy your SystemUI.apk file (from system/app) to your PC.
3) Open it with WinRAR or other archiving program
4) Go to the res\drawable folder
5) Delete stat_sys_battery.xml (or rename it to .xmbak)
-- you can delete the charging one too but I like to see my stuff charging...
6) Repack the .apk using WinRAR
7) *** SAVE YOUR ORIGINAL SYSTEMUI.APK!!! ***
8) do this by renaming your existing SystemUI.apk to SystemUI.bak
9) Copy the new SystemUI.apk to your system/app folder.
10) Reboot and enjoy. Worked for me, should work for you.
DISCLAIMER - I am not responsible if you screw anything up, which is why you should ALWAYS back up your phone and the SystemUI.apk before screwing with it.
Picture attached of result.
Click to expand...
Click to collapse
thanks for this, tried your apk but center clock is blue. i decided to mod the systemui and all works. thanks
Two things.
1) I couldnt find the old post, but Foreverloco was the one a while ago that said to do it this way, so a big thanks to him also. I could not remember so I was messing with it today and remembered how to do it.
2) Also, the center clock is blue - not sure how to change that pulled it from another mod, I didnt make it centered that was from the post in themes for the deodexed addons.
svavrek said:
Two things.
1) I couldnt find the old post, but Foreverloco was the one a while ago that said to do it this way, so a big thanks to him also. I could not remember so I was messing with it today and remembered how to do it.
2) Also, the center clock is blue - not sure how to change that pulled it from another mod, I didnt make it centered that was from the post in themes for the deodexed addons.
Click to expand...
Click to collapse
here's what i did to my systemui.apk, of course big thanks to you.
View attachment 1838860
can you tell me how to move battery around, and clock
Sent from my SGH-T889 using Tapatalk 2
amorek13 said:
can you tell me how to move battery around, and clock
Sent from my SGH-T889 using Tapatalk 2
Click to expand...
Click to collapse
I'm doing some research now, actually, on that. I love the center clock but that was something I flashed. I want to learn how to make an entirely custom status bar up top, so that's going to be my new project (and first) I think.
let me know please would like to move the clock, i have n2 tmo, tried the apk but made my whole status bar disapear, so i went in manually and did it works fine, thank you
There's one HELL of a good guide here on all this stuff...
http://forum.xda-developers.com/showthread.php?t=1989533
and also
http://forum.xda-developers.com/showthread.php?t=1237528
I think changing the clock to center requires mod in frameworks or mod in systemUI, that means need to use apktool. Tried this once with my gnex, trial and error
Sent from my SGH-T889 using xda premium
I've been playing with it. I have decompiled and recompiled the SystemUI.apk a few times last night and this morning before work and changed around a little bit of things like font sizes and colors... just need to find out where to change the size and color of the battery percentage text and then do some nicer icons and my status bar preferences will be all good
I'd also like to modify the weatherbug apk file needed to make the temperature text in the status bar match the rest of it, because its darker than the other blue I have picked out... so we'll see this weekend how it goes.
And they just replied on the post for APKTool... http://forum.xda-developers.com/showthread.php?p=39660963#post39660963
eurohomie said:
just a quick question, If I edit stat_sys_battery to where I add maxLevels for all 100 %s and add drawables for them, would this make the 1%Mod??
Click to expand...
Click to collapse
Yes, you must add all the 100 % to the XML and also put all PNG to drawable-xhdpi, you should change also stat_sys_battery_charge.xml like stat_sys_battery.xml to make the 1% mod also available when your phone is charging.
Gave it a try worked great thanks
Sent from my Rooted Speak & Spell using xda app-developers app
Works perfect! thanks a lot!

FMRadio FM2 Lineage-16/AOSP themed

Since we don't have the newer FM Radio App in lineage-16 and because I don't like the "old" FM2, I recolored it for my needs
I made two flashable packages, one is the new themed FM2 and the other is the Stock FM2, if You don't like it.
INSTALLATION:
Reboot to installed TWRP
Mount ---> Select System
Install package
Reboot
Tested on my lineage-16 (20190530), might work on other AOSP Pie Roms with FM2.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
zitronenmelissa said:
Since we don't have the newer FM Radio App in lineage-16 and because I don't like the "old" FM2, I recolored it for my needs
I made two flashable packages, one is the new themed FM2 and the other is the Stock FM2, if You don't like it.
INSTALLATION:
Reboot to installed TWRP
Mount ---> Select System
Install package
Reboot
Tested on my lineage-16 (20190530), might work on other AOSP Pie Roms with FM2.
Click to expand...
Click to collapse
does it have RDS info ??
boe323 said:
does it have RDS info ??
Click to expand...
Click to collapse
It's the older FM Radio APP used in CM11/CM12 too, I never had RDS with it.
I guess the newer lineage/CyanogenMod FMRadio APP since CM13 has RDS?
Is it works with stock oreo?
I have TWRP installed on my phone...
No, I don't think so. These is for Pie Roms and fmradio lib should be enabled in kernel and "libqcomfm_jni.so" should be in /system/lib64. But it's always worth a try remember to backup files, that will be overwritten, "libqcomfm_jni.so" is attached, extract from zip file (rw-r-r in /system/lib64)
zitronenmelissa said:
Since we don't have the newer FM Radio App in lineage-16 and because I don't like the "old" FM2, I recolored it for my needs
I made two flashable packages, one is the new themed FM2 and the other is the Stock FM2, if You don't like it.
Click to expand...
Click to collapse
Hi, do you have a version Black themed? or can you tell me how did you themed it? did you used android studio or others way? Thanks
simone81 said:
Hi, do you have a version Black themed? or can you tell me how did you themed it? did you used android studio or others way? Thanks
Click to expand...
Click to collapse
I use apktool:
extract FM2 and framework-res.apk from Your rom
apktool if framework-res.apk
apktool d FM2.apk
Important files are /res/values/color.xml and some in /res/drawable
Color is written in hex color code with transparency ahead: #ff000000 is black #ffffffff is white for example.
You can decompile my file and for Your needs it will be enough to edit /res/values/color.xml
Recompile: apktool b FM2 and don't forget to put Original META-INF folder and AndroidManifest.xml back in new compiled FM2.apk in /dist folder (I use 7zip Archive Manager to do that)
I'm actually on latest Stock Rom, but I can try later to make a dark version.
simone81 said:
Hi, do you have a version Black themed? or can you tell me how did you themed it? did you used android studio or others way? Thanks
Click to expand...
Click to collapse
zitronenmelissa said:
I use apktool:
extract FM2 and framework-res.apk from Your rom
apktool if framework-res.apk
apktool d FM2.apk
Important files are /res/values/color.xml and some in /res/drawable
Color is written in hex color code with transparency ahead: #ff000000 is black #ffffffff is white for example.
You can decompile my file and for Your needs it will be enough to edit /res/values/color.xml
Recompile: apktool b FM2 and don't forget to put Original META-INF folder and AndroidManifest.xml back in new compiled FM2.apk in /dist folder (I use 7zip Archive Manager to do that)
I'm actually on latest Stock Rom, but I can try later to make a dark version.
Click to expand...
Click to collapse
Thanks so much for the explanation!!! i can try following your guide..... but im not sure to be able to modify color because im not good with the steps you wrote... By the way, if you can make a black version i would be very happy :fingers-crossed:
simone81 said:
Thanks so much for the explanation!!! i can try following your guide..... but im not sure to be able to modify color because im not good with the steps you wrote... By the way, if you can make a black version i would be very happy :fingers-crossed:
Click to expand...
Click to collapse
I can try. What about ... whats blue will be grey, whats grey will be black?
zitronenmelissa said:
I can try. What about ... whats blue will be grey, whats grey will be black?
Click to expand...
Click to collapse
Wow, It is perfect!! I like your color idea!!
I did try to follow your way to change the color file with notepad .... but i think i did a mistake when i have to zip together with Androidmanifest and the folder META-INF ( which have inside 3 files: CERT.RSA , CERT.FS, MANIFEST.MF) instead of your version That have a folder META-INF --> com-->google-->android-->and here 2 files : updater-script and update-binary).
Then i miss also the folder named system--> app -->FM2 with apk inside. <--- But i think this folders i have to create.
I made a try but doesnt work.... and i see my radio.zip ( i made so many try) is too small compared with yours.... ( more than 1mb, mine about 650kb)
So im sure i did miss some step or i did something wrong....
Thanks again to helping me :fingers-crossed:
View attachment RadioFm.zip
simone81 said:
Wow, It is perfect!! I like your color idea!!
I did try to follow your way to change the color file with notepad .... but i think i did a mistake when i have to zip together with Androidmanifest and the folder META-INF ( which have inside 3 files: CERT.RSA , CERT.FS, MANIFEST.MF) instead of your version That have a folder META-INF --> com-->google-->android-->and here 2 files : updater-script and update-binary).
Then i miss also the folder named system--> app -->FM2 with apk inside. <--- But i think this folders i have to create.
I made a try but doesnt work.... and i see my radio.zip ( i made so many try) is too small compared with yours.... ( more than 1mb, mine about 650kb)
So im sure i did miss some step or i did something wrong....
Thanks again to helping me :fingers-crossed:
View attachment 4779785
View attachment 4779786
Click to expand...
Click to collapse
The files from /original in decompiled FM2 folder have to be added to the new FM2.apk in /dist folder. You can open .apk files with 7zip too, because it's an advanced .zip file. The META-INF folder and the AndroidManifest.xml are necessary files in .apks.
The META-INF folder in flashing .zip files contains flashing script and binary to flash to correct directory for example.
You can use my FMRadio-themed.zip file as a template, if You want to. Just replace the FM2.apk in /system/FM2 folder.
I made a dark version, but it's a blind edition, could not test it on stock ROM, but it should work.
Structure of the .zip file for flashing:
/META-INF/com/google/android/update-binary
/META-INF/com/google/android/updater-script
/system/app/FM2/FM2.apk
Structure of FM2.apk:
/META-INF/CERT.RSA
/META-INF/CERT.SF
/META-INF/MANIFEST.MF
/res/...
AndroidManifest.xml
classes.dex
resources.arsc
Good luck
zitronenmelissa said:
The files from /original in decompiled FM2 folder have to be added to the new FM2.apk in /dist folder. You can open .apk files with 7zip too, because it's an advanced .zip file. The META-INF folder and the AndroidManifest.xml are necessary files in .apks.
The META-INF folder in flashing .zip files contains flashing script and binary to flash to correct directory for example.
You can use my FMRadio-themed.zip file as a template, if You want to. Just replace the FM2.apk in /system/FM2 folder.
I made a dark version, but it's a blind edition, could not test it on stock ROM, but it should work.
Structure of the .zip file for flashing:
/META-INF/com/google/android/update-binary
/META-INF/com/google/android/updater-script
/system/app/FM2/FM2.apk
Structure of FM2.apk:
/META-INF/CERT.RSA
/META-INF/CERT.SF
/META-INF/MANIFEST.MF
/res/...
AndroidManifest.xml
classes.dex
resources.arsc
Good luck
Click to expand...
Click to collapse
Thanks so much zitronenmelissa, i really appreciate your time for helping me, even if i could not see any changes. I tryed to flash using twrp, with original app, but no luck, then i tried hibernate ( deactivating) the original radio app and installing the zip, but nothing changed. In the end i uninstalled the original radio app and flash again your .zip but once again no luck.
Its strange, because im on Pixel experience now but before i was on RR Rom....
At least you helped me learning a little more about this apktool.
Thanks
simone81 said:
Thanks so much zitronenmelissa, i really appreciate your time for helping me, even if i could not see any changes. I tryed to flash using twrp, with original app, but no luck, then i tried hibernate ( deactivating) the original radio app and installing the zip, but nothing changed. In the end i uninstalled the original radio app and flash again your .zip but once again no luck.
Its strange, because im on Pixel experience now but before i was on RR Rom....
At least you helped me learning a little more about this apktool.
Thanks
Click to expand...
Click to collapse
Did You mount System first via twrp? In twrp ---> Mount ---> check on System? Otherwise it won't install to system ....
zitronenmelissa said:
Did You mount System first via twrp? In twrp ---> Mount ---> check on System? Otherwise it won't install to system ....
Click to expand...
Click to collapse
No, i didnt know. Thats why it does not work. But now IT WORKS :victory::victory::victory:
Thanks really so much, i like the color :good:
Would You please make screenshots for the thread how it looks? I couldn't test it on stock Rom ...
zitronenmelissa said:
Would You please make screenshots for the thread how it looks? I couldn't test it on stock Rom ...
Click to expand...
Click to collapse
Sure, I can also post "my version" where i inverted your color theme.... the rds info are pretty easy to be readed . ( if you want i can post my .zip file)
This is your version:
This is my version:
I was wondering if were possible to change the white text radio info, into for example green.... I coded the color.xml and the station_info.xml, but i got an error if i only change the string white into green :
TextView android:textSize="16.0sp" android:textStyle="bold" android:textColor="@android:color/green" <-- instead of white
simone81 said:
Sure, I can also post "my version" where i inverted your color theme.... the rds info are pretty easy to be readed . ( if you want i can post my .zip file)
This is your version:
This is my version:
I was wondering if were possible to change the white text radio info, into for example green.... I coded the color.xml and the station_info.xml, but i got an error if i only change the string white into green :
TextView android:textSize="16.0sp" android:textStyle="bold" android:textColor="@android:color/green" <-- instead of white
Click to expand...
Click to collapse
WOW :good: I like Your ideas, very good. Thank You for the screenshots
You can also use every hex8 color:
android:textColor="#ff00ff00" is green
Here You can generate Your color codes:
http://www.colorscodes.com/color-code-hex/00ff00
Works on LG G2 D802 with LineageOS 18.1? Thk
When I installed it through TWRP on my Samsung Galaxy S N7000 with Lineage OS 16 - there is no any icon for this radio, but in system\system I see FM2.apk
Why?

Categories

Resources