Post Reply

[Theme][3/30/2012]SerenityV3.2 [Virtuous .21/WSG]

OP reNeglect

8th March 2012, 10:26 PM   |  #341  
Swiftks's Avatar
Retired Forum Moderator
Flag The Woodlands, TX
Thanks Meter: 1,926
 
3,711 posts
Join Date:Joined: Mar 2011
More
This is the response I got from the OP of the RootzWiki Thread... Passing it along to enhance our chances of success.
barrmy said:
================================================== ====================
swiftks -
rather than looking at the smali code, it would be better to look at the java code
the code has evolved since this original mod, so below is the better solution:

by default, the battery binary [services/jni/com_android_server_BatteryService.cpp] reads the battery value from /sys/class/power_supply/battery/capacity

for motorola, we were fortunate that it writes 1% battery files to a file at /sys/class/power_supply/battery/charge_counter , so the end solution in custom roms was to change com_android_server_BatteryService.cpp to read from /charge_counter instead of /capacity

----
the original mod, changed the BatteryServices.java file (that compiled into BatteryService.smali) to use the FileReader function to read /charge_counter and then replace mBatteryLevel with the 1% value instead. One can make the edits in java or in machine code.

---
keep in mind this runs the battery faster than reading in 10%'s
so part of the question for you guys would be:
for 1%:
- is there a file in /power_supply or another location that writes 1% values already?
if not, then you'll have your work cut out for you
for revised graphics:
- you should be able to decompile or build systemUI from source, without it you can't edit the xmls correctly
I typically build from source (for the same reason, very hard to find aapt that works well for recompile), and don't know if the prime source is available?
8th March 2012, 11:54 PM   |  #342  
Junior Member
Thanks Meter: 1
 
13 posts
Join Date:Joined: Mar 2012
awastut was
Bout to flash now. Thanks for all the work you guys are doing on this and all projects.
9th March 2012, 06:29 AM   |  #343  
diggs_r's Avatar
Senior Member
Thanks Meter: 23
 
131 posts
Join Date:Joined: Apr 2008
Sorry if this is a repetitive question, but I was wondering which clock is in the pics on page?

Sent from my Galaxy Nexus using XDA Premium App
9th March 2012, 06:39 AM   |  #344  
OP Senior Member
Flag Calgary
Thanks Meter: 327
 
577 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Quote:
Originally Posted by diggs_r

Sorry if this is a repetitive question, but I was wondering which clock is in the pics on page?

Sent from my Galaxy Nexus using XDA Premium App

mClock widget with miui clock XML.

If that's the case we're kinda screwed aren't we? I don't think Asus released the source did they?
16th March 2012, 07:47 AM   |  #345  
OP Senior Member
Flag Calgary
Thanks Meter: 327
 
577 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Bumpz~ Added support for WSG =) and one minor change =)
The Following User Says Thank You to reNeglect For This Useful Post: [ View ]
16th March 2012, 01:14 PM   |  #346  
hollywould's Avatar
Senior Member
Flag Huntington Beach
Thanks Meter: 47
 
468 posts
Join Date:Joined: Apr 2007
More
Hey, love your work. Can you make a version that I can flash on my stock .15 ROM? or just post the SytemUI.apk? Thanks a lot.
The Following User Says Thank You to hollywould For This Useful Post: [ View ]
16th March 2012, 08:38 PM   |  #347  
Junior Member
Chicago
Thanks Meter: 0
 
4 posts
Join Date:Joined: May 2010
Is there anyway I could flash just the soft keys?
16th March 2012, 09:18 PM   |  #348  
Swiftks's Avatar
Retired Forum Moderator
Flag The Woodlands, TX
Thanks Meter: 1,926
 
3,711 posts
Join Date:Joined: Mar 2011
More
Quote:
Originally Posted by dcowens

Is there anyway I could flash just the soft keys?

Pull them out of the apk file and replace your's accordingly.
16th March 2012, 09:33 PM   |  #349  
cbasse's Avatar
Senior Member
Flag South of Boston, MA
Thanks Meter: 75
 
650 posts
Join Date:Joined: Jul 2010
More
Is there a problem with the download link? Every time I try to download v 3.1 it starts, but then immediately says " unsuccessful". Can anyone post the file or point me to a mirror site?

Sent from my Transformer Prime TF201 using xda premium
16th March 2012, 09:36 PM   |  #350  
OP Senior Member
Flag Calgary
Thanks Meter: 327
 
577 posts
Join Date:Joined: Aug 2011
Donate to Me
More
Quote:
Originally Posted by cbasse

Is there a problem with the download link? Every time I try to download v 3.1 it starts, but then immediately says " unsuccessful". Can anyone post the file or point me to a mirror site?

Sent from my Transformer Prime TF201 using xda premium

Are you downloading from the tablet it self? Because devhost doesnt work on mobile for some reason. I would love to mirror it but, im using devhost so i can keep track of the downloads.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes