[Q] Removing clock from powerwashedGB - Fascinate Q&A, Help & Troubleshooting

Can anyone point me how to remove the clock from the status bar on PWGB? Thanks alot.

It's an edit that needs to be done to the services.jar in system/framework of the rom you're running. Pull classes.dex from jar and decompile classes.dex with smali/baksmali java tools. I forget what the actual edit is and which smali file. Should be a common edit that spans across many devices to find out what to edit.
good day.

Thanks. Im hoping someone will come to the rescue, because im not good at decompiling/compiling. Really screwed it up once before. If no one does ill give it a try. Thank you.

Related

[Q] Help with a theming issue

Im trying to start theming, as i have only been in the android club for about a month. The issue im having is with xml files. Everywhere i read, its like, open in notepad to edit. I open them in notepad and all i get is a bunch of gibberish symbols and letters. Is there any special way that i need to use to edit xml files?
Any help is appreciated, Thanks.
Sorry if this is a repeat, used the search but not in depth, so please dont flame.
I spent a long time searching for how to do this as well. Easiest way is to use APK manager.
Go download it from here: http://forum.xda-developers.com/showthread.php?t=695701
Basically you put the apk you want to edit into the edit folder and decompile it. Then go into the projects folder and the xml files created will be readable. Edit them using textpad, notepad, w/e you want. Once you are done load apk manager backup, select the same project and then compile the apk. Thats the gist of it, its a tiny bit more complex but you should get it after trying it. Also if you are looking to edit something like services.jar I found you can rename it to services.apk and it will decompile the smali for you so it can be edited. Just play around with APK manager and it should do everything you will need.
sweet, thanks for the help. hopefully ill have a nice theme on here in a couple weeks. thanks
yeah, if you want a full look into any apk you're going to have to decompile it unless you know what you're looking for in the hex of a compiled xml... also with a decompiled apk you can see alot of stuff such as how the .9 borders (or what ever you wanna call em) are done so make sure they stretch the same way

editing 9.pngs

ok so i did a lil reading after trying to alter the 9.pngs i would get force closes on my phone i take it this is cause i didn't edit these properly with the correct editor .....is there any 9.pngs i can alter without eclipse ????
i know i did it before but now i just get alot of fc ..and reboots if i try to alter ......
i've always modified roms to my liking so i could use any advice i can get from you themers out there that know what there doing ....
thanks in advance
No, you do not have to use Eclipse.
If you modify the PNG files you will need to compile them, you can use the APKmanager program to do this. I had problems and so I used Eclipse.
Can you give and over view of the step you are taking when you edit your PNGs, what program(s) and then how you are placing them back into your APK or back on your device.
i'm just using paint.net program on my cp to alter all the framework pngs .....but i guess i didn't realise about the 9.png's ....what would be easier to alter the 9.pngs eclipse or apkmanager
Have a look at this thread, which I think maybe you already have.
http://forum.xda-developers.com/showthread.php?t=1008695
The first and second post have a document to read and then later down in the thread is a write up about 9.png.
If you load the Android SDK, there is a tool, draw9patch, that will let you edit the PNGs to make them into 9.png files.
If you are just editing PNG files and then do not need to be 9.png then I think any software can be used for editing.

Decompiling SystemUI.apk problem

I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
tallgrasshawk said:
I've been trying to decompile SystemUI to mod a couple xml's. Whenever I try with apkmanager I get errors. I know there's some trick to get this to work with framework. Can anyone help a noob out?
Click to expand...
Click to collapse
its better to bring the error log here, its located in apk manager directory log.txt
When at the PC I will zip up my apktool and run you through what I do
---------- Post added at 05:08 AM ---------- Previous post was at 04:53 AM ----------
Here is my APKtool folder (I doubt it matters but I keep it in the C drive) C:\apktool
http://dl.dropbox.com/u/22063477/apktool.zip
1. apktool if framework-res.apk (this is the stock framework from whatever rom you are working on)
2. apktool d -f SystemUI.apk (seem to have better luck with using the force command)
3. make your edits
4. apktool b -f SystemUI SystemUIedit.apk
5. clap with glee that after bashing your head into a wall like I have been you can now edit XML's
6. now come help me fix some things in my themes
Don't you also have to install the twframework as well?
tallgrasshawk said:
Don't you also have to install the twframework as well?
Click to expand...
Click to collapse
I didnt have to but may want to avoid some of the phantom file missing errors
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
tallgrasshawk said:
Hmm. I get the res folder decompiled but I still get a smali folder as well. And looking at the xml's I think I'm getting in over my head.
Click to expand...
Click to collapse
here is what I did and it seemed to help me get teh basic understanding (changing clock color etc)
there is a app called CSDiff you can use it to compare diff in a folder, so I decompiled two SystemUI's one stock one themed and then took a look at what changed in the XML then can test and recompile. has worked ok for me so far lol
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
tallgrasshawk said:
Thanks for the help boosted. I think I got the color figured out. Do you know how to change the font as well? I don't really see that in the xml anywhere.
Click to expand...
Click to collapse
this gave me a headache more than helped but may help you out a bit..
http://www.xoomforums.com/forum/mot...guide-xml-breakout-themeing-full-details.html
Hey boosted, have you seen this version of apktool? It allows the decompiling of SystemUI, etc. with no problem. Rename current apktool.jar and name this new one apktool.jar and put it into APKmanager's "other" folder.
Comment deleted

[Req] Need help with SystemUI

So I've decompiled SystemUI.apk(Scott's CleanROM2.1 ICS) and I'm trying to find out what makes the data icon change. I know where the icons are but I can't find any smali or xml that actually swaps the images. I've checked Galaxy Nexus ROMs as well and still can't find it. Can anyone assist me finding this or join the quest to locate this information?
MrSmith317 said:
So I've decompiled SystemUI.apk(Scott's CleanROM2.1 ICS) and I'm trying to find out what makes the data icon change. I know where the icons are but I can't find any smali or xml that actually swaps the images. I've checked Galaxy Nexus ROMs as well and still can't find it. Can anyone assist me finding this or join the quest to locate this information?
Click to expand...
Click to collapse
I will try to help and get a look at it later.
In the mean time try a text search (Win7 gives you the choice to look in the files) in the decompiled folder for an occurrence of the png name with the .png and you may get a pointer to where it is controlled.
It is more than likely in the anim folder.
NilsP said:
I will try to help and get a look at it later.
In the mean time try a text search (Win7 gives you the choice to look in the files) in the decompiled folder for an occurrence of the png name with the .png and you may get a pointer to where it is controlled.
It is more than likely in the anim folder.
Click to expand...
Click to collapse
Checked there. I'm running Ubuntu at home and grepped SystemUI, com.htc.resources and framework-res on GB and ICS and came up empty.

[Q] Modifying framework-res.apk

Hello,
I'm just kind of playing around and I would like to modify the "intensity" of some of the haptic feedback. I found the following post:
http://forum.xda-developers.com/showthread.php?t=1796789
I guess my question is, will this process work the same for ICS? I see the same entries mentioned and presume they will have the same affect. I'm still a doing a little research to understand creating an APK I can then flash to replace my current framework-res.apk. Thanks to any help or explanation someone can provide.
Yes its the same process and in the same location.
Full-Throttle Team
I have a question if anyone can answer this. I am using apktool, following the following link for information:
http://forum.xda-developers.com/showthread.php?t=1753659
I have installed all the additional "framework" files (blur-res.apk, moto-res.apk, SystemUI.apk, and then framework-res.apk) via apktoolif. I can decompile framework-res.apk without issues, and for fun I simply recompiled it (no changes). The odd part is the resources.arsc is noticeably smaller in the "new" one I created (and this is extracted from the archive so no compression). Is that normal, or is there something I'm missing.
I know I should just take the plunge replace /system/framework/framework-res.apk with mine and see what happens, it just seems to me that my newly compiled resources.arsc should be exactly the same size shouldn't it? Or am I missing something?
Well I went ahead and loaded my new framedwork-res.apk, and it worked fine. So I guess all my worrying was for nothing, at least so far.
Ya its normal for it to shrink.
Full-Throttle Team
Thanks
thanks for the info bro! im modifying framework-res.apk for my project using apk-multi-tool.

Categories

Resources