1. Download our Official Android App: Forums for Android!

[Verizon] Get rid of battery icon

Discussion in 'Android Devices' started by nkk, Jan 6, 2012.

  1. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    Is there any way to get rid of the battery icon? I have looked but there seem to be no mods to do it and I have no idea what i would need to edit to get rid of it.

    Thanks,
    Nkk
     

    Advertisement

  2. jbdan

    jbdan Android Expert
    Rank:
    None
    Points:
    513
    Posts:
    7,121
    Joined:
    Jan 31, 2010

    Jan 31, 2010
    7,121
    3,187
    513
    atl ga usa
    It can be done, but I can't tell you what to edit. There are no mods I know of atm that does this.

    I'm learning myself, how to create new battery icons at the UOT kitchen, create to a generic CM7 ROM, extract the images with 7zip and reload into an already put together zip'd battery flashable mod. If you did blank images you'd have a blank space.

    If I hear anything or can get any tips from the guys that do this 24/7 I'll be happy to let you know.
     
  3. Yeahha

    Yeahha Usually off topic
    Rank:
    None
    Points:
    813
    Posts:
    10,472
    Joined:
    Jul 29, 2010

    Jul 29, 2010
    10,472
    4,693
    813
    ...
    FG
    I think the easiest way would be using transparent or black PNG files for the battery icons in the systemUI.apk

    Unless you are running a mod that moves the clock it will still leave a funny looking space between the signal bars and the clock.

    After the apk has been edited you would need to adb push it to /system/app or make a flashable zip.
     
    jbdan likes this.
  4. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    I was trying to avoid that awkward gap. Does anyone know if the widths for each image are set? If I replace the current images with an image that is 1 pixel wide, would that work? I suspect the image width is defined somewhere else, but if the status bar arrangement is not so static, that might work.

    Thanks,
    Nkk
     
  5. T-Keith

    T-Keith Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    397
    Joined:
    May 1, 2010

    May 1, 2010
    397
    33
    43
    Sorry I can't be of help, but can I ask why? I am puzzled.
     
  6. Yeahha

    Yeahha Usually off topic
    Rank:
    None
    Points:
    813
    Posts:
    10,472
    Joined:
    Jul 29, 2010

    Jul 29, 2010
    10,472
    4,693
    813
    ...
    FG
    I am not sure. I don't think the gap is set somewhere else but by the icon so the 1 pixel wide image may work fine. Some roms/mods allow for a center clock or a hidden clock so you may want to see if you can find some of those.
     
    nkk likes this.
  7. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    Becuase I can. :p

    Really it is because I use battery indicator, which puts up a persistent notification on the left of the notification bar. It is annoying to have two battery indicators, and I like to have all info that I just glance at on the left (mainly weather and battery% and whatever transient notifications I have since I last cleared). Just a personal preference/quirk.

    -Nkk
     
  8. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    Ok. I have a plan for the next hour. I will report back soon.

    -Nkk
     
  9. supersaki

    supersaki Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    386
    Joined:
    Dec 3, 2009

    Dec 3, 2009
    386
    36
    43
    The battery icon .png files are located in /res/drawable-hdpi and /res/drawable-xhdpi for me on a CM9 kang in the /system/framework/framework-res.apk file [Edit: It seems these .png files do nothing, but the ones in /system/app/SystemUI.apk are used]

    It's been awhile since I've played around in there, and I think the ROM has to be deodexed for it to work (ie: won't work on stock ROM).

    I was thinking you may be able to just replace them with 0kb files to get the desired effect.

    Can't answer for the OP, but I use the Beautiful Widgets battery widget, so the battery icon in the notification panel is a little redundant.
     
  10. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    So I did a nandroid and just went and deleted all of the battery images from the SystemUI.apk (under ./res/drawable-xhdpi). It seemed to work.

    Before:
    [​IMG]


    After:
    [​IMG]


    There is some sort of awkward gap, but not as large as a regular icon, so I do not know how to get rid of it. Overall, I am happy with how this worked.

    Also, note that that before pic is old, so other things like the softkey color have changed, but were not changed with the battery icon.

    Next up is to figure out how to make a Battery indicator pro theme apk to make those numbers cyan like everything else. Then, on to the weather.

    Thanks for the help,
    Nkk

    EDIT: I think there are some problems with selections in the app drawer. Cant decide if it is real or my imagination. Will report back soon.

    EDIT: So I put back the original SystemUI.apk and it seems the lag was my imagination. It was not even lag, just the smallest hesitation. Anyway, this did work, and I consider it a success.
     
    Yeahha and jbdan like this.
  11. Yeahha

    Yeahha Usually off topic
    Rank:
    None
    Points:
    813
    Posts:
    10,472
    Joined:
    Jul 29, 2010

    Jul 29, 2010
    10,472
    4,693
    813
    ...
    FG
    Making the indicators blue will be more difficult. If you are lucky it will be an XML edit but more than likely is will require a smali edit. It may be easier to contact the dev of the app to see if they will help or give suggestions.

    Glad the systemUI edit works. Looks good.
     
    nkk likes this.
  12. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    That is what i thought, but on further investigation it seems the dev of battery indicator has made different themes into apk files and the notification is an image (not text), so all I really have to do is take the apk that he made and replace all of the images with what I want (keeping the names, of course).

    Will try later (in a few days).

    Thanks for all the help,
    Nkk
     
  13. WormDoes

    WormDoes Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    3,199
    Joined:
    Aug 8, 2010

    Aug 8, 2010
    3,199
    1,270
    313
    Sales
    Massachusetts
    What ROM are you on, OP? If, by chance, you're on RootzBoat check out this MIUI Battery Bar. If you flash the "no stock icon" the battery bar won't show up until you enable it in the batterybarsettingsv4.apk which would leave you with no battery, but the option to add either the bar or stock image back rather easily
     
  14. XxMalicexX

    XxMalicexX Member
    Rank:
    None
    Points:
    16
    Posts:
    43
    Joined:
    Aug 29, 2010

    Aug 29, 2010
    43
    3
    16
    Gov't Contractor
    Oceanside, CA
    can the clock be removed in the same way, that is just yanking out .png's?
     
  15. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    AXI0M 2.4.

    I do not think so. Whereas the battery is just a changing static image, the clock is dynamic text (i.e. the text is made on the spot, it is not just displaying a picture of text for a given time). I do know that in my search I found a bunch of ways to get rid of the clock, so that is much better documented. I forget where, but if you do a search of xda (use google and search "remove clock notification android site:xda-developers.com" without quotes) you should find it.

    -Nkk
     
  16. WormDoes

    WormDoes Android Expert
    Rank:
    None
    Points:
    313
    Posts:
    3,199
    Joined:
    Aug 8, 2010

    Aug 8, 2010
    3,199
    1,270
    313
    Sales
    Massachusetts
    IIRC, there is Axiom support as well. Just throwing out other options for some who aren't as inclined to pull out png's like you did :)
     
    Yeahha likes this.
  17. crackers8199

    crackers8199 Android Enthusiast
    Rank:
    None
    Points:
    78
    Posts:
    548
    Joined:
    Apr 12, 2010

    Apr 12, 2010
    548
    59
    78
    so, for the record, i should be able to do this...

    - nandroid
    - use UOT kitchen to create battery images the way i want them
    - pull systemui.apk
    - replace the battery icon images with the ones i want
    - push systemui.apk

    will that work or is there something else i need to do? i'm stock, rooted, unlocked...
     
  18. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    I have not used the UOT, but from what I understand it will give you a flashable zip, not a bunch of image files. So, that may not work.

    It would be more like:
    Go to UOT
    choose mod for battery icons
    give applicable files (just systmeui.apk for battery only)
    download

    Alternatively, just get the image files you want (proper resolution and all). Then copy SystemUI.apk unzip it, replace the old files with new (keeping names for correspoding files the same), zip it up and rename to .apk and push to /system.

    -Nkk
     
  19. crackers8199

    crackers8199 Android Enthusiast
    Rank:
    None
    Points:
    78
    Posts:
    548
    Joined:
    Apr 12, 2010

    Apr 12, 2010
    548
    59
    78
    Do I need to sign it or do anything special?
     
  20. Yeahha

    Yeahha Usually off topic
    Rank:
    None
    Points:
    813
    Posts:
    10,472
    Joined:
    Jul 29, 2010

    Jul 29, 2010
    10,472
    4,693
    813
    ...
    FG
    No I don't think so.
     
Tags:

Share This Page

Loading...