yashsingh1/xdaforums huggingface dataset:
[Captivate Themes and Apps] plasticdarlow:
You can change the battery icons in the framework-res.apk [look in the res/drawable hdpi/stat_sys_battery_x.png

and to change the text color: I was trying to figure that one out last week....From what I figured out you need to modify:

res/layout/status_bar_latest_event_content.xml

Which is found in your framework-res.apk aswell....Decomplie-edit-recomplie....

Good luck :D
[Captivate Themes and Apps] chaosjh:
what program are you using to edit your xml's?
[Captivate Themes and Apps] plasticdarlow:
apk_manager_4.9 to decomplie-recomplie. Then use notepad to edit
[Captivate Themes and Apps] PuffinNugz:
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
[Captivate Themes and Apps] avgjoegeek:
If your just wanting to do simple changes (no .xml edits)

You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.

Then copy/paste the new images over the old ones inside of WinRar.

Close.. and install.

But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say :)
[Captivate Themes and Apps] Cezar`:
No way..

OK, just decompiled-added icons from other decompiled framework-recompiled, no xml edits-installed. Look is changed, battery icons now displaying fine but... force closes and restarts the shell in less than 20 secs...
[Captivate Themes and Apps] avgjoegeek:
yup try the winrar method - there is no decompiling.. just copies the images into the *.apk

And shouldn't have any FC's if you try that method.
[Captivate Themes and Apps] D-FUSE:
Yeah i changed icon with winRar, and all kinds of crazy stuff happed. Loop boots,and Fc
[Captivate Themes and Apps] fritzgerald:
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
[Captivate Themes and Apps] D-FUSE:
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
[Captivate Themes and Apps] fritzgerald:
Shoot me a link to the icons you're trying to use. What ROM are you using(name & version). What text are you looking to change? There's not one global change to make all the text different I'll need to know what specifically you're trying to change.
[Captivate Themes and Apps] D-FUSE:
I use the uot kitchen you get the icon on perception 7,but im on 8 now. I'm running perception 7 darknees 2.3 theme, and that is what i'm trying to get the icons on its the battery icon of the android smiley faces it is version j with white numbers. i'm going to look for a link for them.i have the framwork-res.apk with them in it.
[Captivate Themes and Apps] MikeyMike01:
When you recompile with APK Manager, a couple of things are very important to do:

1. Hit yes to "system app".

2. Hit yes to restoring the files:

-Open the "keep" folder and delete resources.arsc. Then delete anything you changed (if it's there).

3. Do NOT sign it.

It should work.
[Captivate Themes and Apps] TheEscapist:
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
[Captivate Themes and Apps] PuffinNugz:
I just dragged the images from a particular themes framework and dropped them to the new one all within 7zip.
[Captivate Themes and Apps] micjenks:
maybe this is a stupid question but how are you reinstalling the apk on your phone? just installing like an app?
[Captivate Themes and Apps] aceman0455:
OK follow this....

batt image changes....

1) choose your rom

2) load rom

3) using root ex nav to system/framework-res> framework-res.apk (copy and move copy to sd)

4) pull to your computer

that apk contain a complete copy of the look of your phone as it stands at the moment.

If you'd like to mod a rom before you flash it....

1. open the rom's zip in 7zip/winrar nav to system/app/framework-res.apk pull that file out. literally click and drag it out to your DT.

2. then rename it framework-res.zip> open it and nav to res> drawable hdpi pull that folder out in there is the majority of the images you might want to change including you batt images.

3. change what you want (make sure the names match perfectly)

4. now change that file back to .apk open your rom back up delete the apk in the rom zip and drag your new one back in. poof your done now flash

DON'T DE COMPILE apks if your not sure of the re comp process. you'll flash it and be sorry. MM is the best for making small mod like this.

or if someone is willing i can send them framework-res.apk and twframework-res.apk Metamorphs and they can host them

as for the color changes the best theme guys i know are Reffer and INKU. They taught me what i know about themes. from what i gather the colors are XML edits and some other stuff which does require decompiling PM one of them they will help.
[Captivate Themes and Apps] CuriousTech:
Dealing with APK files the first time can seem a little difficult but once you understand it, it's pretty easy. Here are a few rules to follow, that I've learned from others and from experience. Some of this has been repeated a million times.

Get Apk Manager, Update Zip Packager, and also WinDiff or similar.

1. Don't Update.zip the new files. Instead, create an update-script and put both the original (or known working) framework-res.apk and twframework-res.apk in the zip, package it, then copy it to /sdcard/ and leave it there. Use that as your recovery in case you bootloop.

2. When updating use adb push and chmod, or what I do is share my work folder and use ES File Explorer to copy the files over WiFi to sdcard, and use Root Explorer to copy them to /system/framework/, set permissions and reboot.

Apk Manager makes it easy. There are 2 methods of modifying. Do not compile an extracted apk or zip a decomplied apk.

First is extract and zip. This is a simple decompress of the package content retaining the directory structure. Do not add or remove files. Do not modify xml files. Do not modify .9.png files unless you're replacing them with compiled versions (control borders are converted).

Zip will create a file such as unsignedframework-res.apk which is the entire directory structure, plus copies the signature of the original apk to the new one (why you need to select system apk). So it's actually signed. Do not just unzip and zip because you will lose the signature. Dropping new files into the original zip(apk) works because it retains the sig. No sig = no boot. Sig from another ROM = no boot.

Decompile extracts much like extract but decompiles xml and .9, and can create errors. Keep track of every file you modify. Once you get to the compile part, hit Y for retain minimal errors, delete all the files you've changed (plus resources.arsc if modding xml) and continue. What this does is copy all the original compiled files to the new apk, and only processes/compiles the ones you deleted from keep. Any modification you didn't delete from keep will be excluded.

To better understand the errors do this: Decompile framework-res.apk, recompile it, select unsignedframework-res.apk, decompile it, then run WinDiff and compare the two decompiled directories. Any difference will show up. Those are the files you want to avoid changing, and hence why you want to use the keep option. Otherwise all files will be recompiled including the bad ones.

This method of using WinDiff can also be used the same way to verify your changes.
[Captivate Themes and Apps] Cezar`:
Anyone knows how to change the background of the ongoing notifications in the notif window (for the downloading and uploading notifs) or the text color (but only for those notifs, not for all)?
[Captivate Themes and Apps] Peaster111:
This is the issue that I'm most interested in getting theme solved. I'm using an all black stat bar. It looks awesome except for downloads which are the only time black font is used. I have yet to understand why android set it up that way, when everything else is white!
[Captivate Themes and Apps] aleadam:
It has been impossible for me to run a recompiled twframework-res.apk. Even without any modification whatsoever (i.e., decompile and immediately recompile), as soon as I push the new twframekork file I start getting boot loops. I never had any problem exchanging pngs, but what I want to do now is to edit some of the xml files, so I need to decompile it. I tried both apk manager 4.9 and straight apktool, with the same negative results.

Decompiling a modded apk returned several errors, so I decided to mod the original apk as found in the jpy rom (I know it's the original since I extracted it from factory.rfs). I don't get any error nor warning this way, but it just F/Cs.

Next, I tried to add framework-res.apk as a dependency, thinking that the same rom framework-res could be required:

apktool -if framewrok-res.apk samsung
apktool -d -f -t samsung twframework-res.apk

Didn't work either.

Any advice?
[Captivate Themes and Apps] Cezar`:
Didnt try to decompile twframework-res.apk but i believe you need a jar as dependency. Try twframework.jar, core.jar or framework.jar. As well, try what you did, decompile and recompile with compression level 0 and see if it works.
[Captivate Themes and Apps] aleadam:
Will try the jars tonight. Thanks.

Compression level 0 is a no go. Tried that also. :(
[Captivate Themes and Apps] MikeyMike01:
I've decompiled twframework-res.apk before and I never used anything for the dependency.

I was getting boot loops with framework-res.apk until I started answering Y to both questions and then editing the keep folder.
[Captivate Themes and Apps] Fenny:
For those of you having issues with the Decompiling/Recompiling, Check out NinjaMorph: http://xdaforums.com/showthread.php?t=674604

It extracts the file right on your phone, and Rebuilds it PROPERLY... I.E. You can use SMALI and BAKSMALI to edit the dex file, and rebuild the it, then just replace it in toto. or even... LEAVE IT THE FECK ALONE if you are just modding resources.

Also it is a snap to modify the contents of the folder and let NinjaMorph rebuild the APK/JAR file.
[Captivate Themes and Apps] CuriousTech:
In apk manager it instructs you to delete certain files in the keep folder including one specifically if you modify xml files. As long as you follow the directions, it's pretty safe. Unless the new code is screwed. :)
[Captivate Themes and Apps] upNsmokeAllDay:
I have been modifying the Axura theme for awhile now by just changing the file .apk to .zip and then i open it with winrar and drag the files i want to replace and then it rezips itself and then i rename .zip back to .apk and then use CWM to inject it in recovery mode. Easy and fast way without needing to compile or decompile with other software.
[Captivate Themes and Apps] arcardinal:
To change both of these you need to edit the xml's inside the res/values folder, which can only be seen by decompiling the framework. I would ask gtg465x which values need to be edited. Im at work and can't remember right now.

Apk manager only works with unthemed framework, which I see you are using, so you're off to a good start. When applying the recompiled files are you pushing them using root explorer, or flashing as a zip in cwm? It should work by just pushing the framework, or find an update-script maker and flash in cwm.
[Captivate Themes and Apps] aleadam:
I tried both answering yes or no to the second question (always yes to build system app). Same boot loop with either.

I am much more comfortable editing in a pc than in the phone. I may be getting old, but proofreading and typing in this small display is too much for me...

That's when you answer Y to the second question. It actually unzips the apk so it only adds whatever you modified. Did not work in this case, though, as I was unable to succesfuly run an unmodified, recompiled apk (i.e., no changes made by me, no deletions in the keep folder).

Yes. Indeed. That works just fine. As long as you only want to replace images. If you want to do anything else, you need to edit the xml files and thus decompile them. Unless, of course, you can understand those hex files. I can't.

Unthemed twframework-res decompiles with no issues. Modded ones have wrong references to .9.png files.

I was pushing the file through a cwm flashable zip. The script there is fine since I could restore my backup framework using a copy of that zip file (with, of course, the framework files replaced).
[Captivate Themes and Apps] Cezar`:
Emtpy resources.arsc

Weird thing. Not sure if is the user or the tool which needs to be checked :p

So, Im using apk manager 4.9 and it does all work without issues. No errors, no problems except one. After deleting resources.arsc from keep folder and hitting enter (last step) it creates an empty resources.arsc. When I mean empty I mean if you open it with notepad or notepad++, is empty. and it has around 80 bytes compressed but 3MB uncompressed. What could cause this issue?
[Captivate Themes and Apps] MikeyMike01:
Check the log.txt.

Even if it doesn't say to, there can be errors.
[Captivate Themes and Apps] Cezar`:
No errors in the cmd prompt. This is the log output.

--------------------------------------------------------------------------
|Sun 01/02/2011 -- 13:32:12.58|
--------------------------------------------------------------------------
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
Could Not Find C:\apk_manager_4_9\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\apk_manager_4_9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Decoding resources...
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.

Still, after trying to change the text color in styles.xml and compiling, the resources.arsc is bigger and it has some content but the system is still not accepting the compiled framework-res.apk. I get FC vibrations 10 sec after booting. I am using doc's template for JPY with extended power menu and aosp lockscreen. Is getting more and more frustrating.. :(

EDIT: This is what I am trying to do:

<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
</style>

to this

<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">#ff999999</item>
</style>

Edit 2:

I tried this as well with the same result, immediate force close
[Captivate Themes and Apps] MikeyMike01:
Check the gingerbread theme thread on what we did to get around this.

Its like the last five pages of it.
[Captivate Themes and Apps] Cezar`:
Frickin' compression!!! I should've known! :D

Answer here
[Captivate Themes and Apps] CuriousTech:
Ah I wouldn't have guessed. Just got Perception 10 and bootlooped it just replacing standard png files with compression at 9. It has the .v4 directories. Not sure what those are. Too tired to mess with it now.
[Captivate Themes and Apps] aleadam:
apktool 1.3.1!!!

Hey guys

In case anyone cares I was finally able to reproduce the status bar drop down xml mod. The trick was just to decompile/compile twframework-res.apk with apktool 1.3.1 instead of 1.3.2... It took me countless nights, but I finally have it :)
[Captivate Themes and Apps] CuriousTech:
Thanks @aleadams

Looking good after some quick tests.

1.3.2 was also not extracting the -v4 folders which are used if they're there. 1.3.1 is though, but the others are missing (i.e. drawable-hdpi is missing, but drawable-hdpi-v4 is there). Strange.
[Captivate Themes and Apps] bignate78:
ive tried doing this and it limits me to a certain amount. to a point after changing and when the zip reloads it starts skipping images and when opened in phone they arent viewable. Any suggestions???
[Captivate Themes and Apps] Vivified:
I've been having a helluva time compiling framework-res.apk and would really be appreciative of some guidance. I can't even seem to get a framework-res.apk decompiled/compiled with no changes without getting pretty much immediate FC's on boot.

I need to make some xml edits, but if I can't get an unchanged framework-res.apk to boot fine then I'm certain one with edits wouldn't.

Anyone care to lend me a hand? I would like to get this Perception theme port up :)
[Captivate Themes and Apps] bignate78:
try this

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

would be the same for other icons just go into diff folder(i.e. frameworks)
[Captivate Themes and Apps] Vivified:
I'm not trying to change icons sir, you misunderstand what I am trying to do. I am attempting to edit xml files in the res/values folder, but first I was testing to see if I could push an unchanged decompiled/compiled framework to my device. After I decompile and then recompile I am getting FC's and reboots when I push it to my phone.

I have tried using apkmanager as well as just apktool by itself and have had no success thus far. I have also replaced the jar file with apktool 1.3.1 and it has made no difference.
[Captivate Themes and Apps] bignate78:
PM the creator of that thread i sent, they might know. theyve givin me a ton of helpful stuff
[Captivate Themes and Apps] Time_Zone:
Are you signing them? It sounds like you are not. If you are editing graphics then it doesn't matter, but once you edit an xml you need to sign the apk.
[Captivate Themes and Apps] Time_Zone:
Also there have been a few times when apk manager didn't work right for signing. In those cases signapktic worked pretty well.
[Captivate Themes and Apps] Vivified:
No i'm not signing the apk, it's a system apk. I am not changing any graphics(png's). Furthermore, I haven't even made the xml edits yet. I can't even get an unchanged framework-res.apk to decompile/compile and push it to my phone without getting FC's at boot and reboots.
[Captivate Themes and Apps] Vivified:
I've been grabbing the META-INF and androidmanifest.xml from the original and dropping it into the new framework-res.apk
[Captivate Themes and Apps] Time_Zone:
Sign it. Trust me. It will work.
[Captivate Themes and Apps] Vivified:
Everything I've read about apkmanager says to grab the original framework-res.apk's manifest and META-INF and throw it into the new one. Are you sure signing it will do the job? Does compression level matter?
[Captivate Themes and Apps] Time_Zone:
I don't think compression level matters. I have just been in just this situation and tried exactly what you are trying. It makes no sense, but signing does make the difference.
[Captivate Themes and Apps] Vivified:
I see. I'm about to push the signed framework-res.apk now. I'll let you know how it goes. It's simply an unchanged framework-res.apk that's been decompiled/compiled/signed. Here's hoping it works **crosses fingers**

edit: The new framework-res.apk is over 2 mb smaller in size so i'm not keeping my hopes up :(
[Captivate Themes and Apps] watsa:
let me know if this doesnt work, wil be glad to help
[Captivate Themes and Apps] Vivified:
FC's on boot again(saw it coming...) someone help!

Any advice would be great. I don't understand why simply decompiling/compiling and pushing it to my phone doesn't work. Nothing's changed...
[Captivate Themes and Apps] watsa:
when apk manager asks u to delete resources.arsc, did u delete it from keep folder?

EDIT: Join me on kik if u have time.. user id = watsa, we will take it from there
[Captivate Themes and Apps] Vivified:
When I edited the xml's I did, but since I have been trying to decompile/compile an unchanged framework-res.apk I have not deleted it(I am under the impression it only needs to be deleted if I make xml edits). I literally am pulling the framework-res.apk out of a working theme port and decompling/compiling and it still FC's on boot with no changes made whatsoever
[Captivate Themes and Apps] Vivified:
I'm going to lunch now, I'll run home and download kik to do some quick brainstorming with you.
[Captivate Themes and Apps] watsa:
Nevermind..
[Captivate Themes and Apps] Vivified:
Watsaa is the MAN!!! THANKS BUDDY! New ports still coming all thanks to you!
[Captivate Themes and Apps] renf:
Could you share the solution you guys came up with? I'm currently having the same problem with apkmanager.
[Captivate Themes and Apps] souder14:
Can someone post the original twframework-res.apk
[Captivate Themes and Apps] dhirend_6d:
Yes. Share the solution. It would be nice.
[Captivate Themes and Apps] HansonZhang:
SystemUI.apk is the right place to change the battery icons.

To change the battery stye, you must decompile the SystemUI.apk,then modify the file

res/layout/stat_sys_battery.xml

res/layout/stat_sys_battery_charge.xml

and find the battery icons in the res/drawable**/ folder, then replace it.
[Captivate Themes and Apps] Cezar`:
My friend, this thread is dead since ages...
[Captivate Themes and Apps] Cezar`:
------------
[Nexus One General] petecdun:
Hi

Has anyone got any recommendations for downloading torrents directly through the android browser, or alternative android browsers?

I really want to be able to download torrents on my phone, but there are no reliable apps for this yet. I've noticed that in-browser torrent downloading is a way of downloading on a pc without installing additional software and I had hoped that I'd be able to do it in my android browser but I can't seem to find any that work.

any help is much appreciated

Thanks
[Nexus One General] Xel'Naga:
Not quite sure what you mean. Are you referring to downloading the ".torrent' file through the browser? Because those files will go into SDCard/Downloads by default, and can be opened by a number of torrent apps like TorrentFu or Trandroid.

If you're wanting to seed/leech a torrent from your phone, itself, this is a bad idea, since torrents open up literally hundreds of simultaneous connections. On a 3G connection, this will likely throw up a red flag for your carrier if you're on a limited data plan, or if they try to charge you for additional services like tethering (even though this technically isn't tethering).

If you want to remotely manage your torrent client running on your PC (like uTorrent on a PC or Transmission on a Mac), then the above apps (TorrentFu and Transdroid) will work just fine for downloading a .torrent file from your phone and sending that wirelessly to your computer remotely, and you can manage your download from the apps.

Not sure if any of this is what you're looking for. Hope it helps!
[Nexus One General] efrant:
Swarm is an Android torrent client available on the Market. I use it, and it works quite well. It also integrates with Torrent-Fu, so you can search for torrents with Torrent-Fu, and then download them with Swarm.