What needs to be edited in services.jar for 1% batt?
Or can someone provide me with a services.jar with 1% batt to compare? Also does services.jar need to be deodexed in order for it to work? Back when i had an X2 i was able to just copy the services.jar from the eclipse rom and got 1% batt but the X2 was fully deodexed. I tried to do the same with the services.jar from arctic rom on my odexed razr i copied the services.jar over and removed the odexed file because the arctic version was deodexed but it just bootlooped.
I really want 1% batt but i want to keep blur because for business it works very well with exchange email ect...otherwise i would just use arctic or eclipse for razr.
Any Help would be great...
I will like to know as well.
Enviado desde mi XT910 usando Tapatalk
If you don't want to mess with the settings on your phone, you can download "Battery Indicator" from the market. It allows for 1% increments and seems to work pretty well on our RAZR's.
nevetsvsx said:
If you don't want to mess with the settings on your phone, you can download "Battery Indicator" from the market. It allows for 1% increments and seems to work pretty well on our RAZR's.
Click to expand...
Click to collapse
I like to mess with the settings
Enviado desde mi XT910 usando Tapatalk
I think that all framework should be deodexed. Cause if just one of files deodexed, you will get bootloop. If you decompile services.jar (services.odex) you can see there BatteryService.smali
So, it is file, that you should edit, I think.
Please post android development related thread in android development forums. If your thread can be states as a question, it clearly is not development, and therefore doesnt belong in those forums.
Moving this into themes and apps where you will be getting more responses.
I think its an xml edit in framework-res/res/drawable/stat_sys_battery.xml and framework-res/res/drawable/stat_sys_battery_charge.xml
suwu10 said:
I think its an xml edit in framework-res/res/drawable/stat_sys_battery.xml and framework-res/res/drawable/stat_sys_battery_charge.xml
Click to expand...
Click to collapse
Im looking into this now
suwu10 said:
I think its an xml edit in framework-res/res/drawable/stat_sys_battery.xml and framework-res/res/drawable/stat_sys_battery_charge.xml
Click to expand...
Click to collapse
Yes those have to be edited to show the scaling now in 1% increments but the meat of the source is inside services.jar which is in the framework folder. Of coarse your system has to be deodexed in order for this to work at all. I did it a long time ago but forgot basically you can just find a rom with 1% and just copy there services.jar over to your phone then make a little them using UOT kitchen even just drop the services.jar from a really basic deodexed rom in the framework folder of your UOT kitchen theme and boom you should have 1% the easy way. Or snag a services.jar from a working 1% rom then you have to use APK-Tool to decompile it because its a java file...its not that hard just time consuming. I just used this rom its basically .211 dedexed with 1% batt and thats it so its a great base to start from or pick parts from, i suggest just flashing this and you'll be good.
http://www.droidrzr.com/index.php/topic/3032-stock-rom-de-odexed-zipaligned-616211-base-7-1/
Related
Can any one make an update.zip to remove the atrix status bar clock
CHUI2CH said:
Can any one make an update.zip to remove the atrix status bar clock
Click to expand...
Click to collapse
Here ya go, edited the 1.8.3 deodex services.jar... shout out to Tonecreationz for coming up with this MOD, I just made a CWM install for it...
a) You need to be deodex to use this....
b) I also included the services.jar with the 1% MOD(this does not show the percentage in the battery icon) from Gingerblur v3.5 for people using 1% MOD, your framework-res.apk will need to have the correct battery icons for this to point to if you want to see the % in the battery icon... ... I don't use that, so didn't personally install it...
STEP 1: MAKE A BACKUP OF YOUR CURRENT SETUP BEFORE INSTALLING THIS!!
STEP 2: INSTALL VIA CWM
Ty
Sent from my MB860 using XDA Premium App
Nice
Sent from my rooted 1.8.3 Honeyglow themed Gingerblur Atrix
Works.... flashed on top of Gingerblur v3.5
**Edit**
Huummm, battery level seems to be stuck @ 100% now... let me try erasing battery data via CWM
Well, I don't know??? Wiped battery status and dalvik cache with CWM and battery status still shows 100%... Going to restore to the backup I made before flashing this, and confirm that this was indeed the problem.
services.jar is involved in the 1% battery mod, dropping a stock 1.83 services.jar with the clock removed on your phone will affect any mods that utilize services.jar tweaks.
I hate to say it but the best way to implement any mod is to do it yourself - that way you make changes to your current system rather than replacing parts of it.
jimbush3 said:
services.jar is involved in the 1% battery mod, dropping a stock 1.83 services.jar with the clock removed on your phone will affect any mods that utilize services.jar tweaks.
I hate to say it but the best way to implement any mod is to do it yourself - that way you make changes to your current system rather than replacing parts of it.
Click to expand...
Click to collapse
Correct, this is just for the stock status bar...
jimbush3 said:
services.jar is involved in the 1% battery mod, dropping a stock 1.83 services.jar with the clock removed on your phone will affect any mods that utilize services.jar tweaks.
I hate to say it but the best way to implement any mod is to do it yourself - that way you make changes to your current system rather than replacing parts of it.
Click to expand...
Click to collapse
Yeah, I just edited my services.jar from gingerblur... going to flash and give it a try before I post it.
Swiftks said:
Yeah, I just edited my services.jar from gingerblur... going to flash and give it a try before I post it.
Click to expand...
Click to collapse
Added that services.jar as well in my previous post.. so there should be one for stock and one for 1% MOD... I hope..
jpinoy said:
Added that services.jar as well in my previous post.. so there should be one for stock and one for 1% MOD... I hope..
Click to expand...
Click to collapse
dammit you beat me to it... oh well, thx for the help. I'll go post in gingerblur thread too.
Swiftks said:
dammit you beat me to it... oh well, thx for the help. I'll go post in gingerblur thread too.
Click to expand...
Click to collapse
no worries......
jpinoy said:
Added that services.jar as well in my previous post.. so there should be one for stock and one for 1% MOD... I hope..
Click to expand...
Click to collapse
Quick question... Is this the services.jar from Gingerblur? As of right now, gingerblur does not have the percentage numbers shown on the status bar... So, will your services.jar also add the numbers, or did you just use the services.jar file that came with gingerblur (which is what I did)? Guess, I could just flash and see...
Swiftks said:
Quick question... Is this the services.jar from Gingerblur? As of right now, gingerblur does not have the percentage numbers shown on the status bar... So, will your services.jar also add the numbers, or did you just use the services.jar file that came with gingerblur (which is what I did)? Guess, I could just flash and see...
Click to expand...
Click to collapse
Yup, pulled this from gingerblur v3.5, thoutght this was added to v3.5 per change log:
Changelog
Version 3.5:
- Lowered ringer delay (thanks Ririal)
- Re-added Webtop hack for 1.8.3!
- Updated Music application
- Updated Maps application
- Added 1080p recording to camera application (thanks zove)
- 1% battery mod now added (battery gauge more accurately reflects battery)
- Gingerbread fonts verified
- Flash 10.3 added
- Boot animation color corrected
- Bloatware .zip updated for 1.8.3 applications!
jpinoy said:
Yup, pulled this from gingerblur v3.5, if it doesn't, then I would suggest using the one you modded to make it work on yours.. I'll download the 1% MOD for GB v3.5 and replace the one I have now.. thanks for checking!
Click to expand...
Click to collapse
I used the stock gingerblur services.jar too. We are on the same page. The 1% battery mod works just fine under settings and with widgets, etc. But it doesn't show the individual numbers yet in the status bar within the battery icon. I believe I remember Kenn saying that he hadn't implemented this yet.
Swiftks said:
I used the stock gingerblur services.jar too. We are on the same page. The 1% battery mod works just fine under settings and with widgets, etc. But it doesn't show the individual numbers yet in the status bar within the battery icon. I believe I remember Kenn saying that he hadn't implemented this yet.
Click to expand...
Click to collapse
Ah... I just extracted Kenn's battery-mod and it's just the framework-res.apk with all the battery icons with 1% increase, no services.jar in there... so, most likely the services.jar in v3.5 should have the right files, it was just needing the updated framework-res.apk with the icons that included the 1% increase for it to point to... so, it should work, but I don't have gingerblur installed to test it..
Let me know if it works....
I'm trying to change the status/top bar of a CM7 theme using UOT Kitchen. The first time I ever attempted this was last night. Followed the instructions step by step; everything was good. But when I flashed it, nothing changed.
My question is, when uploading files to UOT it says for GB Rom's upload the framework and system apk. For CM7 Roms just upload the theme apk i.e. Cyanbread. Seeing how CM7 is GB thats where I'm confused. Should I upload just the theme apk or the framework and system apks? Or should I upload them all?
TreyDaPrince said:
I'm trying to change the status/top bar of a CM7 theme using UOT Kitchen. The first time I ever attempted this was last night. Followed the instructions step by step; everything was good. But when I flashed it, nothing changed.
My question is, when uploading files to UOT it says for GB Rom's upload the framework and system apk. For CM7 Roms just upload the theme apk i.e. Cyanbread. Seeing how CM7 is GB thats where I'm confused. Should I upload just the theme apk or the framework and system apks? Or should I upload them all?
Click to expand...
Click to collapse
I read somewhere else that UOT might not be updated yet for 2.3.5 Gingerbread like the latest AOSP roms are running.
Sent courtesy of SID6.7 and Tapatalk
TreyDaPrince said:
I'm trying to change the status/top bar of a CM7 theme using UOT Kitchen. The first time I ever attempted this was last night. Followed the instructions step by step; everything was good. But when I flashed it, nothing changed.
My question is, when uploading files to UOT it says for GB Rom's upload the framework and system apk. For CM7 Roms just upload the theme apk i.e. Cyanbread. Seeing how CM7 is GB thats where I'm confused. Should I upload just the theme apk or the framework and system apks? Or should I upload them all?
Click to expand...
Click to collapse
I only theme out my framework-res.apk and my SystemUI.apk. The SystemUI.apk is the stock look that you get on Gingerbread without any modifications. If you unzip if with 7zip you'll see what I mean. I've never flashed it into a live/booted rom. I modify my files pngs mostly and let the kitchen do the hard work (the files I still don't understand), then replace the SystemUI.apk and the framework-res.apk into the CMupdate.zip file. There is probably a more preferable way to do it, but I don't switch themes a lot (and the theme chooser doesn't theme everything I need anyway)
I know this way will work as I've gotten my edits into these today/yesterday
http://forum.xda-developers.com/showthread.php?t=1115904
lmt1979 said:
I only theme out my framework-res.apk and my SystemUI.apk. The SystemUI.apk is the stock look that you get on Gingerbread without any modifications. If you unzip if with 7zip you'll see what I mean. I've never flashed it into a live/booted rom. I modify my files pngs mostly and let the kitchen do the hard work (the files I still don't understand), then replace the SystemUI.apk and the framework-res.apk into the CMupdate.zip file. There is probably a more preferable way to do it, but I don't switch themes a lot (and the theme chooser doesn't theme everything I need anyway)
I know this way will work as I've gotten my edits into these today/yesterday
http://forum.xda-developers.com/showthread.php?t=1115904
Click to expand...
Click to collapse
Thanks for the input.
Somebody in the "Share your RAZR screenshots here" thread ask if i could upload my statusbarmod - here it is
Modded by myself and UOT-Kitchen. Just a simple, nice modification.
Included:
- black statusbar background
- custom battery icon which displays in 10% steps
- ICS windows animations (i noticed no change)
Works on stock 651.150.1.Retail.en.EU (leaked android 2.3.6 Version, therefore no carrier) GSM RAZR.
I dont know if it works on other versions. if you test it, please be sure to have CWM on boot and done a backup!
Install:
- Flash zip via CWM or unzip the file and place SystemUI.apk and framework-res.apk manually.
have fun
appreciate
I really wanna try this but i just got my phone set up to how i want it.. Will this do a data wipe? P.s Im On gsm and on the latest asain update
Has anyone tried it on a GSM XT910 with the Brazil stock rom???
Sent from my Xoom using Xparent Cyan Tapatalk
Flava said:
I really wanna try this but i just got my phone set up to how i want it.. Will this do a data wipe? P.s Im On gsm and on the latest asain update
Click to expand...
Click to collapse
This will only replace the systemUI.apk an framework-res.apk.
i dont know if it will work on your device.
How
How do i do it manually??? Where do i find the files to replace. ?
Thanks
SystemUI.apk @ system/app
framework-res.apk @ system/framework
Permissions like the other files there (i think it was rw/r/r)
does this work on system version 651.167.19.XT910.Retail.en.EU - 2.3.6?
How to manually apply this mod to framework-res.apk because I replaced battery icons from sense with percentage and now is 20% step, I don't want modify status bar and others just need to make 10% steps shows in battery icon.
Thanks in advance
it will be working on 2.3.6?
underface said:
it will be working on 2.3.6?
Click to expand...
Click to collapse
I can tell it's not working for me. I'm on stock 2.3.6 651.167.19.XT910.Retail.en.EU
I tried to install it manually, but the phone goes bootloop every time.
As the possibility to remove carrier name was what I was the most interest into (my carrier name is 2 words long!), I had to choose another MOD which is also offering status bar toggles... but no battery percentage in the status bar
This can also be done pretty easily using the rom toolbox app. I think I made the mistake of not backing up the original icons and such, which became an issue when trying to update to .181.
This is Honeycomb battery icon with charging animation.
Flashable zip file(Tested working in Amon-Ra)
Compatible with:
CleanROM 2.0 Ice Cream Sandwich Edition - 4.0.1
SenselessROM 2.0 ICS Edition
Should be compatible with any other ICS ROM
Thanks to fernando sor for his 1% framework-res.
Works on RezRom. Thanks!
What did you use to make this? UOT? I noticed that trying to upload com.htc.resources.apk on there, the file is too big, which sucks, because I use it for every Rom I use. I hope they update the max size for ICS
Sent from my ADR6425LVW using XDA App
MrSmith317 said:
This is 10% Honeycomb battery icon with charging animation.
Flashable zip file(Tested working in Amon-Ra)
Compatible with:
CleanROM 2.0 Ice Cream Sandwich Edition - 4.0.1
SenselessROM 2.0 ICS Edition
Should be compatible with any other ICS ROM
Click to expand...
Click to collapse
This is great thanks!! Is there anyway we could maybe get a 1% Icon, I know its alot of work but you might be able to just snag all the files you need from a UOT 1% mod.
username235 said:
What did you use to make this? UOT? I noticed that trying to upload com.htc.resources.apk on there, the file is too big, which sucks, because I use it for every Rom I use. I hope they update the max size for ICS
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
I used the images from UOT and yanked my own framework-res in order to make it. It's a pain because ICS hasn't been available long enough for UOT to support it. But it's not too harsh. I'll put up a 1% soon.
There's a problem with decompiling ics system apks, me and Scott were just talking about this over in AC, it looks like there is a fix but you need to use 2 different versions of apk tool to recompile and compile the framework and systemui apks
Sent from my ADR6425LVW using Tapatalk
In order to save me some time where are the images located? And could I pull them from a different Rom and put them in senseless re zip the Rom and flash it?
sent from my newly unlocked Rezound
Updated OP with 1% battery.
pwned3 said:
In order to save me some time where are the images located? And could I pull them from a different Rom and put them in senseless re zip the Rom and flash it?
sent from my newly unlocked Rezound
Click to expand...
Click to collapse
Yes you can swap the images with whatever you'd like. Look in /system/app/framework-res.apk You have to uncompress it like a zip file, then in the res/drawable-hdpi and res/drawable-xhdpi replace the stat_sys_battery* icons with your own. Then zip it back up(use store compression) , replace your framework-res.apk with the one you just created and you're all set.
Would I have issues flashing the 1% zip if I already flashed the 10% zip?
Sent from my ADR6425LVW using Tapatalk
DbZ Gokuu said:
Would I have issues flashing the 1% zip if I already flashed the 10% zip?
Sent from my ADR6425LVW using Tapatalk
Click to expand...
Click to collapse
Nope, bounce back and forth at will...exact same framework just changed the xml to show every 1%.
Thanks alot for this I like the honeycomb alot better than the stock sense ics roms.
MrSmith317 said:
Yes you can swap the images with whatever you'd like. Look in /system/app/framework-res.apk You have to uncompress it like a zip file, then in the res/drawable-hdpi and res/drawable-xhdpi replace the stat_sys_battery* icons with your own. Then zip it back up(use store compression) , replace your framework-res.apk with the one you just created and you're all set.
Click to expand...
Click to collapse
thank you so much for posting this...i have already replaced a few icons i couldnt stand thanks to this
I am running a Stock 98.72.165 on my stockside OG RAzr that has been debloated manually by me.
I am trying to find the proper .zip file to add the following:
1% Battery Mod
Toggles
Center Clock
I have tried a few zips from some older threads especially the 1% battery odex for .16, from this thread
http://forum.xda-developers.com/showthread.php?t=2132420
but it did not boot.
Any guidance would be great!
Also, is the 1% battery mod as simple as just replacing the files in systemui.apk in the res file with the 1-100% .pngs? or is there something else needed to get it to read all of them and not just the ones in there already which are just 12...(except I dont know how to make a zip file to do that!, or dont know a way to paste them into the frameworkres apk....=( )
Here is nice tutorial by alteredlikeness. Both 1% and toggles works for me on xt910 as well.
http://forum.xda-developers.com/showthread.php?t=1827046
Hello me!! Its me again!!