Hi all,
A friend of mine just acquired a captivate and asked if he can get a good battery widget etc but I suggested a battery percent icon. I haven't been able to find one, however. Is it possible/does it exist for the stock rom?
The phone has a captivate rooted stock rom (baseband I897UCKF1, Gingerbread.uckf1 - let me know if you need anything else)
Thanks!
it has to be deodexed so you can edit the right files. theres a kk4 rom out there he can use as well as a guide on how to do it. or you can use the kitchen to build a pack. i forget what kitchen i used. i think its the systemui.apk and a few jar or xml files that have to be tinkered with. search for accurate battery mod.
^Nope, framework-res.apk
The images need to be added to drawable-hdpi 1 for every percent, for draining and charging, for a grand total of 200.
Then in drawable you need to edit stat_sys_battery.xml and stat_sys_batterycharge.xml to control the newly added images. The ROM does need to be deodexed, you're right about that.
Uot kitchen is great for stuff like this for beginners. Pick out your battery and whatever else you would like, upload the files, wait, download, flash, profit.
Thanks for the suggesstion! Ill give it a try.
Sent from my Desire HD using xda premium
Related
WARNING - THIS IS NOT A FLASHABLE ROM, DO NOT TRY IT, DON'T EVEN ASK ABOUT IT, I'M JUST GOING TO IGNORE YOU.
Removed, seemed to cause problems for some people
Ok, with that out of the way, in my continuing quest to perfect the new JI2 leaked rom for my own personal taste, I went ahead and deodexed the ROM, and thought I'd share my work for any other devs that want to package an update.zip with these. I have no idea how to add the new modem.bin to a flashable.zip, so I'm not even going to try packaging one.
FYI, this was made from a straight adb pull of /system and then deodexing the ROM using Danesh's fantastic auto-deodexer. Took a few tries to get the right bootclasspath for several files, so I figure I'll save other devs the headache and just post my work.
HOWEVER, this was done after I already rooted, installed busybox, and modified a few things to suit my tastes.
My modifications were:
1) Change lockscreen to Vanilla 2.1 lockscreen
2) modify framework-res.apk to support my vertical, accurate battery mod (http://forum.xda-developers.com/showthread.php?t=758797)
3) modify framework-res.apk and twframework-res.apk to use the default (non-glossy, see attached screenshot) touchwize drawable elements.
4) Edited build.prop to fix market not displaying all apps error
I'm sorry to anyone that wants a totally stock version of the files, but I've reached my boredom level for the day and don't feel like going back and deodexing the ROM again, and besides, the framework-res.apk and twframework-res.apk can just be pulled from any unmodified install and replaced without any issue, though the android.policy.jar will need to be deodexed again if you want the touchwiz lockscreen back.
UPDATE 1 (9/17/2010)
OK, well, I had some spare time, so I let it deodex from stock again while I was afk, so I'm attaching a zip file with ONLY the stock android.policy.jar (original twiz lockscreen) and stock framework-res.apk and twframework-res.apk.
Anyway, have fun, and please just give me credit if you use these in your own mod.
Cheers,
=)
~ Jocelyn
Well its fun to play with. I like the battery icon alot thanks
Sent from my vibrant
Thanks for this!
lol i was actually bugging eugene for the JI2
hahahah
scrizz said:
Thanks for this!
lol i was actually bugging eugene for the JI2
hahahah
Click to expand...
Click to collapse
I uploaded it ( Fully Build ) did you not get it?
Blue-segmented Battery Indicator Mod CWM Flashable zip, cooked in UOT Kitchen (online) from STOCK JL5 framework-res.apk (attached below). Please do not blame me if you brick your phone by flashing this to any ROM other than STOCK JL5. (STOCK Voodoo JL5 kernel is ok.)
Just copy to /sdcard and flash using CWM.
A perhaps more conservative approach would be to cook your own CWM flashable using UOT Kitchen (online):
http://circle.glx.nl/
XDA thread here: http://forum.xda-developers.com/showthread.php?t=775970
I say more conservative only in that the UOT Kitchen website will cook the precise version of the framework-res.apk that currently resides on your phone, thus eliminating any chance of versioning problems. This is very easy to do, even for a klutz like me. Takes all of ~15 minutes; no programming at all, just upload the framework-res.apk from your phone and download the resulting CWM flashable. Having said that, the attached flashable works fine on stock JL5.
It seems to me that this method may well represent a future trend in mod'ing, given that it is so flexible (configurable) and that the dev need only maintain a single website-based version of his/her code. Great job, QLIRATU, MENDOZINAS, AVREEN, and company!
Screen-by-screen instructions for Vibrant users, to avoid ambiguity:
(1) Make sure that you are running a deodexed ROM; otherwise this will not work. (E.g., krylon360 recently posted stock Vibrant Froyo JL5 flashables in both odexed and deodexed versions. Use the deodexed version).
(2) First Screen: I used the first version option on the first page of the website, "SCB with %, Version [A-J]". More specifically, I used Version B-White because I have black wallpaper.
(3) Second Screen: Choose "do not include icons" (that has to do with other mod'ing not applicable to Vibrant).
(4) Third screen: Choose "do not change notification status bar" (N/A to Vibrant).
(5) Fourth screen: Choose "do not include boot animation." (N/A to Vibrant).
(6) Fifth screen: Choose "not not include Windows animation" and disregard the warning in red. (N/A to Vibrant).
(7) Sixth screen: As detailed on website and in XDA thread, you can upload the version of framework-res.apk currently on your phone, or the version in the flashable zip file that you used to install your current ROM. If you do the latter, don't do what I did at first and try to upload the unzipped framework-res.apk from the flashable ROM file. You must unzip the flashable ROM file and then upload the unzipped framework-res.apk.
(7a) Note that after you upload, nothing happens until you press "Next," then the upload begins.
(8) Wait a couple of minutes for the cooking, then download cooked result from link provided and flash using CWM.
(9) It might be a good idea to un-install any previously-installed battery indicator mod (e.g., a battery indicator downloaded from Market) before installing this one, although I do not know whether this is necessary.
Enjoy!
P.S. Whatever you do, PLEASE do not donate to me. My income taxes are complicated enough as it is.
Thanks for this. Does this work on both odex and deodexed versions?
Shrivel said:
Thanks for this. Does this work on both odex and deodexed versions?
Click to expand...
Click to collapse
Reading does wonders he stated that this will only work on deodexed roms.
Sent from my SGH-T959 using XDA App
Jacosta said:
Reading does wonders he stated that this will only work on deodexed roms.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
To be fair, he only mentioned the deodexed restriction in regards to using UOT Kitchen, not for the original CWM .zip.
But thanks for the response.
How is the battery life?
Sent from my SGH-T959
Shrivel said:
Thanks for this. Does this work on both odex and deodexed versions?
Click to expand...
Click to collapse
Please see (1) in OP.
Shrivel said:
To be fair, he only mentioned the deodexed restriction in regards to using UOT Kitchen, not for the original CWM .zip.
But thanks for the response.
Click to expand...
Click to collapse
Right. This was cooked in UOT Kitchen; and UOT Kitchen only does deodexed. In general, odexed ROMs are not mod'able because parts of their applications are stored in various places.
See: http://forum.xda-developers.com/archive/index.php/t-709630.html
"Deodexed ROMs have their .apk's (which are basically the application packages) repackaged in a certain way. An "odex" can be thought of as a collection of parts of applications that have been pulled out and optimized before booting. This speeds up the boot process - in a way, it preloads part of the applications - but it also makes hacking those apps difficult because part of the original code is already extracted somewhere else.
Deodexing is just a process of putting those pieces back into the original applications. It takes a while to extract those parts and build the .dex cache (aka Dalvik cache), but only because the relevant parts aren't in an easy-to-access place for the system. The advantage of this is that an app can be modified effectively and the developer doesn't have to worry about conflicts from the separate odex part of the code.
So, short version: "Deodexed" ROMs have all their apps put back together. If an app can be themed, for example, a deodexed version of that app will not get messed up when the modified .apk tries to mesh with the odex of the original un-modified .apk. Because it's not there.
If you want an aftermarket theme, you need a deodexed ROM. I'm not sure if deodexing can be done to individual apps within a non-deodexed ROM."
Nayyak said:
How is the battery life?
Sent from my SGH-T959
Click to expand...
Click to collapse
You must mean battery life on JL5? (Because this mod will have microscopic or no effect on battery life.)
As to JL5, I am in the process of investigating JL5 compared to JL4. I will post results in due course.
BruceElliott said:
You must mean battery life on JL5? (Because this mod will have microscopic or no effect on battery life.)
As to JL5, I am in the process of investigating JL5 compared to JL4. I will post results in due course.
Click to expand...
Click to collapse
I feel bad now.
I was being sarcastic. Haven't you noticed the "how is the battery life?" phenomenon ?
Can I use UOT kitchen to customize other parts of the theme of any JL5 roms, like icons of status bar, boot animation?
smartmind said:
Can I use UOT kitchen to customize other parts of the theme of any JL5 roms, like icons of status bar, boot animation?
Click to expand...
Click to collapse
I believe not, but you will need to check with the UOT Kitchen peoople.
This will not work with Axura 2.2 with JL5 stock Voodoo5 Kernel. Got me stuck into into boot ani bootloop. I flashed back a recent Nandroid and was fine.
The Kernel may be based on stock but the framework-res.apk is too modified in the Rom to run this and is not based on JL5. Custom boot ani's in custom roms are tied into battery mods and through this crap way off.
Like the op said STOCK, and that must mean completely stock not just a kernel based on stock.
The search for an accurate battery mod that I can see with Axura continues.
Nayyak said:
I feel bad now.
I was being sarcastic. Haven't you noticed the "how is the battery life?" phenomenon ?
Click to expand...
Click to collapse
That's a good one! Sorry, I am a notoriously literal engineer.
smartmind said:
Can I use UOT kitchen to customize other parts of the theme of any JL5 roms, like icons of status bar, boot animation?
Click to expand...
Click to collapse
For some phone models, yes, but not for the Vibrant/Galaxy S, I believe. Check out the website to see. (It is not my website; I simply used it to cook the battery mod.)
12paq said:
This will not work with Axura 2.2 with JL5 stock Voodoo5 Kernel. Got me stuck into into boot ani bootloop. I flashed back a recent Nandroid and was fine.
The Kernel may be based on stock but the framework-res.apk is too modified in the Rom to run this and is not based on JL5. Custom boot ani's in custom roms are tied into battery mods and through this crap way off.
Like the op said STOCK, and that must mean completely stock not just a kernel based on stock.
The search for an accurate battery mod that I can see with Axura continues.
Click to expand...
Click to collapse
I may not be following your post very well. When you say "this" will not work with Axura 2.2 w/ JL5, are you talking about the flashable zip attached to the OP, or to the method using UOT Kitchen? I believe that UOT kitchen will cook whatever framework-res.apk you are currently running. Just copy your framework-res.apk to the root of your SD card and upload it to UOT kitchen to cook-in the segmented battery mod, if you have not already tried that. UOT kitchen is very easy to use, as I described in the OP, certainly easier than "continuing the search."
Hi!
I have been trying to extract the theme from this ROM
http://forum.xda-developers.com/showthread.php?t=869408
It looks awesome and I want to add some animations from a different ROM and use it with Darkys or Assonance for example but this seems to be much harder than I though unless someone has a quick and easy for dummies procedure for poor me that is.
It should be as easy as extracting the framework-res.apk, twframework-res.apk, mms.apk, bootanimation.zip and fonts as that is what is listed as being themed in the ROM thread. Then use the theme porter posted in the Android Themes section of XDA to inject them in your apk's, then manually change whatever didn't copy over.
rrrrramos said:
It should be as easy as extracting the framework-res.apk, twframework-res.apk, mms.apk, bootanimation.zip and fonts as that is what is listed as being themed in the ROM thread. Then use the theme porter posted in the Android Themes section of XDA to inject them in your apk's, then manually change whatever didn't copy over.
Click to expand...
Click to collapse
mmm sounds simple when you say it lol I will need to dig deep here it seems but that is a good post to point me towards the right path
I usually just extract the framework-res.apk and twframework-res.apk from the ROM I am taking the theme from and the ROM I want to put it in, then I copy the res/drawable-hdpi folder from the old apk into the new one. It is a quick/dirty method, and wont let you change font colors or add a circle battery mod to one without it, but I have never had problems with it before.
You also have to be sure it is compatible with the rom you are using. Some roms have different xml code behind and if you simply put the framework and tw framework in your rom you risk getting fc at boot and not getting past them.
Sent from my SAMSUNG-SGH-I897 using XDA App
Both are JPY Roms so I hope that is enough. I guess worst thing that could happen is having to flash again
shaolin95 said:
Both are JPY Roms so I hope that is enough. I guess worst thing that could happen is having to flash again
Click to expand...
Click to collapse
Try first with /system/framework/framework-res.apk and /system/framework/twframework-res.apk
I'm attaching a cwm zip file that has those files as found in Doc's 6.1 rom.
Just replace them with the files from whatever rom you want and keep that as a backup in case something goes wrong. It will save you from reflashing
If both are JPY roms then it shouldn't be an issue.
I tried doing what Ryukeima mentioned but I ended up with a Frankenstein of a theme as not all things from the them I wanted came over to the new one!
This is going to require some practice. That ROM has also some very nice Icons for Launcher Pro so is going to be another thing to look for..in fact I think I could be happy just getting those Icons.
shaolin95 said:
I tried doing what Ryukeima mentioned but I ended up with a Frankenstein of a theme as not all things from the them I wanted came over to the new one!
This is going to require some practice. That ROM has also some very nice Icons for Launcher Pro so is going to be another thing to look for..in fact I think I could be happy just getting those Icons.
Click to expand...
Click to collapse
Rip all the framework folder. Make a CWM zip and flash it over your ROM. It should work without problems. Then try to either apply animations on UOT kitchen or inject them with metamorph.
icezar1 said:
Rip all the framework folder. Make a CWM zip and flash it over your ROM. It should work without problems. Then try to either apply animations on UOT kitchen or inject them with metamorph.
Click to expand...
Click to collapse
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
viny2cool said:
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
Click to expand...
Click to collapse
To answer the first question, it won't straight out work. You have to add the images to the file 'framework-res.apk' in the 'drawable-hdpi' folder located within it. Different framework-res.apk's will differ from ROM to ROM, and will just FC or bootloop your phone if you use one that it doesn't like. That's why most themes have the ROM they will work with posted in the title. If it is the same base ROM (in the case of my phone, running Assonance, any JK3 theme will work), then it is as simple as drag & drop. But if it's between say Axura and Assonance, it would have to be manually changed as stated above, since there may be subtle differences in the framework.
As for the second question, here ya go
http://forum.xda-developers.com/showthread.php?t=717437
viny2cool said:
Sorry for my noobness...Just trying to learn this stuff
So if i rip out all framework folders from one rom and manually replace them in another rom (like i did for kernel..replacing zimage file)...will it work?
Also, can anyone tell me how to make a CWM zip...i know there is a post for that on XDA but i am not able to find it...
Click to expand...
Click to collapse
If the theme was made for JPY and the Rom you want to put it on is JPY, it should work. However, there are sometimes system apps which need to be installed with the theme. Easyest thing would be to rip it off, put it on your rom and see if it works. Experiment a bit, thats how you'll learn.
thanks and thanks.
Its really interesting to have a full control of your phone....so i am enjoying learning this stuff....tried using UOT kitchen but got errors...
I just want to modify notification bar...
I am on darky's 7.7...i will have to look for compatible theme
viny2cool said:
I am on darky's 7.7...i will have to look for compatible theme
Click to expand...
Click to collapse
There's plenty of jpy based themes in the i9000>theme section.
You could metamorph it if it doesn't require any xml edits... it looks like Marilyn img edits which could be taken foment that rom..
Sent from my SAMSUNG-SGH-I897 using XDA App
i have a question along these same lines. if one wanted to copy the notification pulldown from a different ROM|theme, how would you do so? im using Perception 9.5 which is built on JK3, but the Androdena theme is built on JPX files. all i want is the notification pulldown elements. can you just copy those image files over and go? i always see themers talking about 9.pngs and i was just wondering if they'd prohibit just a simple copy from one tw-framework to another.
I tried UOT kitchen, i got security issues. Im currently running Sons of Android ROM 4.2
.2 for SGH-T989.
MY QUESTIONS:
1.) When theming, what must be compatible in order to succeed?
Like the kernel, android version, LCD density?
2.) My current phone does not support 1% battery increments in framework.apk/res/drawable-hdpi nor in systemui.apk/res/drawable-hdpi...
Can I just copy and paste 1% pngs? or would i have to use uot kitchen, ninjamorph, etc.
All I really am trying to do is edit my battery icons.
Any help would be appreciated!!
Is anyone aware of a System UI mod to add battery percentage to the indicator for the First, without the need to install a secondary app?
Thank you. --Larry
amphi66 said:
Is anyone aware of a System UI mod to add battery percentage to the indicator for the First, without the need to install a secondary app?
Thank you. --Larry
Click to expand...
Click to collapse
A quick update:
Found the Notification Toggle app from the Play Store which does a very good job. Along with a large selection of some easy to use pull-down switches in the Notification Bar is a battery icon showing %. Actually very nice.
However, not being exactly what I was looking for I tried to use the OG Battery Icon Mod from XDA with my (mostly) stock (Odexed) ROM. It was unsuccessful.
Thinking it might be a problem with the Odexed ROM, I flashed CWM Recovery to replace my previous TWRP Recovery (for some reason the DeOdexed ROM des not flash with TWRP) and then flashed JMZ's DeOdexed v1.08 ROM. Unfortunately, I ended up the same failure when running the OGBattery Mod Tool (the tool was unable to download the systemui.apk).
Therefore, so far I am unable to make the UI modification, but am pleased to find the Notification Toggle App -- and with some help from Titanium Backup my phone is back where I wanted it, now running a DeOdexed ROM. I went back to TWRP Recovery. I have CWM on my A500 tablet, but TWRP just seems easier on the First.
--Larry
amphi66 said:
A quick update:
Found the Notification Toggle app from the Play Store which does a very good job. Along with a large selection of some easy to use pull-down switches in the Notification Bar is a battery icon showing %. Actually very nice.
However, not being exactly what I was looking for I tried to use the OG Battery Icon Mod from XDA with my (mostly) stock (Odexed) ROM. It was unsuccessful.
Thinking it might be a problem with the Odexed ROM, I flashed CWM Recovery to replace my previous TWRP Recovery (for some reason the DeOdexed ROM des not flash with TWRP) and then flashed JMZ's DeOdexed v1.08 ROM. Unfortunately, I ended up the same failure when running the OGBattery Mod Tool (the tool was unable to download the systemui.apk).
Therefore, so far I am unable to make the UI modification, but am pleased to find the Notification Toggle App -- and with some help from Titanium Backup my phone is back where I wanted it, now running a DeOdexed ROM. I went back to TWRP Recovery. I have CWM on my A500 tablet, but TWRP just seems easier on the First.
--Larry
Click to expand...
Click to collapse
You can use UOT kitchen. Just Google it. If you feel adventurous you can download my sense ROM and pull the diff battery mods I have there and push them to your device. All you need is systemui.apk. but this will only work if you are on a deodex ro.
Sent from my manta using Tapatalk 2
jmz said:
You can use UOT kitchen. Just Google it. If you feel adventurous you can download my sense ROM and pull the diff battery mods I have there and push them to your device. All you need is systemui.apk. but this will only work if you are on a deodex ro.
Sent from my manta using Tapatalk 2
Click to expand...
Click to collapse
Feeling adventurous, I downloaded your sense ROM & extracted it. In systemui.apk I see there are two (apparently duplicated) res folders and the sub-folders/files in res are also duplicated. Is this an error in the build or necessary as place-holders of sone kind. I thought I might try to replace the res folder in the deodexed ROM with this one, but it concerned me.
amphi66 said:
Feeling adventurous, I downloaded your sense ROM & extracted it. In systemui.apk I see there are two (apparently duplicated) res folders and the sub-folders/files in res are also duplicated. Is this an error in the build or necessary as place-holders of sone kind. I thought I might try to replace the res folder in the deodexed ROM with this one, but it concerned me.
Click to expand...
Click to collapse
I don't know what you mean. Can you screenshot it?
Sent from my HTC first using Tapatalk 2
jmz said:
I don't know what you mean. Can you screenshot it?
Sent from my HTC first using Tapatalk 2
Click to expand...
Click to collapse
Thank you for the response. I couldn't figure out how to attach here, so I posted a screenshot of the extracted systemui.apk from your Sense ROM at dev-host: http://d-h.st/VOr
Note that there are duplicate res folders. Also, in the res folders many of the sub-folders and: files also have duplicates, prompting my question. --Larry
amphi66 said:
Thank you for the response. I couldn't figure out how to attach here, so I posted a screenshot of the extracted systemui.apk from your Sense ROM at dev-host: http://d-h.st/VOr
Note that there are duplicate res folders. Also, in the res folders many of the sub-folders and: files also have duplicates, prompting my question. --Larry
Click to expand...
Click to collapse
@jmk : After the confusion (to me) I tried a couple of more things:
1. Replaced systemui.apk in stock ROM with the systemui.apk from your Sense ROM. That did give me a Sense horizontal battery with %, but was too small to see. I was hoping for the percent circle.
2. I used UOT Kitchen to attempt to make the modifcation, but Kitchen returned a SHTF error, so no results yet.
Success!
I loaded & set up JMZ's Sense ROM with the icons I wanted, then copied systemUI.apk to the sdcard. After restoring my "stock" ROM I renamed the systemUI.apk in /system, then copied the one from the sdcard to /system & reset the permissions. I now have my desired battery icons!
@ jMZ: Thank you for the guidance. --Larry