Adding icons to framework-res results in wrong icons displayed in status bar. - Android Software/Hacking General [Developers Only]

Hi,
I'm trying to add some additional icons to framework-res.apk, not by adding them to the zipped version, but by puttng them in the correct directory and repacking framework-res.apk using aapt. The problem is that after I flash this update the phone boots correctly, but the icons in the status bar display incorrectly. The wrong icons are displayed, for instance the HSDPA icon is displayed as a battery 20% icon. My guess is this problem has to do with services.jar expecting the file to be zip aligned. Is there any solution to this?

Related

Made notification bar transparent, ran into issues on bootup...

I figured out how to make my notification bar transparent, as well as the drag-down bar and status header bar. did it by pulling framework-res.apk, opened with 7-zip, edited the files from within 7-zip (didnt extract them at all), saved the changes, closed up and pushed the framework back to the phone. upon bootup however, once i unlocked the phone i got blasted with a stampede of FCs, all standard google apps and services that run on startup. even after pushing the stock, unchanged framework back, FCs continue. anyone know whats happening?
I think you need to edit the services.Jar file as well
mb02 said:
I figured out how to make my notification bar transparent, as well as the drag-down bar and status header bar. did it by pulling framework-res.apk, opened with 7-zip, edited the files from within 7-zip (didnt extract them at all), saved the changes, closed up and pushed the framework back to the phone. upon bootup however, once i unlocked the phone i got blasted with a stampede of FCs, all standard google apps and services that run on startup. even after pushing the stock, unchanged framework back, FCs continue. anyone know whats happening?
Click to expand...
Click to collapse
try a fix permissions maybe?
what rom?
im on the stock 8/1 2.2 leak. i figured out a temporary fix, i just modified the files in the smooth sense icons update zip since im using that on my phone, and did the update in recovery that way. it worked, but the only mod that worked was to the notification bar itself, not the drop-down bar or the header, so a services.jar edit is necessary to. which sucks because i dont know how to edit jar files or even navigate them to find what i need to edit lol. im gonna try to combine the smooth icons framework with the services.jar from the 50% shade backgroung update.zip and see how that runs. ill at least have a transparent status background/notification bar. i'll just have to learn java language and figure out the .jar setups on these phones myself and try editing then. i'll get back to you guys in a month
Have you checked out http://forum.xda-developers.com/showthread.php?t=744256 , which includes which lines to modify in the services.jar as well as the file to make transparent for the drop down?
Need to merge these two into one...
Heck - I'm very tempt to give it a try - i want mostly transparent top bar with 'frosted' icons - basically so if using default launcher pro, the top and bottom of the home screen match.
Plus, with that setup, it will open up a lot of the screen real estate.
bisbers said:
Have you checked out http://forum.xda-developers.com/showthread.php?t=744256 , which includes which lines to modify in the services.jar as well as the file to make transparent for the drop down?
Need to merge these two into one...
Heck - I'm very tempt to give it a try - i want mostly transparent top bar with 'frosted' icons - basically so if using default launcher pro, the top and bottom of the home screen match.
Plus, with that setup, it will open up a lot of the screen real estate.
Click to expand...
Click to collapse
yea i have the combined smooth sense icons and 50% shaded status background. i modded it to have a transparent top status bar, but the actual pull down bar itself (the one that materializes when you drag down your status bar) is services.jar related, im guessing, because i edited that in the framework and it didnt affect it. same with the status header, where it says Verizon Wireless.
after modding the status bar though, i was reminded that the individual icons had there own blackish square backgrounds that need to be eliminated, so im gonna be working on those hopefully today (gonna take FOREVER). when all is finished i'll post up screenshots and find out what everyone thinks, then possibly post up a zip of my own (with permission from jercick who did the smooth icons and whoever did the 50% shade) containing these mods.

[Q] How to change wifi/data signal and battery icon colors?

Is there a way to change the colors of the wifi/data, phone signal and battery icons in the status bar? I'm currently using weapon 2.4, so I'm rooted and was wondering if it might be a simple file edit to do so. If there is an app that lets you do that, I haven't found it yet but I would love to know how they work so I can potentially assign each icon a different custom color. Thanks in advance for any help.
--UPDATE--
ok so from what i've read so far it looks like i'm going to be editing some lines in the classes.dex which i extracted from the services.jar file in the framework folder. when I open up the classes.dex with baksmali i cannot find the \com\android\server\status\StatusBarIcon.smali file .. not just in that folder but anywhere within the expanded classes.dex archive. Is StatusBarIcon.smali where I'll be able to change the color of the icons in the notification bar or am I completely off track here?
You want to change the color of the icons? They are png files in the SystemUI.apk, so either pull them out and edit them in some photo software, find icons you like and add them, use a theme, or use UOT Kitchen.
do you have the "Theme Chooser" app on your phone?
If so, you might want to check out some themes and install one of those
or use Metamorph or a zip application to make your own
and remember, always backup your rom
Just use NinjaMorph, and edit SystemUI.apk... If you're looking to make them green, check my thread in the Themes section.
Sent from my LG-P999 using xda premium

Status bar icons

Is there any way to change status car icons besides metamorph? Metamorph sometimes convert back to stock icon is there a permanent way?
You should replace the original SystemUI apk in system/app (the location for most device)
if u have a root browser, go to system/app, find SystemUI.apk and view it , in the res folder u can find the status bar icons in the folders inside the res one
Search systemUI.apk from here, the XDA
there should be one that can fit your needs

Transparent status bar

Is there a mod or a way to turn the sense 6 status bar fully transparent like AOSP KitKat, unlike its current half transparency. Please do not suggest exposed, I'd rather edit system files.
Sent from my HTC One M8
Status bar (and others....)
If you decompile SystemUI.apk (found in /system/priv-app), look for status_background.9.png in res/xxhdpi and edit the image to make fully transparent. The xxhdpi folder also has the images for all the status bar and quick toggle icons if you should choose to change those as well...
As a note - I did this on my work computer (without actually decompiling the apk) by extracting SystemUI.apk to my dropbox and then simply renaming it to SystemUI.zip and decompressing it with 7-zip. After I made the changes I wanted (signal icons, wifi, nav bar bg, and some others), I re-zipped the contents of SystemUI (not the folder itself as it will make a redundant directory in the zip file and break your SystemUI), I renamed back to SystemUI.apk and placed the new SystemUI.apk in the appropriate directory, making sure permissions are set correct. Then reboot....
This worked for me... it's a bit tedious, but I get bored at work sometimes... lolz.

Mod Russian NH4 (SER) Color SystemUi + SecSettings

Only NH4 KitKat !!!
Download X-plore the play store.
Set xplore full superuser from the setting. See the picture.
Select the four apk files and overwrite the original (root / system / priv_app) folder.
Then get an error but this is normal.
Restart manually or remove the battery to.
If you want to replace the sim icons you can choose the right one for you. Resize 94x94 (Image Easy Resizer from play store). Then rename the file extension .qmg
Open Xplore, set the apk open zip see the picture. Open systemUi.apk (res/drawable_xhdpi) Select the two .qmg and overwrite the original.
Sorry the bad english.
G7102 NH4 Mod
Mod
Ver 3.0
Coming soon! Post #6
whats the name of file manager ?
nar67 said:
whats the name of file manager ?
Click to expand...
Click to collapse
Xplore
Video
http://youtu.be/V0eSmKaRQzU
Nh4 official languages
http://youtu.be/ae07oczebKg
Ver 3.0
Wanam Xposed must be accompanied.
http://data.hu/get/8099911/Theme.rar
What is included!
SecSetting
All new color icons
New header backgrund and icons
SecPhone
New normal dialing and one-handed
New menu icons
New header backgrund and icons
SecContact
New header backgrund and icons
New menu icons
Further changes expected!!! I'm waiting for ideas.
SystemUi
New quicksettings icons
New quicksettings menu icons
Hidden status bar sim icon
New wifi signal indicator
New network signal indicator
New icons for internet connect type
New icon from alarm,bluetooth,smartstay,gps...
Transparent sim exchange
New sim1 and sim2 icon, exchangeable at will
The icons can be transferred to other roms. All apk drawable,drawable-hdpi,drawable-xhdpi,drawable-sw360hdpi and drawable-sw360xhdpi folder. But only copied the files QMG to other roms apk
downloAD link
henrik0705 said:
What is included!
SecSetting
All new color icons
New header backgrund and icons
SecPhone
New normal dialing and one-handed
New menu icons
New header backgrund and icons
SecContact
New header backgrund and icons
New menu icons
Further changes expected!!! I'm waiting for ideas.
SystemUi
New quicksettings icons
New quicksettings menu icons
Hidden status bar sim icon
New wifi signal indicator
New network signal indicator
New icons for internet connect type
New icon from alarm,bluetooth,smartstay,gps...
Transparent sim exchange
New sim1 and sim2 icon, exchangeable at will
The icons can be transferred to other roms. All apk drawable,drawable-hdpi,drawable-xhdpi,drawable-sw360hdpi and drawable-sw360xhdpi folder. But only copied the files QMG to other roms apk
Click to expand...
Click to collapse
update download link plis....

Categories

Resources