I am modifing my framework-res.apk,all works,but the market crash every time why?
this is development thread not Q & A ask in the Q & A it is a sticky or ask in the general CLOSED
You probably didn't do it correctly. That's my guess.
I open the apk as a zip then i put the modified images into apk,then i put it in system/framework,whats wrong?
Did you resize images to the correct size?
Do u replace .9.png files also? If so u need to decompile the apk first, then redo the .9.png using draw9patch from sdk and then recompile the apk file. Otherwise additional info in those .9.png files get lost, they are a 1px border with scaling info, so don't just resize because scaling down 1px is not a good idea...
Example: i take the original "stat_sys_wifi_signal_1.png" and turn it blue with photoshop then i put in framework-res.apk,the png image is resised...
U changed "background.png" .. It s in d folder (ldpi or mdpi) with d default wallpaper... I was portin a theme.. Nd havin this prob & finally figure out this..
*assumin u placed d star pngs correctly*
Sent from my GT-I5800 using Tapatalk
Related
I have successfully used the UOT Kitchen to modify the icons and fonts, etc. but I now want to add the "green if connected to Google" icons which I didn't see in the kitchen.
Can someone explain how this can be done? Can I just modify the framework-res.apk or is this another kind of tweak or fix??
Thanks
PS: I can't see any themes around anymore that offer this (I am on WB v5 + DL custom kernel at the moment)
If you are on stock rom you can use Achotjan flashable zip in android development section (i can't post here the link cause i'm on mobile but you can easily find it watching on achotjan threads on his profile)..otherwise if you are on a different rom..you can copy and replace icon.png images from achotjan framework to your! good luck
Sent from my X10i using XDA App
djkekko89 said:
If you are on stock rom you can use Achotjan flashable zip in android development section (i can't post here the link cause i'm on mobile but you can easily find it watching on achotjan threads on his profile)..otherwise if you are on a different rom..you can copy and replace icon.png images from achotjan framework to your! good luck
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Thanks, I don't want a new ROM - just the green icons. I currently have green icons but not the ones that only go green when you are connected to Google services.
I am looking for JUST that part only.
Galaxea said:
Thanks, I don't want a new ROM - just the green icons. I currently have green icons but not the ones that only go green when you are connected to Google services.
I am looking for JUST that part only.
Click to expand...
Click to collapse
Yes mate..infact..achotjan has released a flashable addon of systemUI.apk with green icons when connect to google..not a whole rom..here you are..
http://forum.xda-developers.com/showthread.php?t=1192469
Edit: sorry..in the first reply i wrote that it is framework related..my mistake..it is systemUI related!
Sent from my X10i using XDA App
djkekko89 said:
Yes mate..infact..achotjan has released a flashable addon of systemUI.apk with green icons when connect to google..not a whole rom..here you are..
http://forum.xda-developers.com/showthread.php?t=1192469
Sent from my X10i using XDA App
Click to expand...
Click to collapse
I have used those once before, but the files don't exist on those links anymore. I would like a dev to explain if this is something that we can do ourselves, or if it is some complicated hack.....
Galaxea said:
I have used those once before, but the files don't exist on those links anymore. I would like a dev to explain if this is something that we can do ourselves, or if it is some complicated hack.....
Click to expand...
Click to collapse
Damn..you are right..link was deleted!! If you want tomorrow i can upload it for you!! let me know if you want achotjan file or if you want to try yourself!
Sent from my X10i using XDA App
I want it. Please upload if its not too much trouble... Btw i'm running wolfs tw v5. Will it work on this ROM?
Sent from my X10i using XDA App
I would like to be able to do it myself as I already have a customised framework and systemUI.apk.
If someone could explain the process that would be great.
you just need to replace the correct icons in the framework-res.apk and systemui.apk then replace them on your phone.
The way i did it was copy .apk file to computer, change extension to .rar, open it in winrar (not extract), extract the hdpi-drawable folder then replace icons, copy that hdpi-drawable folder with the new icons back into winrar and it will ask you to repack the .rar, after that change the extension back to .apk and copy it to the correct folder. The framework-res.apk one is ok to copy back but if you do the systemui.apk one you will get endless fc until you can restart your phone so i think you have to install it through flashtool?
I think that you have to replace the images without extract the entire apk otherwise you need to resign it when you finish! Anyway..framework is not involved..wifi and signal icons are sustemUI related only..i will upload it in few hours..then you can watch inside for the green icons and do it yourself! Pay attention..cause if you do something wrong probably the phone won't boot up or gives fc!
Cheers
Sent from my X10i using XDA App
Green Icons
Here you have the flashable file with Achotjan SystemUI (green icons)..a big thanks to him for sharing this file some mounth ago!
djkekko89 said:
Here you have the flashable file with Achotjan SystemUI (green icons)..a big thanks to him for sharing this file some mounth ago!
Click to expand...
Click to collapse
Thanks for the file. I am able to change the icons using the kitchen, but I need to understand how just replacing the icons gets them to change colour when connected to Google?? Is the code already there and the icons are all the same colour so we just don't see it with the stock icons?
I have made other changes to my SystemUI so I don't want to lose those changes - that's why I want to be able to change my own files.
Is it really just a case of changing the icons to get the desired effect? Is it some specific icons that are needed, or any icons? *still confused*
Galaxea said:
Thanks for the file. I am able to change the icons using the kitchen, but I need to understand how just replacing the icons gets them to change colour when connected to Google?? Is the code already there and the icons are all the same colour so we just don't see it with the stock icons?
I have made other changes to my SystemUI so I don't want to lose those changes - that's why I want to be able to change my own files.
Is it really just a case of changing the icons to get the desired effect? Is it some specific icons that are needed, or any icons? *still confused*
Click to expand...
Click to collapse
Mate..open the file that i post..inside you can find systemUI.apk..opne it with winrar and extract drawable-hdpi folder to your desktop..you will see all your icons..the images named "....fully.png" are colored green!! You must replace your current icon in your custom SystemUi with this ones!! Is it more clear now?
Galaxea said:
Thanks for the file. I am able to change the icons using the kitchen, but I need to understand how just replacing the icons gets them to change colour when connected to Google?? Is the code already there and the icons are all the same colour so we just don't see it with the stock icons?
I have made other changes to my SystemUI so I don't want to lose those changes - that's why I want to be able to change my own files.
Is it really just a case of changing the icons to get the desired effect? Is it some specific icons that are needed, or any icons? *still confused*
Click to expand...
Click to collapse
do you mean how the data icon and the signal bars change from green to white/grey?? cause if so then yes just changing the .pngs will be fine cause i did it with my own systemui/framework.
Thanks all. That's what I wanted to know.
hello,
i am starting to make themes but can anyone tell what is actually framework-res.apk and work of it is it neccesary to change it
??
thanks
framework = framework
res = resource
forum search is your friend.
An apk is just a container, compressed. You can change the apk to zip, and open the file. The framework-res.apk file contains many of the icon files needed for themes. Depending on the android version, and skin version there are more files you need to alter to complete a theme. For example on a gingerbread TouchWiz device you also need to change icons in twframework-res.apk and systemui.apk to finish the theme.
Sent from my Galaxy S II (i777)
Hello everybody, i got sick of my battery icon and wanted a change, but i am with UBKPD (2.3.6. for Argentina and some other countries of Latinamerica) and couldn't use any other theme or part of it.
Thanks to the thread of umarian and other threads all over XDA and HTC Manía (this in spanish) i figure out how to change my battery icon.
I attach diferent .rar files. In there you will find a folder with icons AND the file: framework-res.apk of UBKPD according to the respective icon.
Of course, you can change icons of your Firmware whatever it is (using this icons or those you want) following the steps of this thread: http://forum.xda-developers.com/showthread.php?t=1431048
The icons i've used are those provided by umarian in that thread, some others that i picked up from other threads with mods for other firmwares. None are creations of mine. SO, IF YOU LIKE THIS, THANKS HIM FOR CIRCLE BATTERY ICONS.
If you have UBKPD firmware or you want to trie if it's usefull in yours, follow this steps (you would need to be root and to have a file manager with root permissions):
a.) make a backup, just in case. We are going to touch system files!!
b.) copy the file framework-res.apk of the folder with icons you want;
c.) copy it to the folder: system in your phone, there, change permissions to rw-, r--, r--;
d) move the file framework-res.apk from system to system/framework
d) reboot and it's done.
Advice: However you got all the icons to go 1% to 1%, i still couldn't make the changes to apply the icon to work from 1% to 1%.
Please, also, if anyone have a claim on the battery icon, let me know.
Since most users are on custom themes, ICS to be precise, replacing framework-res will result in loss of the theme.
So if you can share the png files then it will be great since it only involves drag n drop using 7zip.
Or you can explain in OP to copy the png from any of your attachment and replacing them in the one's current framework-res
Sent from my GT-I9003 using xda premium
exctngdude said:
Since most users are on custom themes, ICS to be precise, replacing framework-res will result in loss of the theme.
So if you can share the png files then it will be great since it only involves drag n drop using 7zip.
Or you can explain in OP to copy the png from any of your attachment and replacing them in the one's current framework-res
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
Thanks. My explanation seems it isn't good. Inside the folder I uploaded are the png files plus the framework file. If someone wants to use the png files there are they, separate from the framework file.
On the other hand, in the link I let is the explanation on how can port the png files (icons) to the firmware they want. However, I don't know if this procedure works with ice cream sandwich. It works 100% in ginger .
Uan_ar said:
Thanks. My explanation seems it isn't good. Inside the folder I uploaded are the png files plus the framework file. If someone wants to use the png files there are they, separate from the framework file.
On the other hand, in the link I let is the explanation on how can port the png files (icons) to the firmware they want. However, I don't know if this procedure works with ice cream sandwich. It works 100% in ginger .
Click to expand...
Click to collapse
OK. Cool. I didn't download the attachments so didn't know you had explained the stuff inside them.
Sent from my GT-I9003 using xda premium
Hi guys, after getting so many requests on my Sweet ROM thread for this icons or that icons I thought I would show you the easiest way so that you can change your own.
Please note this guide is based on Windows operating system
You will need:
A computer with Windows
7zip (free program available HERE)
systemUI.apk from your current rom
systemUI.apk from rom (or mod) with icons you want
some brains
1. Extract systemUI.apk that you are using in your rom and place it where you want it on your pc.
Right click on the systemUI.apk and select 7zip/Open archive. This open up the apk and you can now see the folders inside.
You now need to open res folder, locate drawable-xhdpi folder and drag this out to your pc.
Once it has copied over open the new drawable-xhdpi folder on your pc and here you will find a heap of png images.
Download this file and extract the folder from it. Here you will find all the Status Bar Icon images. So looking through them you will recognise battery, wifi, bluetooth etc images that show on your status bar. these are the images you need to change for different themes, eg S4 white icons etc.
2. Now open the systemUI.apk with the images you wish to add and copy out the drawable-xhdpi folder.
Now in this folder locate & copy the images you want over to the drawable-xhdpi folder you created in Step 1.
3. Once you have copied all the new images you need to re-open the archive of your rom systemUI.apk from Step 1. with 7zip.
Now open res folder and delete the drawable-xhdpi folder from in the archive.
4. Drag your new drawable-xhdpi folder (with your new images inside) into the 7zip archive.
Once this has been copied over to you 7zip archive use the green arrow (under the Add button) to go back up a level until you are at systemUI.apk. Now with it highlighted use the "Test" button to make sure it is ok.
Now we can close 7zip and you should have your systemUI with new status bar icons.
5. Make a backup of your rom (just in case) and push your new systemUI.apk back to your phone either manually with Root Explorer (or similar file manager) and set permissions rw--r--r-- or flash it from cwm.
For a flashable zip please see majdinj's flashable zip how to HERE
I hope this quick guide can help some of you learn to make your own simple icon mods.
Some examples of different Status Bar themes you can make this way
Crikey! Great guide!
Sent from my GT-N7000 using Tapatalk 2
Simple and useful. Thanks shayno.
Sent from my GT-N7000 using Tapatalk HD
Easy and simple guide..
Thank you sir..
Sent from my GT-N7000 using xda premium
bow to your master :good:
i think VR theme flasher is much more useful n easiest way for just changing icons...
can just do it on the phone n flash it by 1step...
sorry for disturbing ur OP..
just my suggestion... have a nice day n thanks for sharing..
alvinhaw said:
i think VR theme flasher is much more useful n easiest way for just changing icons...
can just do it on the phone n flash it by 1step...
sorry for disturbing ur OP..
just my suggestion... have a nice day n thanks for sharing..
Click to expand...
Click to collapse
Sure it is but what do you learn?
not-i said:
Sure it is but what do you learn?
Click to expand...
Click to collapse
?for just changing icon ?even if u don't have a VR theme flasher also can do it just on the
phone is actually the same method is only using phone or a pc... just drag n drop using X-plore
open apk as zip n zip back as apk...
Thanks for advise...
need some brains as u mention on ur OP..
Useful mod with simple teaching. Thank you,Fine, Master, is there anyway to position the icons.
( I shall start collecting systemui)
Sent from my GT-N7000 using xda premium
dsmas said:
Useful mod with simple teaching. Thank you,Fine, Master, is there anyway to position the icons.
( I shall start collecting systemui)
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
You mean like center clock etc? That takes xml or smali edits which require more knowledge and to decompile the apk. There are other threads on xda that will help you with that
Sent from my Sweet ROM powered GT-N7100
You mean more brains.
Sent from my GT-N7000 using xda premium
Can I just delete an icon say the battery icon in my res folder?
Sent from my GT-N7000 using xda app-developers app
Code:
- Xperia L
- Rooted
- z2 framework or revolution HD installed
- Mobile Apktool - http://forum.xda-developers.com/showthread.php?t=2659302
- Base theme - https://docs.google.com/file/d/0BzOOJYPQkmXiU1oyNGdlZnN6MWc/edit?usp=docslist_api
- editing png and hex code - https://play.google.com/store/apps/details?_e_pi_=7%2CPAGE_ID10%2C4769775609
- hex code - http://repo.xposed.info/module/com.mohammadag.colouredstatusbar
First download ur Xperia theme which u want to port for download u can use playstore or many themes can get on xda cross device section
So let's start
Code:
1- after downloading base theme
2- now decompile base theme system.apk with apktool
3- than u will get decompile folder open it
4 - and no go to values/color.xml and see the ss
[IMG]http://forum.xda-developers.com/picture.php?albumid=11313&pictureid=46153[/IMG]
1)the top one is accent color it should be always of 8 u can find it in tinted statusbar and edit the codes
2)the second line is approx background mine is white color If u want png than do this delete #ffffffff and add [user=3944923]@drawab[/user]le/apptray_drawer_background and add same png apptray_drawer_background.9.png in xxhdpi folder
3)it is the drawer text in mine it is dark green color u can change to urs for hex code use tinted statusbar
- save that file after editing
- now open values/drawables.xml and see the ss
[IMG]http://forum.xda-developers.com/picture.php?albumid=11313&pictureid=46154[/IMG]
1)the first one should be same as in colors.xml
2) it's statusbar background I have kept default full transparent and if u want color u can add color also
- now save and exit and open values/strings.xml
<string name="semc_theme_title">Tri Flat</string>
change triflat to ur theme name
- now save and exit
- Open androidmainfest.xml search this
com.sonyericsson.TriFlat
and change triflat to ur theme name
- now recompile the apk
- Open ur Xperia theme u want to port extract it's asset folder and res/xxhdpi
- and open the newly recompiled apk with winrar or X-plore
- now in assets/com.sonyericsson.home/res/copy all folders to newly decompiled res folder
- now from assets/com.android.systemui/res/xxhdpi
take extract this two pngs
navigation_bar_transparent_background
and navigation_bar_transparent_background_land
rename them to
navigation_bar_opaque_background
navigation_bar_opaque_background
-last step copying wallpapers open ur Xperia theme u want to port in res/xxhdpi extract it and resize
semc_theme_wallpaper -480*854
semc_theme_lockscreen_wallpaper - 960*854
no need for semc_theme_preview and copy this three files in newly recompiled theme res/xhdpi folder
- half complete now go to second post
-now decompile base hktheme or xtheme.apk
-go to decompiled folder and delete values/public.xml
-now edit androidmainfest.xml
search saquib.themer.tri change tri to ur theme name
and than search for
android:label="TriflAt" and change triflat to ur name
- than recompile it(if error not a png than read png name and go to it directory and change it to jpg)
-now open Xperia theme u want to port extract it assets
-now open newly recompiled apk with winrar
- from assets/android.zip
open it and copy full res/xxhdpi folder to new recompiled res folder
- note u have to check in assets
if it has semc_bg.png and semc_bg_bright.png than u have to change it to semc_bg_dark_tile.png and semc_bg_light_tile.png
-now open assets/com.android.systemui and copy xxhdpi folder to newly decompiled apk res folder
- and last yash_opaque_status.png change this to ur theme color as it looks in official theme ss
like triflat orange,woody brown so they are different
-now sign the apk
-and install base hktheme or xtheme.apk normally
-and push base theme system.apk in system/app and reboot and apply and enjoy
reserved
by seeing this u might think how it's one minute but once u port 2 3 themes u will get very easy
One minute ha?
For me this needs 1 hour xD
Anyway great guide..will try it soon
Sent from my C2105 using XDA Premium 4 mobile app
Sparksys said:
One minute ha?
For me this needs 1 hour xD
Anyway great guide..will try it soon
Sent from my C2105 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
read my fourth comment for first time any guide u read will look hard once u do 2 3 times its lot easy
yash989 said:
read my fourth comment for first time any guide u read will look hard once u do 2 3 times its lot easy
Click to expand...
Click to collapse
Ya after doing this regularly It will take 1min only.... Thnx for this yash will be porting themes for ur rom...!!!
thanks yash bro
perfect...
hey bro it worked prefectly....
And i was able to port in the first try...thanks bro..
But i have a thing to ask.....
How to add other files from assets..for example....settings,calendar,calculator etc.
download link