Remove Battery Icon (AOSP) - Hero, G2 Touch Themes and Apps

Hi, does anyone know of the way or have a patch to remove the battery icon from the taskbar?

not the best way but you could change alll the stat_sys_battery_xxx pngs in framewrk to transparent. it will leave a gap in the notification bar though.

Yeah, I thought of that or possibly just putting an icon of something else there, but looking for a way of doing it right. Thanks though

Okay, I know now you need to edit the 'services.jar' within the framework folder, but just need to find the right .smali file and then the right line of code.
This guy has done it for the CDMA Hero - http://forum.xda-developers.com/showthread.php?t=691250&highlight=stock+aosp
Does any experienced guy out there know how to use 'diff' on linux to see what the differences would be between his 'services.jar' and say one from the stock AOSP GSM?

Related

Remap Rosie

Hi there,
I have been looking into changing the nav bar buttons for Rosie, like what this guy has done - http://forum.xda-developers.com/showthread.php?t=702298
I have looked into his files and asked but got no answer as yet. I know Stickman has also done this for SenseHero B4 and onwards, but can't reach him either at the mo.
Does anyone know what lines of code need to be changed to get the different apps mapped to the buttons on the nav bar?
I have decompiled all the xml files and the classes.dex file in Rosie.apk but can't see what to change. I personally want to change the right hand button to something else, for example "Browser".
I'm pretty sure it's somewhere in the classes.dex file.
Any help would be much appreciated
Great idea i miss the Expressio bar as well

[Q] ?s about themeing

I really want to theme my phone, is there any tips to make it easyier
an also theres no meny png files that im not sure what changes what, is there a guide of any sort for that or anything.
I got editing images down but im still gettin lost on changing things
an out of curioisy is there a good themer out there that would be willing to work with me personally so im not gettin mixed results
here ya go..this should get you a start
http://www.google.com/cse?q=how+to+...ub-2900107662879704:fs7umqefhnf&ie=ISO-8859-1
Great resource here
im not sure if im wording this right, but to theme an app u open that apps apk. to theme a widget u open that widgets apk. right?
So what all does framwork control?
still tring to get it togather what png's edit what on my phone
Essentially yes. Most of the app's .png's will be in the respective .apk, although if it's a Sense ROM then a lot is stored in the 'com.htc.resources.apk'
The 'framework-res.apk' holds all the files for like the notification area, the pull down menu, status icons, buttons, tick boxes, radio buttons etc...
The best way to familiarise yourself with it all is just to have a look through the image folders and see what you see.
not much luck, im gettin lost, so ill be back in a cuple days let u knw if i got it yet, if i cant come up with it, ill just make a list of things i want done an see where it goes.
Are you on a Mac or PC?
Keep in mind, you have to sign it to get it to install if you unpack it. After weeks of failed signing attempts (I still cant get them to sign) I found a way around this though...just don't unpack it Use 7zip on PC or I am on a Mac so I use Springy. Replace what you want and you are good to go.
Let me know if you need more help with this method. It isn't the way everyone else does things, but it works for editing things and making it what you want.
@reanger91878 I was just looking into start some theming and was trying to figure out if using a Mac put me at a disadvantage... but I guess since I found you I'll know who to ask if I run into a problem. So I guess I'm gonna get Springy and see what I can figure out. (I've never done this crap before).
:edit: boo it costs money, any free options? or will the non-licensed version work for me?
Alright
heres what i want done
I have NFX Sprint 2.31.651.7 STOCK Odex Update3.
Lock screen bar where its grey i want black
All screens under settings an phone options like device1 pic 1 want there its white to be black an the black letters white with a green boarder.
Device2 pic: want top an bottom where its grey to be black save with bookmark widget an calander app
Device3: white section black an the letter white
Device4: change all screens from white to black an white lettes an the grey buttons at the bottom to green same with clock, messages, music and photos
Device5: i want the ui buttons at the bottom like that but for it to be Phone in the middle app drawer on the left an add to home on the right
Invert all menus uder browser
so if some one would be willing to help with what xml an pic files i edit to do it, or some one helps me put it togather it would be awsome an id be very thankful
BuddahWolf01 said:
@reanger91878 I was just looking into start some theming and was trying to figure out if using a Mac put me at a disadvantage... but I guess since I found you I'll know who to ask if I run into a problem. So I guess I'm gonna get Springy and see what I can figure out. (I've never done this crap before).
:edit: boo it costs money, any free options? or will the non-licensed version work for me?
Click to expand...
Click to collapse
Using a Mac does not put you at a disadvantage per se...kind of, but there are workarounds
You don't have to use Springy, that is just what I use. The key is to find an Mac application that can open up a .zip file without extracting it, because once you extract, you need to resign (no big deal really, but for whatever reason my computer won't properly sign). I think the free version of Springy lets you open up a ROM of a certain size? Can't remember...but if you are editing a theme, they should open, because most are under 15MB. You can also just search around for other Mac apps that handle zip files and find one that does not extract. Let me know what you come up with and what you need help with...I gained much knowledge here, and will gladly pass on what I have gleaned.
DubsideWICKED said:
heres what i want done
I have NFX Sprint 2.31.651.7 STOCK Odex Update3.
Lock screen bar where its grey i want black
All screens under settings an phone options like device1 pic 1 want there its white to be black an the black letters white with a green boarder.
Device2 pic: want top an bottom where its grey to be black save with bookmark widget an calander app
Device3: white section black an the letter white
Device4: change all screens from white to black an white lettes an the grey buttons at the bottom to green same with clock, messages, music and photos
Device5: i want the ui buttons at the bottom like that but for it to be Phone in the middle app drawer on the left an add to home on the right
Invert all menus uder browser
so if some one would be willing to help with what xml an pic files i edit to do it, or some one helps me put it togather it would be awsome an id be very thankful
Click to expand...
Click to collapse
Big tasks Don't know if anyone will actually be able to do it for you, but check the resources above to get an idea where to start. It's the whole "give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime" idea.
Open up your ROM and check the framework-res.apk and see what you find...but you are looking to do more than just framework edits...
ranger61878 said:
Big tasks Don't know if anyone will actually be able to do it for you, but check the resources above to get an idea where to start. It's the whole "give a man a fish and he eats for a day, teach a man to fish and he eats for a lifetime" idea.
Open up your ROM and check the framework-res.apk and see what you find...but you are looking to do more than just framework edits...
Click to expand...
Click to collapse
Out of what all i want edited what is controlled by frame work an then would the rest be Apk files in the system app
my biggest problem is im not understanding what xml files change what an some of the pngs idk what they change
edit: I found post that said this, is that a pretty good way to descride it.?
app folder - This folder contains all of the apps that will be installed during an update or wipe. You will need to extract only the apks of the apps you wish to change the icon and graphics for.
-Launcher.apk - This file is in the app folder and contains the menu launcher tab, clock, google search widget, wallpapers and some other things.
framework - This folder contains framework-res.apk, this is where the bulk of your editing will take place.
When you open a apk you will see:
assets - This will contain images, sounds and other content used by the programs. Not always used!
META-INF - This contain the encryption data of the update.zip.
res - This folder contains all of the png and xml files. The xml files are used to format the UI, these can be used to change the locations of things on the screen. The xmls need to be unencrypted first. Depending on the apk there can be a bunch of folders under the res folder but we will only concentrate on the drawable ones.
-drawable - The png files in this folder are displayed wheather the keyboard is open or closed. The majority of the files are here.
-drawable-land - These are the files that will show when the keyboard is open. There won't be as many files in these folders. Most of the time the programmer will re-organize the layout with an xml file.
so basically everything is a picture that i want changed an xml files control text color an placement of where things are or what?,
im try my best to but thoes darn xml files are messing with me lol
To start, don't mess with the XML files. Just make changes to the PNG files. Once you get familiar with changing icons and status bar colors, then you can start messing with XML files. Let's say you want a different alarm icon.
Look in the DeskClock.apk under res/drawable-mdpi. You would find an icon(PNG) you want to substitute with, size it to the same size as ic_launcher_alarmclock.PNG, name it the same name and replace the original in the apk.
Use adb to push the apk back to your phone. I would then reboot and then enjoy your new icon.
Some icons will be in drawable-mdpi and some just in drawable. No need to change hdpi on our phones.
The majority of your status bar icons and base OS icons will be in framework-res.apk.
Sent from my HERO200 using XDA App
poashll said:
To start, don't mess with the XML files. Just make changes to the PNG files. Once you get familiar with changing icons and status bar colors, then you can start messing with XML files. Let's say you want a different alarm icon.
Look in the DeskClock.apk under res/drawable-mdpi. You would find an icon(PNG) you want to substitute with, size it to the same size as ic_launcher_alarmclock.PNG, name it the same name and replace the original in the apk.
Use adb to push the apk back to your phone. I would then reboot and then enjoy your new icon.
Some icons will be in drawable-mdpi and some just in drawable. No need to change hdpi on our phones.
The majority of your status bar icons and base OS icons will be in framework-res.apk.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
Well said.
You can also do it on your computer...don't extract, just open, replace, close, put on SD and flash (after you nandroid...just in case )
iv been looking an looking, but cant seem to find a black stock theme
with stock htc green when a button is pressed, any one kno off a stock black theme i might be over looking
still havent figured ths out, an im having problems because im odexed?
DubsideWICKED said:
still havent figured ths out, an im having problems because im odexed?
Click to expand...
Click to collapse
Yes more than likely your only have trouble theme and odexed rom. Try a rom that is deodexed or I heard the have some deodex sripts that will do it.
ASimmons said:
Yes more than likely your only have trouble theme and odexed rom. Try a rom that is deodexed or I heard the have some deodex sripts that will do it.
Click to expand...
Click to collapse
Alright is there a performance or memory difference between odex an deodex
Does this same process apply with adw? If so, does that mean theming aosp and cm6 are equally as easy?
Sent from my HERO200 using XDA App

[Q] com.htc.resources.apk-Genius devs please help make alterations for me?

Greetings. Would someone with some talent and skills be willing to please help me/make edits for me? I have provided the main file. I have also provided the other files to show the type that I would like to use.
I would like to change the stock symbols to the offset android '3G' icon/the 1x icon(attached)- and the bars to the four or - preferably five bar bubbly style(also attached).
From what I can see, the files are there within the com.htc.resources.apk file but I think they need to be renamed, perhaps edited in photoshop(which I am furtada with).
Thank you for your dev'ing genius and ill be sure to max out the thanks meter...if i can donate, I will try my darndest.
thank you so much!
thats a fairly simple fix. although I'm not sure that is the correct apk... i run an aosp (so it may not translate correctly for a sense rom) but my changes (which were of a similar type) required updating the /system/framework/framework-res.apk
I dont have time to do it now, but I could take a look at it next week. what rom are you running?
It would be in the framework-res.apk and the signal bar wouldn't be as simple as changing the picture, if I am not mistaken. The 3G to 1x icon is a very simple fix, but I believe that having five (usable) bars requires a bit of extra work involving xml files? I always assuemed that was the reason only Sense ROMs had six bars.
I would try just taking the pngs from a stock sprint hero rom and switching them. I've got a video on it but I never posted it on xda cuz I was gonna delete it but its on my YouTube channel
Sent from my HERO200 using XDA App
theyre inside the drawable-mdpi folder in the com.htc.resources.apk. thats where i found and how i changed the Ev icon to the other 3G icon thats there...not the offset one which is better. then i just pulled com.htc.resources.apk and pushed the modded one to and from /system/framework/com.htc.resources.apk
i would be forever grateful if i could get it. im just running a stock 2.1, rooted...which ive altered the 3g icon and bars before but i prefer the offset/bubbly icons
thanks thanks thanks
bump
anyone willing/able to make these edits for me??
it would be greatly appreciated as not only myself but others could benefit as well...
i appreciate your time and thank you!
Trying to wake a dead thread it seams, looking to change the color of the signal bars from green to red. I'm using MIKFROYO v4.5 and I talk to the dev and he pointed out that the change was going to have to occur inside the com.htc.resources apk. Can someone help me out on how to either edit the apk or.do it for me?

[Q] Moving the status bar clock to the middle, possible?

Sorry if this is in the wrong place but wasn't sure where to post it.
I'm guessing it's not possible as I haven't found anything about it, but I also haven't found anyone asking if it's possible either.
So does anyone know if it's possible and if so, how to go about it? Ie. which files need to be edited.
Thanks in advance
Id believe all you would do is get the framework-res, open up the drawable folders than just edit any xml that talks about the status bar orientation/size/etc

[Q] Where Is Our Stock Battery Icon?

I'm running stock 4.4 on my Sprint Moto X and I want to edit my status bar icons to align them. But I can't seem to locate the battery icon(s). Experience and common sense tells me the png's should be in SystemUI.apk, but I've cracked it open and I don't see them. Hopefully someone knows something I don't. I thought this would be an easy mod, but...
sasokutenshin said:
I'm running stock 4.4 on my Sprint Moto X and I want to edit my status bar icons to align them. But I can't seem to locate the battery icon(s). Experience and common sense tells me the png's should be in SystemUI.apk, but I've cracked it open and I don't see them. Hopefully someone knows something I don't. I thought this would be an easy mod, but...
Click to expand...
Click to collapse
Battery icons in KK are drawn in java. There are no images used.
Thank you, sir. I didn't know.
sasokutenshin said:
Thank you, sir. I didn't know.
Click to expand...
Click to collapse
what do you mean by align them? although they are drawn in java, they are still called in within the status_bar.xml located in the layout folder.
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
mrvirginia said:
what do you mean by align them? although they are drawn in java, they are still called in within the status_bar.xml located in the layout folder.
Code:
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="10.5dip" android:layout_height="16.0dip" android:layout_marginBottom="0.33000004dip" android:layout_marginStart="4.0dip" />
Click to expand...
Click to collapse
I don't know how else to explain it. In 4.4, the battery, signal, etc icons aren't aligned. The battery is the most noticeable of these. It sits considerably higher than the signal bars right next to it. Prior to 4.4, when there were still battery images in the SystemUI.apk, I could've simply edited those images, lowering the battery a pixel or two. I appreciate the help with pointing out the appropriate xml. But even if I knew how to change that, I replaced my laptop recently and for some reason I'm having hell getting apktool or any of its variants working correctly. So I can't decompile/recompile currently.
sasokutenshin said:
I don't know how else to explain it. In 4.4, the battery, signal, etc icons aren't aligned. The battery is the most noticeable of these. It sits considerably higher than the signal bars right next to it. Prior to 4.4, when there were still battery images in the SystemUI.apk, I could've simply edited those images, lowering the battery a pixel or two. I appreciate the help with pointing out the appropriate xml. But even if I knew how to change that, I replaced my laptop recently and for some reason I'm having hell getting apktool or any of its variants working correctly. So I can't decompile/recompile currently.
Click to expand...
Click to collapse
use v2.0.0 beta 9. that's what i used.
in the code there, i would start with changing the marginbottom to 0.0dip
I keep getting a style-v17 error and I don't know what it means. Nothing will even decompile. I've searched, but all I've found are maybe two people asking the same question with no answers. I am by no means a "developer". More often than not, I simply crack open an apk with 7zip (or old school style with NinjaMorph if I'm on my phone) and edit png's. I've used apktool a handful of times, but I had no problems getting it working properly on my last laptop. Followed instructions and it worked. No such luck this time.
On a more topic-related note, it turns out it was more about the signal bars sitting too low than the battery sitting too high. I used Zipthemer and fixed the relevant signal bar png's.
sasokutenshin said:
I keep getting a style-v17 error and I don't know what it means. Nothing will even decompile. I've searched, but all I've found are maybe two people asking the same question with no answers. I am by no means a "developer". More often than not, I simply crack open an apk with 7zip (or old school style with NinjaMorph if I'm on my phone) and edit png's. I've used apktool a handful of times, but I had no problems getting it working properly on my last laptop. Followed instructions and it worked. No such luck this time.
On a more topic-related note, it turns out it was more about the signal bars sitting too low than the battery sitting too high. I used Zipthemer and fixed the relevant signal bar png's.
Click to expand...
Click to collapse
you need the newest version of java installed, 7 i believe
Get rid of the battery icon.....there is a wonderful free application called "energy bar" which replaces the battery icon with a very thin line on top of the screen indicating battery charge.
mrvirginia said:
use v2.0.0 beta 9. that's what i used.
in the code there, i would start with changing the marginbottom to 0.0dip
Click to expand...
Click to collapse
Man that v2.0.0 beta 9 did the trick. Craziness. Thanks for the tip.
ghstudio said:
Get rid of the battery icon.....there is a wonderful free application called "energy bar" which replaces the battery icon with a very thin line on top of the screen indicating battery charge.
Click to expand...
Click to collapse
Excellent find. Unfortunately, my brain only thinks in the form of crunching numbers, so I gotta have a battery icon with percentage text.
sasokutenshin said:
Man that v2.0.0 beta 9 did the trick. Craziness. Thanks for the tip.
Click to expand...
Click to collapse
yeah no problem :highfive:

Categories

Resources