yashsingh1/xdaforums huggingface dataset:
[Vibrant Themes and Apps] untermensch:
the xml's that are responsible for the battery icon are located in the drawable

directory and are named stat_sys_battery.xml,stat_sys_battery_charge.xml

zzz_stat_sys_battery_1.xml. I think zzz_stat_sys_battery_1.xml may not be needed

on the vibrant but have not tested to see what happen's when left out of the apk

yet.

I attached the decompiled xml's to this post and it's pretty easy to work

out what is going on and do things like change animation speed or what ever.
[Vibrant Themes and Apps] s0niqu3:
That's basically correct, though you also need to decompile your stock framework-res.apk, and edit the public.xml file in /res/values to declare the 113 new PNG images and the zzz_stat_sys_battery1.xml files that need to be added.

And of course, when you recompile, retain the stock signature from the original apk.

Good luck, and cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] untermensch:
I have been using apk_manager and have been only been adding the .xml's and

png's then compile and delete the resources.arsc file the battery icons, and

the changed .xml's out of the keep folder. when I then decompile the generated

unsignedframework-res.apk and look at public.xml all the added image files and

and zzz_stat_sys_battery1.xml have been added to public.xml.
[Vibrant Themes and Apps] s0niqu3:
Huh, wow, do you know the version of apk manager you've been using?

And this works with simply adding the png files, and xml files to a decompiled, stock, non-previously-battery-mod framework-res.apk file to begin with?

Every time I try to compile (using apk manager 4.8 and the 4.9beta) without first editing the public.xml to declare all the new files, when attempting to compile, it will error out with ~114 errors that XXXXXX is present but not declared, and then it fails to generate a new resources.arsc file, thus rendering the new unsignedframework-res.apk completely unusable.

So if apk manager will now edit the public.xml automatically, this is a huge time saver and plus for anyone wanting to make mods like this.

Anyway, glad it works for you however it works,

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] untermensch:
I'm using 4.9 from this post:

http://xdaforums.com/showthread.php?t=695701

what might have made it work for me was that the first time I decompiled

the battery mod I decompiled "with dependencies" and then drag and dropped

the modded framework-res.apk to the script window which made all the

decompile errors go away, which might be helping with the compile.

I dumped factoryfs.rfs to a usb thumb drive under linux

dd if=factoryfs.rfs of=/dev/thumbdrive

and then zipped all the files and always pull unmodified files out of the zip

which also comes in handy to have access to the framework directory when

decompiling odex files.
[Vibrant Themes and Apps] s0niqu3:
Ok, yeah, basically I think that when you dragged the modded framework-res.apk into the script, you made apk manager decompile that file, the modified framework-res.apk that already had the declarations for the 114 new files, and not the stock framework-res.apk.

I've never had an issue decompiling a stock framework-res.apk, only ever had an issue trying to add new files to it, without first declaring them manually in public.xml.

And yeah, I also keep a backup of the stock system from JFD, JI2, and Eugene's new Frankin-twiz rom, and always pull from them too, but still never need to decompile framework-res.apk 'with dependencies' not sure why you'd need to really, seeing that its the dependency file for a lot of others, lol.

Thanks for helping clear that up for me, because I just tried it again, and apk manager 4.9 won't compile without me first editing the public.xml, in your case, you don't need to, because you already have a pre-modified public.xml.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] untermensch:
well at this point in the learning curve I was trying to get human readable

xml files from the modded apk, but was ending up with just the resource id's

for all the battery images. When I googled the error I got this page

http://code.google.com/p/android-apktool/wiki/FrameworkFiles

so I imported the framework and that fixed that issue, and seems like the way to

go if you are reversing existing code/mods, but I can already see the issue

if someone had to create this mod from scratch and the need to edit public.xml

so one last question:

when adding to public.xml you have lines like

<public type="id" name="show_password_checkbox" id="0x7f0b0122" />
<public type="id" name="wep_key_type" id="0x7f0b0123" />
<public type="id" name="wep_type_spinner" id="0x7f0b0124" />

how is the id chosen? just go to the end of the xml and continue incrementing,

so in this example the next id would be 0x7f0b0125.

and thanks for all your time.
[Vibrant Themes and Apps] s0niqu3:
Yep, that's exactly right, just increment from the previous largest ID.

Sometimes though the ID's appear out of order in the xml, so you have to do some hunting to find the largest ID, then just increment from there.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] samoelito:
anyway to make it work with JI2?
[Vibrant Themes and Apps] the3dman:
Check the thread here: http://xdaforums.com/showthread.php?t=784867
[Vibrant Themes and Apps] bstromberg:
Thanks for this...works great using Root Explorer to just copy and paste into /system/framework after a reboot...was missing this while using the Hybrid series ROMs

Much appreciated...
[Vibrant Themes and Apps] untermensch:
I submitted a feature request to apktool to have new resources found and added

to public.xml and I got this link in reply

http://xdaforums.com/showpost.php?p=7380557&postcount=68

so if I understood correctly editing public.xml may not be necessary for this mod.
[Vibrant Themes and Apps] s0niqu3:
Interesting, I read that thread to mean that since we need to use the new drawables/png files in code (we use them in the modified stat_sys_battery/charge/zzz xml files) we do still need to declare them in public.xml.

Again, that seems to fall in line with my experience, being unable to re-compile the apk (or at least build a new resources.arsc file) without editing public.xml first, but I'll try it again without editing public.xml when I have time later this weekend.

Regardless, thanks for the link, I'm by no means really experienced with android at the code level, but I just know that in my experiences, I've been unable to successfully recompile a working framework-res.apk after adding the mod files, without editing the public.xml file first.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] untermensch:
Ok here is my take s0niqu3's battery mod, I went with a minimalist look

and added a nice and smooth battery charging animation.

I also removed all the backgrounds on the mobile network icons.

I have also not included zzz_stat_sys_battery_1.xml because I do

not think it is used on the vibrant, been testing for a day and no

FC's like would be expected when a non-existent resource is called.
[Vibrant Themes and Apps] CompConfig:
Firtst off I wanted to say thank you to s0niqu3, I like your work.

I know because of the changes in JI2 the battery mod is different and I see they have some of them out on the other thread which I have already flashed. In your work you also added a MOD for the gmail and other notification icons which I really like. Is there a way those can be applied to JI2 or does that also require a whole new re-write?
[Vibrant Themes and Apps] s0niqu3:
Updated OP

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] zimphishmonger:
Nice work! Im getting around to updating mine as well, and I eventually would like to port ALL the varieties from the Desire OP to the Vibrant. I really should write a repacking framework script for this lol. Gonna kang some of your images cause they're cool, hope u dont mind ;)
[Vibrant Themes and Apps] s0niqu3:
Feel free to use the images, and thanks for the compliment =)

General FYI to anyone that reads this, anyone is free to use my work, but please think of it as a Creative Commons by-nc-sa license.

You can freely use my work if

by) you provide attribution/credit to me for my work

nc) your work is for non-commercial purposes only

sa) you agree to share your work back to the community too

I know almost everyone already follows all that, but I feel this clears up any confusion for good, and I'm copying this into my OP too.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] GameOver69:
I wanted to say GREAT WORK, as i love EUGENES ROM but didnt really like what was done to the TW battery, icons, and notification bar.

I have a question though. I see that you have restored the default galaxy bootup, but i was wondering if you can include, or let me know how to apply the shutdown from the international galaxy as well. I was able to do this with the stock rom rooted, but have been unsucessfule with the FrankenWiz rom. Thanks!
[Vibrant Themes and Apps] MTC44:
Other than nandroid, how can I reverse this? Just re-flash frankin twiz?
[Vibrant Themes and Apps] s0niqu3:
Hi,

You should be able to just push the /system/media/video/shutdown folder, with the config file in it, from this thread here:

http://xdaforums.com/showthread.php?t=732311&highlight=shutdown

I recommend:

adb shell

su

cd /system/media/video

rm -r shutdown

adb reboot recovery

wipe cache

adb shell

su

cd /system/media/video

mkdir shutdown

then just do an adb push ~path_to_downloaded_shutdown_folder /system/media/video/shutdown

I just tried it on my phone, and it worked fine, you probably don't need to reboot and clear cache, but its just force of habit with me, whenever I mod ANYTHING, I reboot into recovery and clear cache.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] s0niqu3:
Hi,

Yes, re-flashing frankin-twiz is basically the only other option aside from doing a nandroid restore.

Sorry, but with how quickly Eugene pushes out new roms, I'm not going to waste my time making "revert" files for every mod I make.

Maybe once we have CM6.1 or Jane5 I'll package my touchwiz skin mod for it (I personally kind of dig the blue & black color theme, once its been de-glossed) and then make a revert file to go with it.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] MTC44:
Thanks! I appreciate such fast dev responses!
[Vibrant Themes and Apps] skater991:
make this with the black pulldown notification area like tricorder did!!!!! make it awesome
[Vibrant Themes and Apps] GameOver69:
]

That worked great thank you.

One last question, is there anyway i can change the battery from vertical to horizontal in your mod, or if you could whip up a quick zip file to change that i would greatly appreciate it. If not, then so be it, this is one great mod!
[Vibrant Themes and Apps] s0niqu3:
Hi,

I probably won't take the time to make a horizontal battery mod again until either CM6, Jane5, or an official touchwiz Froyo ROM is out.

In the meantime, if you use windows, the easiest thing to do, is to just download my older horizontal battery mod, open the .apk file with 7zip and drag the /res/drawable-hdpi folder to your desktop and delete everything except my horizontal png's (should be 129 png files, two ic_lock_XXXX something files, and 127 stat_sys_battery_xxxxx files.)

Then adb pull your current framework-res.apk to your desktop, open it with 7-zip, navigate to /res/drawable-hdpi and drag the 129 png images from my horizontal battery mod into 7zip, click yes, and adb push the file back to /system/framework

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] spiz516:
Hi Jocelyn,

Is there any reason this wouldn't work with Eugene's latest Update3 for Frankin-Twiz?
[Vibrant Themes and Apps] GameOver69:
Works fine for me on update 3
[Vibrant Themes and Apps] s0niqu3:
Hi again,

Just finished flashing to update 3 myself (I'm truly a nerd, I had to rip apart the zip and make my own update.zip sans Samsung widgets, and with my own mods, apps, etc. pre-installed before flashing, lol) and just hadn't updated the OP yet, going to do so now.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] CompConfig:
Thank you! Just what Eugene's ROM needed, I love the the changes you made.

Steven
[Vibrant Themes and Apps] Goog1e Phone:
Supposedly Eugene's Update3 has a minor bug where the signal bars only display 1 or 5 bars. I wonder if it's a theme mistake on his part and will this mod fix that issue? Otherwise, keep up the great work!
[Vibrant Themes and Apps] s0niqu3:
Hi,

I don't think its a "theme" mistake at all, but a bug with his radio/data throughput mods. I still experience the bug even using my mod/theme, so its not tied to the framework-res.apk, but likely his radio edits elsewhere.

So sadly, this won't fix his bug, sorry.

Cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] Lcrkz0023:
Ok...Ive got a small problem. I have a rooted Stock Vibrant. Ive download the batt color wifi, etc thru Morph and I also downloaded the Twiz batt mod thats on the 1st post. I installed mine thru Clockwork..but now when my phone reboots I have "Sorry! The application LogsProvider (process com.sec.android.provider.logsprivider) has stopped unexpectedly. please try again. Dumpstate_app_201009211423_com_sec_android_provider_logsprovide.log has been saved. Use*#9900#to copy out log." Force Close!

But I cannot get this off my screen. I can press force close like 10x and then it will reboot and same old msgs come back. I cannot get into any applications or any file. I can get into recovery mode by holding down volume and power button.

Any one have any idea what i can do to start over, or get rid of this.

Edit: I may just Nandroid recover...I was hoping to prevent this but I think that may be my only option.
[Vibrant Themes and Apps] s0niqu3:
OMG, really?!?!?!?!

Sorry, but FC issues aren't the end of the world, your phone isn't bricked, and yeah, nandroid recover if you don't want to try actually troubleshooting your errors.

I'm just super tired of people posting "ZOMG my phone is ruined" without trying to fix their own problems, when similar issues/questions have been answered like a million times already, and hey, none of these mods were made by samsung in the first place, so expect some "teething problems."

Regardless though, because right now I literally have nothing else to do (well, except finish my coffee) here's some steps to try, that have been posted over-and-over, all over the vibrant forums:

1) did you download the correct version for your rom? The files ATTACHED to the post ONLY work on stock JFD rom. The file LINKED via 4share is ONLY for Eugene's new frankin-twiz roms, PERIOD.

2) did you reboot into clockwork and clear cache and dalvik-cache?

3) reboot, still getting FC issues? If not, YAY, simple solution, done.

else

4) do you use an aftermarket launcher like ADW or LauncherPro, if so, see 4b.

4b) from clockwork, goto partitions menu, select mount system, then open and adb shell with root (su) and cd to /data/app and rm -r adw of launcher pro

5) clear cache and dalvik-cache again

6) reboot, do you still get FC issues? If not, check your account settings, and re-enter if necessary, then re-download/install your launcher of choice, YAY, done.

else

7) reboot into clockwork, nandroid advanced restore ONLY data partition

8) reboot, do you still have FC issues? If not, YAY, done.

else

9) nandroid complete restore, and sorry my mod doesn't work for you.

Generally, 99% of the time, simply clearing the cache and dalvik-cache (step 2) will fix your problems, though for some reason, with aftermarket launchers, sometimes this wipes the google account settings, so aftermarket launchers that were downloaded from the market cause endless FC loops even after clearing the caches, hence all the steps above, sorry, no other way to test/fix this at the moment.

I honestly do hope you figure out your FC errors, just have my days when I'm annoyed by answering the same things I've already answered, especially when it will probably be fixed simply by clearing the caches, and if you want to mod your phone, you should already know to do that after EVERY mod you try anyway.

And a general message to anyone that's reading these forums and wants to mod their phone, please, Please, PLEASE, if you want to mod your phone, learn the basics of modding first so you can troubleshoot the basic issues without cluttering the forums with the same issues that have already been solved many times before.

Cheers everyone,

=)

~ Jocelyn
[Vibrant Themes and Apps] Lcrkz0023:
Dude! I never flipped out about it. Actually if you read my 1st line I said it was a "small problem" because thats just what it was...a small problem. I was just wondering if that had happened to anyone else. I never said or thought the the phone was ruined or bricked. Its pretty damn hard to brick these Vibrants anyway. My bad homie...caught you on a bad day I guess. Geez!

And so you know, Ive been a long time reader of this site and registered over a year ago and that was like only my 2nd question post ever! So normally Im pretty resource. I guess I just asked the wrong f'in question But thankyou for your insight!!
[Vibrant Themes and Apps] s0niqu3:
FYI,

I'm so not anyone's "homie" here, lol.

And if you don't catch all the sarcasm in my post, I apologize, but at least you might still thank me for taking the time to give you clear instructions to follow to try and troubleshoot your "small" problem.

I do hope you get it working though, cheers,

=)

~ Jocelyn
[Vibrant Themes and Apps] Lcrkz0023:
Its cool! Its not the end of the world, its just a phone, But thankyou for your explanation!
[Vibrant Themes and Apps] negativedrew:
Thank you for this! I didn't want to do the whole MM, but I really did want the colored gmail icon so this was perfect!
[Vibrant Themes and Apps] MINUS Stl:
Jocelyn, any chance we'll be seeing an updated version for FW update4 (JI6)? I really liked this package (battery and status icons w/ FW theme). I've seen the battery icons for the JI builds, but it looks like they'll lose the FW theming.

I may try building it myself and include some other minor additions.....if I can get the motivation. :rolleyes:
[Vibrant Themes and Apps] GameOver69:
Yes, will there be an update for the latest build???? I just screwed up my phone applying the current version to FW #4 :)
[Vibrant Themes and Apps] s0niqu3:
Hi,

Yeah, I just finished getting ftwiz4 setup the way I like it, and want to make sure there's no issues, so I'll test it while I run some errands, and will post it if everything works out fine.

Cheers
[Vibrant Themes and Apps] MINUS Stl:
Awesome. Looking forward to it.

Sent from my SGH-T959
[Vibrant Themes and Apps] s0niqu3:
OK, seems to be working fine for me, so I updated the OP with a few new options.

Cheers
[Vibrant Themes and Apps] rsfaze:
looks like 4shared is down :(
[Vibrant Themes and Apps] floepie:
Hi, Really like the idea of removing all those glossy bits. Just takes the phone back a few years aesthetically IMO.

Is there any way you could upload just the image files from your I9000 that would convert the glossy bits to matte? I'd like to be able to use them with JFD or any other future ROM. I prefer to update the framework incrementally with Metamorph rather than having the more inflexible update.zip. Thanks!
[Vibrant Themes and Apps] MINUS Stl:
Downloaded and flashed both the main .zip and the new battery. Works well. Thank you so much. Not a big fan of the grey notif drop down, but that can be fixed. ;)
[Vibrant Themes and Apps] s0niqu3:
Hi,

Thanks for the compliment, glad to know other people agree with my anti-glossy-ui attitude, they always just look way too cheap and "toy" like for my taste.

I've uploaded a zip containing all the drawable elements (think I removed all the xml files, but if I missed one, just don't use it in your morph) from framework-res.apk and twframework-res.apk from my mod, except the battery icons, since those require editing xml files to work. All files need to be placed in the /res/drawable-hdpi folder in their respective apk files.

You can download here:

http://www.4shared.com/file/OhxMROof/stock_twiz_skin_files.html

Everything should work fine in a metamorph, good luck.

cheers

And just for posterity, I posting my CC license text from my OP here too, since my colored stat icons, signal bars, etc. are included in the zip.

P.S. all my work is free for anyone else to use, but please think of it like a Creative Commons by-nc-sa license

You can freely use my work if

by) you provide attribution/credit to me for my work

nc) your work is for non-commercial purposes only

sa) you agree to share-alike your work back to the community too
[Vibrant Themes and Apps] floepie:
Sweet, thanks! So, the other 5 apk's you have packaged in the update.zip have had a few of their images replaced only with nothing else modified (XMLs) from the update4? BTW, I'm sure you're aware, but the calendar has the glossy elements remaining.
[Vibrant Themes and Apps] s0niqu3:
Hi,

Actually, I wasn't aware about the Calendar, I just included it for the colored stat-icon mod, but I personally use the AOSP calendar (I personally feel its absolutely inexcusable for new calendar entries made on the phone NOT to default to being stored in the cloud with google calendar), not the touchwiz version.

Sorry about that, I can work on a matte version for the frankin-final update (yep, I'm already working on it, lol.)

And yeah, the other APK's in the zip should only have their stat/notification icons changed, the colored gmail icon, colored calendar, colored sms/mms icons, etc.

cheers
[Vibrant Themes and Apps] s0niqu3:
Hey again, still working on my version for ftwiz_final, in the mean time, can somebody test this matte version of the touchwiz Calendar?

just adb push to /system/app assuming you use the touchwiz calendar already

cheers
[Vibrant Themes and Apps] jdkackley:
Jocelyn,

Whats this changing? I can test it for you. But i just want to know what im lookin for thats all.

Jay
[Vibrant Themes and Apps] s0niqu3:
Hey again,

The mod should just be replacing the glossy calendar tabs with the matte tabs like the rest of my theme has.

Sadly, there are quite a few differences between the stock i9000 TWCalendar and our version, so its a bit messier to de-gloss the calendar, sorry, =(

cheers though, and I hope it works
[Vibrant Themes and Apps] bluu:
sorry just delete
[Vibrant Themes and Apps] briankao1992:
After I installed this over frankin-twiz final, it made my phone boot with no lock screen, and forced me to reinstall frankin-twiz all over again.
[Vibrant Themes and Apps] FinalJenemba:
Same here, it basically bricks the phone because it goes into a loop of just rebooting. Looking forward to a version that works with final! :)

frankin is great but man its ugly. :p
[Vibrant Themes and Apps] MINUS Stl:
I'm using it with FW-final with no issues. Try a reflash?
[Vibrant Themes and Apps] FinalJenemba:
Yea iv tried. It boots up with no lock screen and then just keeps restarting the launcher. The ways it boots up with no lock screen im thinking its related to eugenes new lock screen picker.
[Vibrant Themes and Apps] s0niqu3:
Hi,

Sorry you had issues, but nowhere in my original post in this thread, or in the ftwiz final thread, did I ever say that the mod for version4 will work on final, in fact, once I saw someone else say they tried to flash it, I said the exact opposite, don't flash it, and then posted a couple work-in-progress files for people to try!

You can find that post in Eugene's ftwiz thread here:

http://xdaforums.com/showpost.php?p=8462808&postcount=1507

And for everyone else, I'm still working on making similar updates for ftwiz_final like I made for ftwiz4, but here's the original vertical battery, with matte drawable's if you want to try it, should flash fine from clockwork recovery.

However, for everything to be re-themed, you'll need to pull the other apps (gmail, calendar, mms, etc.) from my v4 zip file to push over too.

Then reboot into clockwork, clear cache & dalvik-cache.

cheers,
[Vibrant Themes and Apps] FinalJenemba:
Beautiful, the test works great. Should hold me over until we get a full theme :). Although all I really want other than this are the awesome stock bootup animations and maybe a horizontal battery icon. Keep up the good work!