yashsingh1/xdaforums huggingface dataset:
[Desire Themes and Apps] kubino99:
while the bootloop I was able to connect to device via adb. so i've mounted SD card and runned

adb logcat -f /sdcard/bootlog

and then checked the boot log ;-) I've compared services.jar from r2 and is exactly the same as r1. but I think I've found something wrong in smali code now. I'll check if it fixes the issue with odexed folder.
[Desire Themes and Apps] kubino99:
are you still plugged in computer ? the percent will show only when unplugged and the battery has bellow 99%
[Desire Themes and Apps] pina_:
jep, unplugged and half of the circle, still no %. Saw other people flashing this over a stock rom, and they don't have the % indicate neither.
[Desire Themes and Apps] janvandusschoten:
Same thing here, got the stock ROM and the circle, no %. The circle is very nice, but the % would make it better.
[Desire Themes and Apps] kubino99:
weird, again reflashed the ROM and I can see %. I have no Idea what is wrong with yours.
[Desire Themes and Apps] deanesn:
Re: [HOW-TO] Circle battery with % in the middle (rooted)

Nice, paul its releasing beta tomorrow so I'll wait for that and add your changes and will post the one for the n1. Thanks dude great work ;)
[Desire Themes and Apps] pina_:
and you're also using stock rom?
[Desire Themes and Apps] Don't Ask:
Using stock ROM, can only see the circle, no %.

Also changed a bit of the icons, for example the wifi signal strength indicators are now green, and the "downloading" arrow had a flashing green background, both of which look rather nice in my opinion.

Too bad that new alarm clock icon doesn't fit in with the rest of the notification area indicators, but overall it isn't really a critical problem.

Thanks kubino99!
[Desire Themes and Apps] mklass:
So does this work with R2 yet? Also could you make a black transparent notifications tray background?
[Desire Themes and Apps] kubino99:
as R2 has odexed '/system/app' it won't work. I have no clue why the mod doesn't work with odexed filesystem.

I didn't modify the theme. I just took it from nexus one forum. My mod was to change some code in services.jar to be able display % in the battery icon.
[Desire Themes and Apps] kubino99:
Seems like there is no problem in code I've added, but there is something wrong with baksmali/smali. I took original sevices.jar performed baksmali and smali on classes.dex without any change to java code. Put back to services.jar and tried to boot R2 --> got bootloop :-(

put back original classes.dex and R2 booted fine.
[Desire Themes and Apps] kubino99:
Propably I've found the root cause ;-) didn't know much about odexing/deodexing (the desire is my 1st android device so consider me as an android n00b :D ) and seems like the odexing is performed according to few system files (including services.jar) this might be why the odexed ROMs doesn't work with modded services file ;-)
[Desire Themes and Apps] Pyr0x64:
yes, i was reading up on deodexing and the odex files have dependancies on the BOOTCLASSPATH files.

only way around it seems to be to deodex the rom...
[Desire Themes and Apps] kubino99:
yes I think I can make it work also on R2. I need to odex the apps according modified BOOTCLASSPATH. I can do that if anyone is interested to see this mod on R2 ;-)
[Desire Themes and Apps] Pyr0x64:
the problem is that everyone has different customized modaco roms

if possible, i would love a guide or how-to or something so that i could try it myself
[Desire Themes and Apps] ferryrich:
I'd certainly like it on r2.

I'm holding off flashing for this ;-)
[Desire Themes and Apps] kubino99:
It will be a few steps and might be a bit complicated :D .

I think you will need following :

1. deodex the app folder according original BOOTCLASSes (build classes.dex from odex files and put them into APKs.

2. delete old odex files

3. odex APKs according modified BOOTCLASSes, delete classes.dex from APKs, propably resigning.

For deodexing you can use baksmali, for odexing dexopt-wrapper.

EDIT : it's certainly worth to create a few small scripts for each step :D
[Desire Themes and Apps] pina_:
Did you manage to let it work on default stock rom? I like the indicator but having the % would be perfect!

Also, it is possible to make the circle a tiny bit smaller, so it comes out nicely next to the other icons. I think the circle is just a bit too high now. Maybe I can find out how to make it a bit smaller in photoshop or something?
[Desire Themes and Apps] kubino99:
Yes it's the same reason as MCR r2, plus stock has odexed also /system/framework folder. it doesn't use services.jar but services.odex. this is the reason why you don't get bootloop by flashing ;-)
[Desire Themes and Apps] supasye:
that "circle" isnt even round.
[Desire Themes and Apps] pina_:
I'm sorry, but I don't understand that code language you're using ;)

I wanted to ask whether you think you could fix the issue about the % for stock rom?
[Desire Themes and Apps] rosebud:
Without trying to sound stupid... should I be seeing a % all i see on my desire is the circle?

edit: by the way, keep up the good work :)
[Desire Themes and Apps] wolverine_2k:
Got it working with r3 Modaco.

I flashed the update file, restarted and nothing.

Then I reflashed the rom, flashed the update and then restarted.

Hey presto it worked.
[Desire Themes and Apps] kubino99:
You will see the % if you have compatible ROM :-) check 1st post for details.
[Desire Themes and Apps] StuMcBill:
Re: [HOW-TO] Circle battery with % in the middle (rooted)

I am currently running modaco r3, and would like to flash this, however, is it possible to backup my original services.jar file in case I would like to go back to original?

Are there any webpages that detail the commands that can be run on adb? Just for future reference.

Stewart

-------------------------------------

Sent via the XDA Tapatalk App
[Desire Themes and Apps] kubino99:
Check post #14
[Desire Themes and Apps] Pyr0x64:
Extract the update_signed.zip from the first post, then follow the instructions in post #14

[Edit] too slow, lol
[Desire Themes and Apps] mklass:
I've flashed this with Paul's R3 rom and it works fine. So thanks..

Just to add so people know this has a semi black transparent notifications pull down.
[Desire Themes and Apps] StuMcBill:
OK, but how and when would I do that, because when I am in recovery, the .bat file is still running so I cannot type anything more?

Stu
[Desire Themes and Apps] ady_uaic:
i've installed it too, but i see only a circle, not the procentage in the middle of it, i mean 94%, 95% etc...only the green circle.
[Desire Themes and Apps] kuailan:
Anyone know if they work with Pay v.1.5 ROM??
[Desire Themes and Apps] benko286:
Anybody knows if it is possible to keep same battery icon, but just to add % in the middle?

I really don't like this Circle battery icon.
[Desire Themes and Apps] speedking34:
Modaco r2 ->endless boot sequence.

Nan restore and everything is fine back to normal. Hopefully this will work for everybody soon, I really like it and really wish I could use it.
[Desire Themes and Apps] swissman:
I confirm... modaco r3 working fine
[Desire Themes and Apps] ritdaw:
Id love that too :)
[Desire Themes and Apps] luminouche:
Running R3 MoDaCo, i had percentage at 1st run, then i plugged Desire for charging and percentage disappears... NOT showing 100 % in the circle now

Does it show 100, 99, 98... or does it start at 99, 98, 97 ?
[Desire Themes and Apps] ritdaw:
I've found that if you push services.jar without the framework the percentage is on top of the normal battery icon :)
[Desire Themes and Apps] ady_uaic:
how to push it? just copy/paste?
[Desire Themes and Apps] kubino99:
the countdown starts at 99%, the reason why is the 100 is too large to fit in icon. it's all right that while charging there is no %, the code is written that way ;-)
[Desire Themes and Apps] kubino99:
yes the code for showing % is in services.jar :D framework-res.apk is just theme taken from nexus forum.
[Desire Themes and Apps] pina_:
so does that mean that you found a way to let it work on stock rom?
[Desire Themes and Apps] Woocash03:
Can someone post here screenshot how it look with added only % status, without change battery's icon.

Maybe it's stupid, but it will be nice XD'

And one more question: my friend install this mod and he has not got percent, only new icon - is it work with the stock rom? (with only root access added)?

Sorry for my bad english and thanks for answer!
[Desire Themes and Apps] kubino99:
here you are ;-)
[Desire Themes and Apps] kuailan:
Doesnt work with Pay ROM :(
[Desire Themes and Apps] kubino99:
to get this working on stock ROM you need to rebake it according new services.jar (maybe I can do it later). anyway you'll still have to flash new (modified stock) rom ;-)
[Desire Themes and Apps] Andyokane:
could you post an update.zip with the original circle without the %?

Would that get people out of th endless loop until things work better?
[Desire Themes and Apps] pina_:
I would be grateful if you could do that :)
[Desire Themes and Apps] Woocash03:
Looks great, thanks :] And I must only delete framework-res from .zip and that's all ? I don't want breake my phone XD'
[Desire Themes and Apps] sonandreas:
Would this work on the Pays-Rom?

I really like the percentage in the middle of the icon.
[Desire Themes and Apps] kubino99:
It depends on your ROM. If you have compatible one check post #14 and push just services.jar.
[Desire Themes and Apps] Woocash03:
delete this post
[Desire Themes and Apps] Woocash03:
Where I must wrote it? I can't type it in Recovery CMD in Windows, so I dont know where. Sorry for noob question.
[Desire Themes and Apps] kubino99:
you have to boot recovery and run 'step2-windows.bat' more info in rooting thread : http://android.modaco.com/content/h...e-now-with-hboot-0-80-and-os-to-1-21-support/

after that you can start shell from your computer by :

adb shell mount /system
adb shell cp /system/framework/services.jar /system/framework/services.jar.orig
adb push services.jar /system/framework
adb shell chmod 644 /system/framework/services.jar
adb reboot

if you go into trouble (endless boot loop or something), again reboot to recovery run 'step2-windows.bat' and type :

adb shell mount /system
adb shell mv /system/framework/services.jar.orig /system/framework/services.jar
adb reboot

hope it helps ;-)
[Desire Themes and Apps] Woocash03:
I use recovery-windows.bat and I get recovery :P But - I can't type any words or letters in cmd, like this:

h t t p://img534.imageshack.us/img534/3476/89643714.jpg

If I try type in new cmd:

h t t p://img20.imageshack.us/img20/9752/91993944.png

Maybe you can do update.zip without framework-res ^^? I really try to get it but I'm not good enought with it (I'm rooted it today for this mod ;D)
[Desire Themes and Apps] kubino99:
allmost there :D you need to have services.jar in the same folder from which you are running adb. So just copy services.jar to "C:\Users\Woocasch\Desktop\Pushfiles" and retry last 3 commands :

adb push services.jar /system/framework
adb shell chmod 644 /system/framework/services.jar
adb reboot
[Desire Themes and Apps] Woocash03:
h t t p://img682.imageshack.us/img682/2929/adb.png

But % doesn't appear : P I have got 98% now, when I will have 100% and then, when it go down to 99% it will appear :P?

Anyway, really thanks for help :D
[Desire Themes and Apps] kubino99:
if the % doesn't show you have propably odexed /system/framework folder. you need a compatibile ROM (deodexed), it's confirmed that the MOD working on MCR r1 and r3.
[Desire Themes and Apps] Woocash03:
Yeah, I see ... but I don't want to change my rom only for % in battery icon.

But - now I'm know more than before, so thank you :)!
[Desire Themes and Apps] blackfox888:
can someone with the % status on the original battery icon post a screenshot of it please.

sorry just went back a few pages and saw the pic of it. Now that look cool:D

kubino99: I dl your first service.zip (b4 you posted the update_signed.zip) file which had the 2 files in it to do it manually, do I use the services.jar from there or have you change/edit the services.jar file since then? I want to just install the % status ontop of original battery icon.
[Desire Themes and Apps] blackfox888:
kubino99: having no luck installing it manually by following your post #121, can you make a signed.zip of just the service.jar please

Ok finally got it working I checked out woocash03's images, now I have % in original battery icon, awesome! cheers
[Desire Themes and Apps] Woocash03:
Now I have got MoDaCo r3 rom and it's really amazing how it works :D

Battery works too, really great - thanks for help :D!

http:// img10.imageshack.us/img10/1230/cap201005180111.jpg
[Desire Themes and Apps] benko286:
I love this new battery icon, can you tell me how to put it into ROM(before flashing), I am using r3 as a base ;)
[Desire Themes and Apps] sonandreas:
what i did was to flash r3 then immediately flash the battery file afterwards then reboot.
[Desire Themes and Apps] ourfear:
could you make a services.jar for MCR r3? i just found the MCR r3 services.jar is not same as MCR r1's services.jar and without the "%"?
[Desire Themes and Apps] NRGizzer:
I have MCR r3 installed and after pushing the 2 files and restarting the phone, much processes crashes and is so i can´t really use the phone. Pushing back the original files doesn´t help :(.

EDIT: Reinstall MCR r3 solved the problem, but i had to reinstall all applikations too.
[Desire Themes and Apps] PaY87:
Great to see you like my framework, but not so great to see no credits :rolleyes:

Anyway thx to contribute your work to the community...
[Desire Themes and Apps] kubino99:
oh so you've created the theme ? sorry I didn't know that, I've found it somewhere on nexus one forum. Will update the first post immediately.
[Desire Themes and Apps] eViL D::
I thought this was based off of canadiancows post in cyanongens forum?
[Desire Themes and Apps] kubino99:
Yeah but the statusbar icons belongs to Pay87.
[Desire Themes and Apps] PaY87:
I don't want credits for all the graphics, sure some of them are from some other guys, but you can check the checksum of the framework and you will see its the same I created. Also the circle has nothing to do with the framwork so if someone just want the circle and get all the graphics replaced he might wonder which framwork this is. Anyway like I said great work! I also like your work on the vanilla lockscreen. Keep it up! :)
[Desire Themes and Apps] indyjonesUK:
Noooo the smilies

Really like this and the extra graphical tweaks the problem is the default androidy similes have been replaced :( any way to restore these please?
[Desire Themes and Apps] ameruxxh17:
circle battery+ pourcent

hi

it's work 100%

put the desier into recovery mod

with adb

adb mount /system

adb push framework-res.apk /system/framework

adb shell reboot

enjoy!!
[Desire Themes and Apps] pina_:
I'm using MCR3.1 now, tried to flash the zip from the 1st post, but still got no % in it, is it normal? I thought it would be able to see it in MCR 3.1 since it has been de-odexed?
[Desire Themes and Apps] BlackLine7:
Connect your phone to the charger and then disconnect. Ta-daaaa! :D
[Desire Themes and Apps] pina_:
yeah, I found out that it indeed works. It's really nice to have the % in the middle. Makes it really clear now. I also like the green colors very much
[Desire Themes and Apps] Loccy:
edit: Unnecessary post, I fail. Found what I wanted on page 11.
[Desire Themes and Apps] ernest33:
Great to see % in bat. now :-)

But why i did not see color icon in the home popup menu ?

(The only one i can see is the "more" icon [circle in red with an arrow].

I miss something ? :o

[Edit] A little precision. I use MCR 3.1 ;-)
[Desire Themes and Apps] naboleo:
Will it be easy to modify the .jar include in the Froyo release like the DeFroST 0.5 rom ?
[Desire Themes and Apps] matthiayer:
tried something wrong I think..

I tried to install this on a rooted stock rom..

had some error on start-up, but is this going to give some problems?
[Desire Themes and Apps] SiX-P4cK:
Installed on MCR 3.1 & r5, work perfect

Change wifi (add color) and alarm clock too.
[Desire Themes and Apps] PaY87:
I updated my framework and fixed some small "bugs", maybe you want to update the framework included in the zip. :)
[Desire Themes and Apps] terryhau:
Does anyone know how to remove the alarm icon completely?

On WinMo, the alarm icon only displayed if there was an alarm set to go off within the next 24 hours.

On android, even though i only have an alarm once a week, the icon is there 24/7.

I think it's a pretty useless thing and just a waste of space.
[Desire Themes and Apps] macsel:
Is this the reason why there is no percentage in the middle? => *.odex

To bad:( i got this far...
[Desire Themes and Apps] SiX-P4cK:
don't display when battery is 100%
[Desire Themes and Apps] macsel:
Re: [HOW-TO] Circle battery with % in the middle (rooted)

It's not 100% now...

-------------------------------------

Sent via the XDA Tapatalk App
[Desire Themes and Apps] macsel:
Re: [HOW-TO] Circle battery with % in the middle (rooted)

Also, is it possible to ad the HTC widget SyncAll, Music and Bookmarks?

-------------------------------------

Sent via the XDA Tapatalk App

Oeps.... Wrong thread
[Desire Themes and Apps] naboleo:
Will this will help for de-odex package .? http://code.google.com/p/smali/wiki/DeodexInstructions
[Desire Themes and Apps] impazzito:
After this mod, startup and showtdown on my desire takes 5 minutes.. is this mod the problem??
[Desire Themes and Apps] rubino90:
sorry

zip file initial work with rom 1.15 with root I flash to recovery? or do I use the framework for ADB? did not really understand sorry
[Desire Themes and Apps] nikosrs4:
is there a particular reason to chmod the files?
[Desire Themes and Apps] xhpdan:
I noticed when I pushed the two files the permissions on the files were 777, however when I applied MCR r3.1 the permissions on the files were 644. So I think the chmod is just to make the permissions on the files the way they should be by default.
[Desire Themes and Apps] MojUk:
can i use with defrost 0.9b?
[Desire Themes and Apps] pato_mld:
Just applied this and the startup is either stuck or taking a really long time on the htc logo. Using it on SetR0M RC3.
[Desire Themes and Apps] MojUk:
Hmmm unlucky dude...i'm defo gonna wait till i can determine if it works with defrost before i try it....REALLY would like it though :D
[Desire Themes and Apps] MojUk:
Anybody know if i'm cool to flash this or will it fudge up my phone if it fails?
[Desire Themes and Apps] nvivas:
I also wondering if this can be used with defrost 9.b?
[Desire Themes and Apps] MojUk:
I now think it can't be. Reading over on modaco it seems we need the jar framework to be updated to 2.2 and i imagine we need to wait for google to release 2.2 source first...
[Desire Themes and Apps] 1F33LR41N:
Hello.

Please tell me how i can use this patch with This Rooted Stock Rom ?

I'am apply "update_signed.zip" on recovery,but don't see % on circle battery indicator...

Sorry for my English,I'am Russian.

Thx for all.
[Desire Themes and Apps] JohnSteveDoe:
Makes my phone (2.2 MCR) hang at white HTC screen. Had to pull the battery out twice. ****e :/
[Desire Themes and Apps] Sherwood W:
Will this work with DeFrosT 1.3? I also rooted it with the modaco r6 guide from paul?

I tried it and it got stuck in a boot loop but I'm not sure if I did something wrong.
[Desire Themes and Apps] nikosrs4:
I don't think it'll work..
[Desire Themes and Apps] naboleo:
Da900 did it with a black taskbar for defrost rom (FRF72) : http://xdaforums.com/showpost.php?p=6889325&postcount=3281, but no white one yet
[Desire Themes and Apps] Sherwood W:
thanks naboleo I'll try it out.
[Desire Themes and Apps] j.blaze:
Hi guys

I don't have the time to read about 170 post. So can anyone tell me, if there is the possibility to get this circel battery on rooted stock rom? (Build N° 1.15...)
[Desire Themes and Apps] nvivas:
black bar works fine with defrost 1.3

Apparently, the percentage is kinda tricky to implement...

Not that it matters since soon it will be outdated.
[Desire Themes and Apps] padlets:
How can i get the original battery back?
[Desire Themes and Apps] cgrec92:
just installed his on my mcr 3.1 desire

took about 5 minutes to turn on the first time so do give it time!

after that it turns on and off again perfectly

just wanted to say thanks, it really is beautiful, infinitely better than stock

i like the smileys you added as well :)

really just great work, thanks very much for your efforts!
[Desire Themes and Apps] oursoul:
Got this installed, and I want to say thankyou but.. How come I have 50% battery according the the numbers in the middle, yet 4 out of 6 bars in the circle I lit up green?

I'm no mathematician but that doesn't add up.
[Desire Themes and Apps] norao:
will froyo version never come?
[Desire Themes and Apps] gregounech:
So I suppose this doesn't work for Stock Rooted (by Modaco method) ROM (1.15.405.4 with HTC Sense ?)
[Desire Themes and Apps] NetBios:
No % number, why?
[Desire Themes and Apps] Toisan:
is it possible that u only give me an update zip with the Battery and % ? dont need more..,cant great it myself...

thank u =)

regards
[Desire Themes and Apps] jabbawalkee:
Wrong thread sorry
[Desire Themes and Apps] Apo11on:
@ kubino99

the battery percentage stops showing once you plug in the phone via USB cable. the icon switches from % to "charging" icon, which is rather annoying. The whole point of that indicator when charging should be to show how much charging you got left to do, and when the battery is full.

Instead, you have to keep polling it by unplugging USB cable, every once in a while, to see the charge status.

Could you modify the update to continue showing the % while the battery is being charged?

There is a market app called "Battery Level" which does the job fine and continues to show % while charging. I'd get rid of this update and use only that program, if it was possible to rid the phone of the battery icon circle completely, but unfortunately it's not and I dont want to have 2 battery icons in the tray, so I hope you can fix this issue.
[Off-topic] MooGoo:
I have a totally unfounded and almost certainly inflammatory theory that WinMo users are more likely to drive a car with a manual transmission than iPhone users.

JUST THINK OF THE PARALLELS

Go ahead, prove me wrong!
[Off-topic] tC_Driver:
Ha,

Consider me the first to prove your theory right. I like the assumption and can confirm that I do drive a manual transmission vehicle and use Windows Mobile.
[Off-topic] MooGoo:
Was just getting around to that...

Did not realize that the thread was posted before the poll was complete, else I would have thought up the options before hand. I had much trouble fitting the last option into the 100 character limit.

I wanted it to say "Automatic and iPhone. ZOMG Stick shift's are worse than stylus's! If only Steve Jobs could decide what gear my car should be in". The cut down version just does not have the same soul...
[Off-topic] tC_Driver:
You know, I thought you didn't have the poll up right away, but after I posted my reply, I looked and it was there. I quickly removed my statement but you are too quick, LoL. I thought I just didn't see it there and was suggesting something for no reason. Good idea.
[Off-topic] MooGoo:
Just give me the word and I'll work some Soviet Revisionism into this thread.
[Off-topic] M_T_M:
Izuzu Trooper not only stick...but 4X4 muahahahahaha :D
[Off-topic] JAguirre1231:
I use Android and don't know what to choose....

Guess it's option number 5.
[Off-topic] M_T_M:
haaaaaaaaaaaaahahahahaha

No option Andriod...wait a minute..I use Android too... :rolleyes:

Never mind :D
[Off-topic] MooGoo:
Whoops! Forgot about you guys. Uhm...damn. We could all just pretend the first two options said WinMo/Android. Unless there is a way to edit the poll that I'm missing.
[Off-topic] M_T_M:
There is always a way my fellow XDAer ask a Moderator to do it for you :D

They are over there....see them...they can :eek:
[Off-topic] JAguirre1231:
We'll just rename the first option to be Winmo/Android ;)