Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
aaho
Old
#1  
aaho's Avatar
Junior Member - OP
Thanks Meter 0
Posts: 13
Join Date: Feb 2007
Default Battery Percentage Mod?

Hi,

I am looking for Battery Percentage mod if there is any. It shows the percentage of rest of battery on the notification place instead of that green tube. No I dont want to use any widget as almost all of them are power greedy.

My Vivid is bootloader unlocked, Rooted.
 
homeslice976
Old
#2  
homeslice976's Avatar
Recognized Contributor
Thanks Meter 1705
Posts: 2,506
Join Date: Feb 2010
Location: Central Pennsylvania

 
DONATE TO ME
Quote:
Originally Posted by aaho View Post
Hi,

I am looking for Battery Percentage mod if there is any. It shows the percentage of rest of battery on the notification place instead of that green tube. No I dont want to use any widget as almost all of them are power greedy.

My Vivid is bootloader unlocked, Rooted.
There's always the UOT kitchen (http://uot.dakra.lt). It can be fun creating your own, and the kitchen makes it pretty painless (unless they're full, then it can be a painful wait). On the "Files" tab of the kitchen, select System Files, and upload the files requested (SystemUI.apk, framework-res.apk, and com.htc.resources.apk - found in /system/app/ and /system/framework/ in the .zip of the ROM you flashed). Click the battery tab, choose your mods, let the kitchen cook it, and you're done. It'll give you a .zip to flash in Recovery (obviously this requires that you have custom recovery, otherwise you'll have to manually push back the modded files that the kitchen gives you in the .zip).
The Following User Says Thank You to homeslice976 For This Useful Post: [ Click to Expand ]
 
formicae
Old
#3  
Senior Member
Thanks Meter 194
Posts: 460
Join Date: Jul 2009
Location: Ottawa
Use the UOT Kitchen. You'll need to pull your framework-res.apk (in /system/framework), SystemUI.apk (in /system/app) and com.htc.resources.apk (in /system/framework) from the phone to upload, and when you're done you'll have a ZIP you can flash from recovery.

Follow the instructions and it's a piece of cake.

Edit: beaten!
 
megatronisabeast
Old
#4  
Senior Member
Thanks Meter 96
Posts: 427
Join Date: Apr 2011
Wouldn't ROM toolbox from the market work? I haven't tried the battery mod but the text mod worked fine.

Sent from my HTC PH39100 using XDA App
http://i45.tinypic.com/6rsx09.png
 
homeslice976
Old
#5  
homeslice976's Avatar
Recognized Contributor
Thanks Meter 1705
Posts: 2,506
Join Date: Feb 2010
Location: Central Pennsylvania

 
DONATE TO ME
Quote:
Originally Posted by megatronisabeast View Post
Wouldn't ROM toolbox from the market work? I haven't tried the battery mod but the text mod worked fine.

Sent from my HTC PH39100 using XDA App
Maybe..jrummy's stuff is usually pretty good...haven't got to play with the toolbox though
 
davidcampbell
Old
(Last edited by davidcampbell; 3rd February 2012 at 01:37 PM.)
#6  
davidcampbell's Avatar
Senior Member
Thanks Meter 70
Posts: 606
Join Date: Mar 2010
Location: Newcastle, NSW, Australia
Try this, it was made with the stock Velocity apk's, backup before you flash it.
Attached Files
File Type: zip UOT-02-03-13-17-5.zip - [Click for QR Code] (3.91 MB, 23 views)
Learn how to LogCat

ASUS Nexus 7 - Unlocked & Rooted
HTC Velocity - Telstra ICS Stock
HTC HD2 - NexusHD2 CM9
 
psupernak
Old
#7  
Member
Thanks Meter 1
Posts: 76
Join Date: Oct 2011
I was trying to get an update zip to put battery percentage in my stock icon. HTC Velocity with WCX illuminati Telstra Rom.
I selected the icon, uploaded the three files (SystemUI.apk, framework-res.apk and com.htc.resources.apk).
When it finished cooking i got this error log..

Can someone let me know what i did wrong?
Its the first time ive used the UOT kitchen.

Error log: UOT-05-21-05-57-1-SHTF.txt

Decompiling framework-res.apk UOT-05-21-05-57-1
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR11
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-05-21-05-57-1
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
I: Framework installed to: /root/apktool/framework/1.apk
resources.apk found
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: dimen-zh-rTW-hdpi-ERR11
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected: integer-hdpi-ERR12
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: integer-hdpi-ERR13
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected: integer-hdpi-ERR14
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected: integer-hdpi-ERR15
I: Framework installed to: /root/apktool/framework/2.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder .java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib .java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85 )
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Compiling framework-res.apk UOT-05-21-05-57-1
W: Could not find sources
I: Building resources...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
I: Building apk file...
aapt: /usr/lib/libz.so.1: no version information available (required by aapt)
Compiling SystemUI.apk UOT-05-21-05-57-1
I: Framework installed to: /home/uotftp/apktool/framework/1.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java: 142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(Abst ractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 138)
... 4 more
 
iStatiK
Old
#8  
iStatiK's Avatar
Senior Member
Thanks Meter 69
Posts: 294
Join Date: Aug 2010
Location: Shelbytown
The kitchen doesnt play well with the resources and SystemUI from ICS. In order for them to fix this issue they'll have to use the ICS version of apktool to decompile and recompile with an older version. That's how i do it and it has never failed.
Get at me bro
G+
TweeeeeeT


"I'll be there when the burn the last Honky Tonk down."
 
tjubrock
Old
#9  
Member
Thanks Meter 2
Posts: 55
Join Date: May 2012
Default use a rom

you could use uot kitchen, but why not use a rom that offers it. like holics or something like that?
 
zRadiz
Old
#10  
Member
Thanks Meter 0
Posts: 37
Join Date: May 2012
uot kitchen

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Guide Your Sheep to Safety with Finger Shepherd

Just a coupe of days ago, we brought you news about a game calledAgent Sheep. In that … more

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more