Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,814 Members 51,169 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Swiftks
Old
#341  
Swiftks's Avatar
Retired Forum Moderator
Thanks Meter 1,926
Posts: 3,711
Join Date: Mar 2011
Location: The Woodlands, TX
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?


_______________________________________________

 
Maulds1989
Old
#342  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Mar 2012
Default awastut was

Bout to flash now. Thanks for all the work you guys are doing on this and all projects.
 
diggs_r
Old
#343  
diggs_r's Avatar
Senior Member
Thanks Meter 23
Posts: 131
Join Date: 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
 
reNeglect
Old
#344  
Senior Member - OP
Thanks Meter 327
Posts: 577
Join Date: Aug 2011
Location: Calgary

 
DONATE TO ME
Quote:
Originally Posted by diggs_r View Post
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?
Devices:
HTC One X 32GB White.
Samsung Galaxy Tab 10.1 16gb White Wifi Only.
Apple iPad 2 64gb White Wifi Only (Sold).
Apple iPad (3rd Gen) 64gb White Wifi Only.
Asus Transformer Prime 32gb Amethyst Grey Wifi Only.
Samsung Galaxy SII Ceramic White (Sold).
Samsung Galaxy Nexus.
Lightless Ascension Theme for AOKP
 
reNeglect
Old
#345  
Senior Member - OP
Thanks Meter 327
Posts: 577
Join Date: Aug 2011
Location: Calgary

 
DONATE TO ME
Bumpz~ Added support for WSG =) and one minor change =)
Devices:
HTC One X 32GB White.
Samsung Galaxy Tab 10.1 16gb White Wifi Only.
Apple iPad 2 64gb White Wifi Only (Sold).
Apple iPad (3rd Gen) 64gb White Wifi Only.
Asus Transformer Prime 32gb Amethyst Grey Wifi Only.
Samsung Galaxy SII Ceramic White (Sold).
Samsung Galaxy Nexus.
Lightless Ascension Theme for AOKP
The Following User Says Thank You to reNeglect For This Useful Post: [ Click to Expand ]
 
hollywould
Old
#346  
hollywould's Avatar
Senior Member
Thanks Meter 47
Posts: 468
Join Date: Apr 2007
Location: Huntington Beach
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: [ Click to Expand ]
 
dcowens
Old
#347  
Junior Member
Thanks Meter 0
Posts: 4
Join Date: May 2010
Location: Chicago
Is there anyway I could flash just the soft keys?
 
Swiftks
Old
#348  
Swiftks's Avatar
Retired Forum Moderator
Thanks Meter 1,926
Posts: 3,711
Join Date: Mar 2011
Location: The Woodlands, TX
Quote:
Originally Posted by dcowens View Post
Is there anyway I could flash just the soft keys?
Pull them out of the apk file and replace your's accordingly.


_______________________________________________

 
cbasse
Old
#349  
cbasse's Avatar
Senior Member
Thanks Meter 74
Posts: 630
Join Date: Jul 2010
Location: South of Boston, MA
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
 
reNeglect
Old
#350  
Senior Member - OP
Thanks Meter 327
Posts: 577
Join Date: Aug 2011
Location: Calgary

 
DONATE TO ME
Quote:
Originally Posted by cbasse View Post
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.
Devices:
HTC One X 32GB White.
Samsung Galaxy Tab 10.1 16gb White Wifi Only.
Apple iPad 2 64gb White Wifi Only (Sold).
Apple iPad (3rd Gen) 64gb White Wifi Only.
Asus Transformer Prime 32gb Amethyst Grey Wifi Only.
Samsung Galaxy SII Ceramic White (Sold).
Samsung Galaxy Nexus.
Lightless Ascension Theme for AOKP

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes