Want Stock Theme PLUS Battery %?

Discussion in 'ChevyNo1' started by ChevyNo1, Aug 4, 2010.

  1. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    OK everyone - you ask and you shall receive. Patcher to put battery % in the stock SS theme :)

    Just install as a regular update.zip - oh yea, notice how I'm not replacing the entire apk, but am able to update with just my changes? New - I intend to use it to update full themes with a tiny package :)

    Add battery % to stock theme
     
  2. killuhjason
    Offline

    killuhjason Member

    Joined:
    Mar 11, 2010
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0

    will this only work with SS, or will it work with my stock release of frg01b or frg22?
     
  3. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    This SHOULD work with any ROM
     
  4. undroid
    Offline

    undroid Member

    Joined:
    Jun 5, 2010
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    i just installed this using clockwork and did not get any battery %. i looked through ChevyNo1 Tools and did not see an option to enable the % or even in spare parts. am i missing anything?
     
  5. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    Hmmm, I have tried this 3 or 4 times successfully. Nothing to enable, you should see them when the phone boots up. So you are still just seeing the solid green battery?
     
  6. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    Sorry - found a bug in the zip - redownload and try again
     
  7. undroid
    Offline

    undroid Member

    Joined:
    Jun 5, 2010
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    works now thank you! you are just the man!!!
     
  8. y0rk
    Offline

    y0rk Member

    Joined:
    Feb 20, 2010
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    You are gonna have to let me in on this one. :) I have three more icon color choices just about ready.
     
  9. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    You mean applying the changes without the whole apk? Actually I have not 'protected' this, so anyone can use it. Check out the zip and look at the structure ... in the patches directory you'll put all your dirs of the apk's you want to theme .. the name of the folder must at least partial match the name of the apk, ie 'Pandora' will match com.android.pandora-1.apk. What you are 'patching' goes in the res directory and below.

    Right now this is only framework, but you get the idea ... add a 'Settings' directory ... a 'CarHomeGoogle' directory, etc.

    Basically this could be a themer's dream - much smaller packages to distribute. Someone mentioned that Koush was looking into a way to make this easier ... if this works I think I'm the first.

    Also .. the zip and patchapk file sitting in there is also needed, in THAT location. Which reminds me ... I think this will not work on other ROMS and I think I'll keep it that way for a while. So themers for my ROM get it easy for a while ;)

    I'm still testing with this, so it might not work ;) But it looks like I can package up my entire SS theme in 4.5 MB :)
     
    Last edited: Aug 4, 2010
  10. RichStevenson
    Offline

    RichStevenson Member

    Joined:
    Nov 11, 2009
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Medina, OH
    Ratings:
    +0
    I've done something similar in my theme using a script to inject icons into apk's, from the terminal. Looks like that's your approach as well, I think...

    Do you know if I could do the same, but specify my script to run in the updater-script?
     
  11. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    Yes, we have the same approach ... and you should also be able to run it from updater-script!
     
  12. y0rk
    Offline

    y0rk Member

    Joined:
    Feb 20, 2010
    Messages:
    262
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Yeah keep it that way for a while. :) I'm kinda fond of those new battery icons and wouldn't want to see them pop up all over the place just yet.

    And yeah with out the bulk of the .apk you can get the packages down pretty small. I had a set that I would use with MetaMorph that had icons and updates for 11 or 12 apps and the framework and it was under 5 megs if i remember correctly
     
  13. Phreaker47
    Offline

    Phreaker47 Member

    Joined:
    Apr 12, 2010
    Messages:
    753
    Likes Received:
    20
    Trophy Points:
    18
    Ratings:
    +20
    Hey Chevy... I'm running 4.6 and the Alternate Black theme, which lacks the percentage. So I tried this. It appeared to install fine but the new icons never showed up. I even ran my battery down below 90 to make the icon change once, just to be sure. It didn't take somehow, I guess. Still had the same battery icons without the numbers.
     
  14. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    Exactly - this basically is MM from recovery mode
     
  15. ChevyNo1
    Offline

    ChevyNo1 Premium Member Premium Member Developer

    Joined:
    Dec 28, 2009
    Messages:
    5,354
    Likes Received:
    5
    Trophy Points:
    153
    Ratings:
    +5
    Run this command:

    ls -l /system/framework/framework-res.apk

    I want to see if it was modified at all