I know for the most part about opening framework.apk and swapping out the images and the XML files. What I can't seem to find is how to regenerate the resource file. I want to add the accurate battery mod to KB1. I'm not leaving it. I've gotten more than 24 hrs of battery out of it and it's working great with the stock+voodoo. Can anyone point me in the right direction?
X10D3 said:
I know for the most part about opening framework.apk and swapping out the images and the XML files. What I can't seem to find is how to regenerate the resource file. I want to add the accurate battery mod to KB1. I'm not leaving it. I've gotten more than 24 hrs of battery out of it and it's working great with the stock+voodoo. Can anyone point me in the right direction?
Click to expand...
Click to collapse
the EASIEST way for you to accomplish what you want with minimal work is going to be, copy your framework-res.apk from /system/framework/ to your computer and use the UOT kitchen to generate what you want.
http://uot.dakra.lt/
Causes boot loops
- From my Cappy
X10D3 said:
Causes boot loops
- From my Cappy
Click to expand...
Click to collapse
Are you on bone-stock rom?
if so, you CANNOT apply any framework edits, you have to be running a deodexed rom
How can I deodex?
X10D3 said:
How can I deodex?
Click to expand...
Click to collapse
you have some reading to do.....
start here:
http://forum.xda-developers.com/showthread.php?t=928955
I found this. ..
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
After it's deodexed I can install/modify all that I want?
X10D3 said:
I found this. ..
http://www.droidforums.net/forum/xeudoxus/47283-release-xultimate.html
After it's deodexed I can install/modify all that I want?
Click to expand...
Click to collapse
Basically. Just use the deodexed version I sent you a link for as a base and mod the crap out of it.
Sent from my HTC Vision
Related
So I have two questions regarding the icons in the "taskbar" (ie 3G, BT, WIFI, time, etc)...
1. Is it possible to make these icons smaller? If I have Service, BT on and the phone on Vibrate the taskbar gets filled up pretty quickly and I was wondering if there was a way to shrink these down?
2. Has anyone been able to replace the battery icon with a percentage?
Thanks.
Stigy said:
So I have two questions regarding the icons in the "taskbar" (ie 3G, BT, WIFI, time, etc)...
1. Is it possible to make these icons smaller? If I have Service, BT on and the phone on Vibrate the taskbar gets filled up pretty quickly and I was wondering if there was a way to shrink these down?
2. Has anyone been able to replace the battery icon with a percentage?
Thanks.
Click to expand...
Click to collapse
Any of that is possible by editing the .xml files.
supremeteam256 said:
Any of that is possible by editing the .xml files.
Click to expand...
Click to collapse
So I would have to edit these .xml files (location?) and then resign the update and flash my phone?
Stigy said:
So I would have to edit these .xml files (location?) and then resign the update and flash my phone?
Click to expand...
Click to collapse
You can't edit the compiled xml files straight from an apk. You'd have to rebuild that apk from the source.
goldenarmZ said:
You can't edit the compiled xml files straight from an apk. You'd have to rebuild that apk from the source.
Click to expand...
Click to collapse
Okay so do you know which apk the battery icon is in?
I'm surprised no one has replaced the battery icon with a percentage yet.
Thanks.
I *think* it's in framework-res.. let me just check.
Edit: yep.. /system/framework/framework-res.apk
goldenarmZ said:
I *think* it's in framework-res.. let me just check.
Edit: yep.. /system/framework/framework-res.apk
Click to expand...
Click to collapse
Okay so I can go in there, edit the files accordingly and just re-push that file via adb correct? I would have NO idea what I was doing a few months back. Its so awesome to be involved in these forums.
Thanks in advance.
Stigy said:
Okay so I can go in there, edit the files accordingly and just re-push that file via adb correct? I would have NO idea what I was doing a few months back. Its so awesome to be involved in these forums.
Thanks in advance.
Click to expand...
Click to collapse
You can edit the images that way, but if you want to edit the xml's you'll have to pull them from the android source and recompile through eclipse. The xml files within an apk are in binary format and you can only really change them with a hex editor.. not very practical.
The documentation here will help you get started with the source:
http://source.android.com/download
You might also want to run through the "hello world" project to get used to compiling with eclipse.
Once you start digging around in the source you're getting deep into the geek sh*t.. It may seem daunting at first but you can accomplish so much.
This falls under "theming".. theres some good info for you here:
http://forum.xda-developers.com/showthread.php?t=471586
goldenarmZ said:
You can edit the images that way, but if you want to edit the xml's you'll have to pull them from the android source and recompile through eclipse. The xml files within an apk are in binary format and you can only really change them with a hex editor.. not very practical.
The documentation here will help you get started with the source:
http://source.android.com/download
You might also want to run through the "hello world" project to get used to compiling with eclipse.
Once you start digging around in the source you're getting deep into the geek sh*t.. It may seem daunting at first but you can accomplish so much.
This falls under "theming".. theres some good info for you here:
http://forum.xda-developers.com/showthread.php?t=471586
Click to expand...
Click to collapse
Perfect, thanks.
Anyone know where I can find a stock theme for Cognition? I mean completely stock, like out the box looking. Again THEME only lol, please don't tell me to revert back to a stock ROM
I'm currently running Cog 2.3b6
Um as in samsung stock or ASOP?
I don't know if there really is one come to think of it.
On Cognitions latest and greatest. Don't ask what version DG pumps em' out to fast!
avgjoegeek said:
Um as in samsung stock or ASOP?
I don't know if there really is one come to think of it.
On Cognitions latest and greatest. Don't ask what version DG pumps em' out to fast!
Click to expand...
Click to collapse
Samsung Stock
Um... AFAIK it's already samsung stock theme? I haven't seen anything in the changelog lately saying he has done a new theme with cog...
david717 said:
Um... AFAIK it's already samsung stock theme? I haven't seen anything in the changelog lately saying he has done a new theme with cog...
Click to expand...
Click to collapse
I don't want the numbers in the battery icons
Hrm.. could find the stock battery images from a jh7 OTA zip and put them into the framework-res.apk before you flash Cog on your system next time
avgjoegeek said:
Hrm.. could find the stock battery images from a jh7 OTA zip and put them into the framework-res.apk before you flash Cog on your system next time
Click to expand...
Click to collapse
Yeah, was hoping not to flash again lol. I have tried placing other framework battery icons into a different framework. Sometimes I get success and sometimes they either don't show up or they cause crazy FCs... do you have any idea why?
Sent from my SAMSUNG-SGH-I897 using XDA App
mikejames07 said:
Yeah, was hoping not to flash again lol. I have tried placing other framework battery icons into a different framework. Sometimes I get success and sometimes they either don't show up or they cause crazy FCs... do you have any idea why?
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
yea bc you have to flash changes to the framework or use a metamorph style file. find a theme flash or metamorph. dump it. delete all the files except the frame work. now in the framework open the res folder then delete all the other folder except drawable-hdpi. now input ONLY the batt images you want with the correct file names. re compile and flash or meta apply
aceman0455 said:
yea bc you have to flash changes to the framework or use a metamorph style file. find a theme flash or metamorph. dump it. delete all the files except the frame work. now in the framework open the res folder then delete all the other folder except drawable-hdpi. now input ONLY the batt images you want with the correct file names. re compile and flash or meta apply
Click to expand...
Click to collapse
When u say dump, you mean unzip right? Just want to be sure lol.... Thanks a million for your help!
mikejames07 said:
When u say dump, you mean unzip right? Just want to be sure lol.... Thanks a million for your help!
Click to expand...
Click to collapse
You will need the original xml files from ji6 framework too inside framework-res/res/drawable:
stat_sys_battery_charge.xml
stat_sys_battery.xml
zzz_stat_sys_battery_1.xml
My request is a zip file to remove clock from the taskbar. If this is done already, please point me in the right direction. I have OTA 2.2, rooted, and I deodexed with xUltimate, pretty much stripped all bloatware. Am using the UOT Kitchen to do a battery as we speak, but would like to get rid of the clock in the taskbar. Any help is greatly appreciated. Thank you.
**EDIT
apparently the UOT Kitchen doesnt like my framework-res. uploaded and only changed to castaway battery and get tnoghing but force closes...grrrrr! any suggestions here too is appreciated.
Hrm. There's one to RESTORE it. But remove it... hm. Not sure.
The sbrissen mod includes clock options. Install it using clockwork. Then once booted, go into settings--> date and time and you'll find what you need.
http://forum.xda-developers.com/showthread.php?t=1030028
Pretty sure that's a service.jar edit. I haven't seen a zip just yet but I'm sure if there's interest someone will put something together.
Sent from my SCH-I500 using Tapatalk
sunder74 said:
Pretty sure that's a service.jar edit. I haven't seen a zip just yet but I'm sure if there's interest someone will put something together.
Sent from my SCH-I500 using Tapatalk
Click to expand...
Click to collapse
Sbrissen mods include the option to remove the clock amongst many other things
We don't bother making remove clock service jars anymore when his mods allow u to change it on the fly rather than fully removing it like we used to have to
Just flash his mods
Sbrissen mod was just what I needed. Thank you all. Now if I can just find a way to change the stock battery to "Castaway" id be set. Im not much for acc bat. Thanks again.
I've been looking around for a few hours now trying to figure out how to edit these xml files with no luck. I've found numerous tutorials but none of them seem to get me in the right direction. I can't get passed opening the files.
I've tried TextWrangler on my Mac and Notepad++ in Windows ... both give me a bunch of giberish.
I am able to see a few lines of txt like layout_height and textColor but there are no values listed to edit??? Maybe I'm looking at the wrong xml files?
Ultimately I'm trying to see if I can adjust the layout and txt color of the notification pulldown.
Any suggestions?
KaneOfMars said:
I've been looking around for a few hours now trying to figure out how to edit these xml files with no luck. I've found numerous tutorials but none of them seem to get me in the right direction. I can't get passed opening the files.
I've tried TextWrangler on my Mac and Notepad++ in Windows ... both give me a bunch of giberish.
I am able to see a few lines of txt like layout_height and textColor but there are no values listed to edit??? Maybe I'm looking at the wrong xml files?
Ultimately I'm trying to see if I can adjust the layout and txt color of the notification pulldown.
Any suggestions?
Click to expand...
Click to collapse
When you go to extract the apk, just decompile, DO NOT extract. (If using apkmanager)
Then I use Notepad++ for any changes. Just remember to not extract the apk, just decompile it, then go into the projects folder and it will be in there.
What XML files are you trying to edit?
spc_hicks09 said:
When you go to extract the apk, just decompile, DO NOT extract. (If using apkmanager)
Then I use Notepad++ for any changes. Just remember to not extract the apk, just decompile it, then go into the projects folder and it will be in there.
What XML files are you trying to edit?
Click to expand...
Click to collapse
What he said.
I will try to be on irc tonight if anyone wants any help with anything. I need to try to get things going myself lol!
mtmichaelson said:
What he said.
I will try to be on irc tonight if anyone wants any help with anything. I need to try to get things going myself lol!
Click to expand...
Click to collapse
I only know that because YOU told me lol!
ah, I see now ... I extracted instead of decompiling. I'll give that a try.
I'm not sure which ones to edit ... I started with status_bar_expanded.xml
I want to see if I can adjust the size of the section with the toggles and change the color of the text.
Which brings up another question ... do I edit the ones in framework-res or lge-res? or both?
KaneOfMars said:
ah, I see now ... I extracted instead of decompiling. I'll give that a try.
I'm not sure which ones to edit ... I started with status_bar_expanded.xml
I want to see if I can adjust the size of the section with the toggles and change the color of the text.
Which brings up another question ... do I edit the ones in framework-res or lge-res? or both?
Click to expand...
Click to collapse
I believe you can actually adjust the size of that by adjusting the size of the images. Try making the images wider, and leave the height the same, and it "should" shrink the images, and in turn shrink the bar.
Sent from my VS910 4G using xda premium
spc_hicks09 said:
I only know that because YOU told me lol!
Click to expand...
Click to collapse
Lol, that's what I'm here for!
Sent from my VS910 4G using xda premium
mtmichaelson said:
I believe you can actually adjust the size of that by adjusting the size of the images. Try making the images wider, and leave the height the same, and it "should" shrink the images, and in turn shrink the bar.
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
sweet, I'll try that first ... can't make heads or tales out of these xml files
KaneOfMars said:
sweet, I'll try that first ... can't make heads or tales out of these xml files
Click to expand...
Click to collapse
Lol, they can be a bit daunting!
Sent from my VS910 4G using xda premium
spc_hicks09 said:
When you go to extract the apk, just decompile, DO NOT extract. (If using apkmanager)
Then I use Notepad++ for any changes. Just remember to not extract the apk, just decompile it, then go into the projects folder and it will be in there.
What XML files are you trying to edit?
Click to expand...
Click to collapse
Thanks.. I have been looking for this answer also
sent from my LG Revolt empowered by Fusion
KaneOfMars said:
ah, I see now ... I extracted instead of decompiling. I'll give that a try.
I'm not sure which ones to edit ... I started with status_bar_expanded.xml
I want to see if I can adjust the size of the section with the toggles and change the color of the text.
Which brings up another question ... do I edit the ones in framework-res or lge-res? or both?
Click to expand...
Click to collapse
I have been working on something myself and after several failed attempts I used UOT Kitchen, edited some files in both framework-res.apk, lge-res.apk,(using paint.net) added a wallpaper I found, installed an adw themed launcher I just have no freakin idea how to put everything in a zip to flash it in cwm. (I can add files and folders to a .zip, just need help with the scripts and all)
sent from my LG Revolt empowered by Fusion
Pics are what i have so far.. not planning on releasing this unless someone really wants it, just practicing on my own phone..
drt054 said:
I have been working on something myself and after several failed attempts I used UOT Kitchen, edited some files in both framework-res.apk, lge-res.apk,(using paint.net) added a wallpaper I found, installed an adw themed launcher I just have no freakin idea how to put everything in a zip to flash it in cwm. (I can add files and folders to a .zip, just need help with the scripts and all)
sent from my LG Revolt empowered by Fusion
Pics are what i have so far.. not planning on releasing this unless someone really wants it, just practicing on my own phone..
Click to expand...
Click to collapse
Looks good! Come on irc tonight and I can help you with the cwm script, or send me a zip with the .apks that you edited, and I can make a zip for you.
Sent from my VS910 4G using xda premium
drt054 said:
I have been working on something myself and after several failed attempts I used UOT Kitchen, edited some files in both framework-res.apk, lge-res.apk,(using paint.net) added a wallpaper I found, installed an adw themed launcher I just have no freakin idea how to put everything in a zip to flash it in cwm. (I can add files and folders to a .zip, just need help with the scripts and all)
Pics are what i have so far.. not planning on releasing this unless someone really wants it, just practicing on my own phone..
Click to expand...
Click to collapse
Looks good so far... How did you change the color of the app labels to red? Was that in UOT Kitchen?
As far as the update zip... I couldn't quite figure it out but I got it to work. There's probably an easier way, but i extracted a zip I downloaded from UOT and replaced the framework_res with my updated one. Then I used testsign.jar (requires java SDK) to sign the update.
I dont have access to the links I found for this, if someone else has a better way please let us know.
Sent from my ICS'd Revolt Bryce Device
KaneOfMars said:
Looks good so far... How did you change the color of the app labels to red? Was that in UOT Kitchen?
As far as the update zip... I couldn't quite figure it out but I got it to work. There's probably an easier way, but i extracted a zip I downloaded from UOT and replaced the framework_res with my updated one. Then I used testsign.jar (requires java SDK) to sign the update.
I dont have access to the links I found for this, if someone else has a better way please let us know.
Sent from my ICS'd Revolt Bryce Device
Click to expand...
Click to collapse
You do not have to sign the zip for cwm.
Sent from my VS910 4G using xda premium
mtmichaelson said:
You do not have to sign the zip for cwm.
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
SWEET! Thanks.
Also, here's a screenshot of what I was working on (I missed one )
Drt that looks really nice. I think you should release it the more people for development the better!!
I've Revolted have you?
KaneOfMars said:
SWEET! Thanks.
Also, here's a screenshot of what I was working on (I missed one )
Click to expand...
Click to collapse
Try 33B5E5 for the color, it'll match better ;-) haven't been anywhere near home or my laptop, and won't be until Sunday... I like the tiny button idea a lot!
Revolting Revolution. Tapatalk.
Definitely want to release it, also I've already changed the color to match the theme but haven't had a chance to flash it yet
Sent from my ICS'd Revolt Bryce Device
I like the buttons for the notification page.
I've Revolted have you?
KaneOfMars said:
Looks good so far... How did you change the color of the app labels to red? Was that in UOT Kitchen?
As far as the update zip... I couldn't quite figure it out but I got it to work. There's probably an easier way, but i extracted a zip I downloaded from UOT and replaced the framework_res with my updated one. Then I used testsign.jar (requires java SDK) to sign the update.
I dont have access to the links I found for this, if someone else has a better way please let us know.
Sent from my ICS'd Revolt Bryce Device
Click to expand...
Click to collapse
Thanks MT.. I will try to get on.. what site and channel? The app labels I can't take credit for. I installed adw launcher and a free red theme.. would have to look it up again. That takes care of the dock and app drawer and icons and labels. I guess you would have to install adw and the theme yourself to get the whole effect.
The notification pull down menu I edited in UOT except for the gps, bt, airplane ect was just MT's Revolt icons I just colored them red from green using paint.net. I want to change the top bar icons.. just have to find some I like. The battery mod was in UOT Kitchen.
I tried to set the wallpaper as "default_wallpaper" in lge-res.apk but after replacing the lge-res.apk in /system/framework it doesn't actually set the wallpaper after rebooting. Wonder if it would after flashing if that makes a difference? or would that be in the script? Or could I only do that if I were modding a entire ROM?
I will try to do something with adw launcher so I can call it my own but lacking time right now. Thanks for the help!!
sent from my LG Revolt empowered by Fusion
THS Build 6.5 is now out, and I wasn't sure if the accurate battery for build6.0/6.1 was going to work since the SystemUI.apks have different file sizes.
Therefore, I decided to make one from scratch.
I just took gunnermike's mod and applied it to THS 6.5's SystemUI.apk. so all the credit goes to him
This is mostly for myself, but I decided to share it since others might find it useful too.
Enjoy!
Flashed it, works great. Thanks!
Would you explain how you did this please? I'm sure there's a lot of us who are interested.
AuroEdge said:
Would you explain how you did this please? I'm sure there's a lot of us who are interested.
Click to expand...
Click to collapse
Sure.. I'll list the general steps, but obviously it's too much to explain every detail, so you must know a bit about how to use ADB, Android SDK, etc..
1. Pull /system/framework/framework-res.apk & /system/app/SystemUI.apk from your phone or extract from the THS6.5 .zip
2. Use APKTool to decompile framework-res.apk (apktool if framework-res.apk)
3. Use APKManager to decompile SystemUI.apk
4. Replace the stat_sys_battery.xml & stat_sys_battery_charge.xml in /res/drawable/ with the "accurate" versions (You can do that by reusing previous versions or get it via UT Kitchen)
5. Replace/add the battery pngs files in /res/drawable-hdpi
6. Compile using APKManager as system apk
7. Create flashable .zip file for use with CWM. You can do this by reusing an existing version and just opening the .zip and replacing some files..
Well.. hope that gives you an idea.. You can find everything online right here in XDA Developers forums or via Google.. That's how I learned too..
Many thanks dude; just what the Doktor ordered!
This may not be the appropriate place to ask, but could somebody compile a stock battery that is flashable? The Mesmerize versions of THS come with a accurate battery mod preinstalled, but I'd much rather have the stock battery.
nograsswillgrow said:
This may not be the appropriate place to ask, but could somebody compile a stock battery that is flashable? The Mesmerize versions of THS come with a accurate battery mod preinstalled, but I'd much rather have the stock battery.
Click to expand...
Click to collapse
I can make one for you when I have time Monday..
Don't have the necessary tools here at home
neozen21 said:
I can make one for you when I have time Monday..
Don't have the necessary tools here at home
Click to expand...
Click to collapse
That would be awesome, thank you!
Edit: actually you don't have to worry about it if you don't want, someone over at Rootzwiki put one up last night. Thank you anyway!
nograsswillgrow said:
That would be awesome, thank you!
Edit: actually you don't have to worry about it if you don't want, someone over at Rootzwiki put one up last night. Thank you anyway!
Click to expand...
Click to collapse
Lol.. I started already (but haven't finished).. I see now why you don't like the accurate battery.. it's an Android!
I see that post on Rootzwiki, it should have what you are looking for..