Theming questions? - Samsung Galaxy Nexus

I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium

Kevin3328 said:
I have been theming on the x2 for awhile now building custom themes .. I just got my nexus yesterday so I downloaded the gummy rom and tried to theme first with apktool and also with apk manager.. I see there have been themes made.. I have yet to be able to decompile any system apks successfully.. are there any new tools I'm missing or steps... would love to start theming again if I can get things to work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
yep, you need to update apktool for use with Android 4.0
edit: more specifically...
-Wrong version of apktool (get the latest)
-Wrong verison of apktool dependancies files (same site)
-Wrong version of aapt.exe in Android SDK (get latest SDK)

Alright awesome I'll look into it tonight after work
Sent from my Galaxy Nexus using xda premium

I have the latest version of all of that and can decompile with apktool. The problem is when I build the new apk and copy over the edited files and push back to the phone the app won't work.
A run down of everything I did is here: http://forum.xda-developers.com/showthread.php?t=1452530

Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium

Kevin3328 said:
Did u try putting it back in the flash able zip with 7 zip? I never use adb push.... in theory if u are able to compile the apk without errors it should work
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.

coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
You can't replace xml's in that way.
Sent from my Galaxy Nexus using XDA App

If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium

coverton341 said:
I pulled the music apk, edited it, rebuilt it, and put the edited files back in the original apk. I did that because I don't know how to sign my own apk so I just used the already signed one with some edited png and xml files. The thing I don't understand is that I pulled an apk once and opened it via 7zip and edited some things, pushed it back and everything was fine (changed out some icons on the contacts.apk)
Do you know where an up-to-date theming guide can be found? I'm very interested in making my own themes instead of requesting themers to make one. Learning experience and all that jazz.
Thanks.
Click to expand...
Click to collapse
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium

Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Hey Kev did u figured it out yet? I replied to ur PM...
Sent from my Galaxy Nexus using XDA App

Kevin3328 said:
Also in my short experience theming u should not have to sign a system app... u should recompile then rename it.. then reinsert into the rom you are using.. reflash the rom without any wiping and u should be good try it that way
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.

Kevin3328 said:
If u properly recompile the apk then yes u can .. u edit it all the XML s and pngs in the apk then recompile.. then drop the recompiled apk into the system app section of the rom u r using unless its the framework Res apk or other framework apk.. once u do this put the new rom zip back into your phone and flash in recovery ... bottom line I'm not the most experienced themer in the forums I just got the phone yesterday so its gonna take time for me to begin theming anything.. that being said perhaps if this thread stays open and more experienced themers can chime in with some tips and advice
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Sorry misread what you were saying then.
Sent from my Galaxy Nexus using XDA App

I am at work until 1030 then I am gonna set up shop on my CPU first... gotta get the new sdk and apktool then I will gtalk u from there with issues.. all I know is this should be a learning experience lol.. by the looks of this phone it could be awhile b4 I learn what everything "is" framework will be all the apks will be different than what I'm used to
Sent from my Galaxy Nexus using xda premium

coverton341 said:
Actually, GoogleMusic.apk is found in data/app not in system, at least in the ROM I am on. But, am I correct in assuming that I can do the same thing in this instance?
Furthermore, is there no way to theme a single application? Do I need to always theme an app, place it back into the ROM zip, and reflash said ROM?
Can I make my own flashable zip file for a single app?
Sorry to ask so many questions, I just really like tinkering with things and I would really like to get good at theming.
Click to expand...
Click to collapse
U can make update zips and yes u should b able to do the same.. I usually borrow someone else's at first
Sent from my Galaxy Nexus using xda premium

wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
also, it's a big waste (and sometimes troublesome) to flash an entire ROM to update one or a few apks. making one for just testing out things in \system\ will save you time and frustration. you can also make a backup easier for if something bootloops you

Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.

coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
Let us know how you (hopefully) succeed. Im a bit tempted to try theming myself but ive cant seem to find a guide that is up-to-date - and im learning somthing with every question you are asking - and with every answer the other nice fellows are providing.
:thumbs up!:

I am still trying to figure out how to setup everything.. I know I need newest sdk and newest apk multi tool which I didn't get yet.. I'm gonna tinker around today/tonite and see what I'm doing wrong
Sent from my Galaxy Nexus using xda premium

mrvirginia said:
wut? i've never done what you guys have when it comes to compiling/decompiling and replacing stuff. i'm not so sure that works, but i'll take your word for it for now since i've never tried it either. in theory, you can decompile and change xml, recompile and replace that xml, but not if you're dealing with the actual xml folder in apks. your resources change when you mess with that. this is the same for changing smali, except something else changes (it's been a bit since i've dealt with actual dev stuff).
Click to expand...
Click to collapse
See this is how I read it too. I believe the OP means that he's making changes and then replacing the apk in the flashable zip. Not actually replacing the edited xmls in the original apk. Glad I'm not the only one that read it that way though

coverton341 said:
Success!!!
All right, first and foremost, thank you immensely for all the suggestions Kevin and others as well.
Here's what I did. I searched the ROM zip to no avail, but then found the apk in the gapps zip. I took it out of there, decompiled, messed around with just a few png files, recompiled and put it back into the gapps zip. Flashed it and it worked. Problem is, only a couple of the edits I made showed up which brings me to my next issue, ICS optimised apps have a tonne of "drawable-***" folders. Drawable, drawable-hdpi, drawable-hdpi-v8,v9,v11, drawable-xdpi, etc....ad nauseum.
I am not messing with any smali code, xml files, or .9.png files yet as I don't know what smali does, xml is a headache, and I have heard horror stories about .9.png files.
I'm going to dink around and see if I can sort out what items need to be changed for my current dpi setting (241) and will report back any findings, but probably not tonight as I have an early course in the morning followed by work.
Click to expand...
Click to collapse
no decompiling is necessary for tweaking pngs.
smali code is for messing with policies, etc.
.9.png files can be a pain if you don't recompile the apk correctly.
and this should help with your dpi as far as what to edit so you can see it...
http://developer.android.com/guide/practices/screens_support.html

Related

help with rom

Im trying to figure out a couple things on a rom i have been working on. first would be how to fix the boot animation(when i add sanim.zip to media folder part of the old sprint boot animation still shows up). The second would be how to add the ten lock mod to the rom. My rom is based off of the stock EI22 rom.
You may want to post this in developers thread
Sent from my SPH-D700 using xda premium
androidmaster1 said:
You may want to post this in developers thread
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
You are crazy! Never post in there unless ure developer lol but in serious talk its fine where it is
Sent from my SPH-D700 using XDA App
jpond83 said:
Im trying to figure out a couple things on a rom i have been working on. first would be how to fix the boot animation(when i add sanim.zip to media folder part of the old sprint boot animation still shows up). The second would be how to add the ten lock mod to the rom. My rom is based off of the stock EI22 rom.
Click to expand...
Click to collapse
You'll want every part out of Maddoggin's 10-Lock. Every file in there is necessary. Reverse modify as you like, but there is no simple way to just add or remove it. I personally made a 10-lock (9-Lock as I disabled the broken glass lock) and a standard theme for my rom, and each had to be remade from the ground up.
i cannot get apk manager to compile framework-res and systemui after i decompile them. I cannot even compile them even when i dont edit it. I got the boot animation working though. thanks again for your kitchen, it makes things easier.
Jp, what kind of rom are u making? Bml, ext4, mtd ?
Sent from my SPH-D700 using xda premium
sorry i should have posted that. Its based the stock bml rom. I have these cricket roms i have been working on and just have a few things i cant figure out. One is the tsm mod and the other is changing the RTSP & HTTPPD proxy and proxy in hidden menu\multimedia(the ##3283# menu). I want the RTSP & HTTPPD proxy to be 0.0.0.0 and the port to be 0. that would complete everything i have been working on in the dark for a few months now.
i do plan on making a mtd rom also after i get this figured out
another day goes by and im still pulling out my hair trying to figure this out.
androidmaster1 said:
Jp, what kind of rom are u making? Bml, ext4, mtd ?
Sent from my SPH-D700 using xda premium
Click to expand...
Click to collapse
Bml = ext4 or rfs... just a word for the wise androidmaster...
Sent from my SPH-D700 using Tapatalk
jpond83 said:
i cannot get apk manager to compile framework-res and systemui after i decompile them. I cannot even compile them even when i dont edit it. I got the boot animation working though. thanks again for your kitchen, it makes things easier.
Click to expand...
Click to collapse
This is a well known issue that developers have never seemed willing to share, so I will tell you.
If you open the log.txt outside of your cmd window, you will see at the top of your session above a whollllllee long list of errors, a few, maybe 5 or 6 particular errors regarding .9.png images.
Here's the thing, certain themed images do not de-compile properly from carried-over theming. What you need to do, is find yourself a matching framework-res.apk from a stock rom. Now decompile the stock framework-res.apk, and after carefully reading through the top errors (the rest of the huge list of errors should all look similar and are caused by the first errors), copy the matching images from the stock framework to your framework. Remove the broken images from yours. Typically, your themed framework will leave you with .pngs when they need to be .9.pngs, so that will be your problem.
After you've switched out the problem images, your framework-res.apk should recompile just fine. Same goes for systemui.apk.
i tried that but now im getting an error for everyone of the files saying
No marked region found along edge.
Found along top edge.
jpond83 said:
i tried that but now im getting an error for everyone of the files saying
No marked region found along edge.
Found along top edge.
Click to expand...
Click to collapse
If you edit a .9.png manually, which isn't too hard, you can NOT touch the black markings on the outer pixel edge on all four sides. These black pixels tell Android how to stretch the image.
As an aside, if you do something as simple as re-shading an image, ensure to select everything BUT the outer edge.
i just copied the files over from a different rom. All of the problem images are ones that have to do with the lock mod. would you mind if i used your theme with the lock mod as a template and just re-themed it? If i can could you tell me what rom i need to use to replace all of the png files? Im sorry for all of the questions im still learning. I have actually figured alot of thing out myself i just have a few things that are giving me problems. thanks again for all the help

.9 PNG Change Error Compiling

Hey Guys, so I'm working on a theme port (Yes I've Asked Multiple Questions About This) , well, when I change a .9 PNG file, it has errors compiling. How do I compile then? Can I not change .9 PNG files?
alphadog32 said:
Hey Guys, so I'm working on a theme port (Yes I've Asked Multiple Questions About This) , well, when I change a .9 PNG file, it has errors compiling. How do I compile then? Can I not change .9 PNG files?
Click to expand...
Click to collapse
M&S gives a tutorial about it here:
http://forum.xda-developers.com/showthread.php?t=1506177
Personally, I've found that if all you're doing is adjusting the hue or saturation (the color of the image) you can straight make the edit. At least I've had the two changes I've made work without doing anything special.
Sent from my SGH-T989 using xda premium
yoft1 said:
M&S gives a tutorial about it here:
http://forum.xda-developers.com/showthread.php?t=1506177
Personally, I've found that if all you're doing is adjusting the hue or saturation (the color of the image) you can straight make the edit. At least I've had the two changes I've made work without doing anything special.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
Thanks, but I'm just moving from one theme that I'm porting, to the other, which is the ported one.
alphadog32 said:
Thanks, but I'm just moving from one theme that I'm porting, to the other, which is the ported one.
Click to expand...
Click to collapse
So you're having trouble moving the image to the new .apk or what are you asking?
yoft1 said:
So you're having trouble moving the image to the new .apk or what are you asking?
Click to expand...
Click to collapse
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
alphadog32 said:
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
Click to expand...
Click to collapse
As long as you're replacing files with the exact same name and not creating new ones it should compile. Alternatively, you don't even need to uncompile and recompile. Just take your stock framework and open (not extract) it in 7zip. It'll show you all the files. Drag and drop your modified files over into the 7zip window. It shouldn't have to compress them or anything, it'll just replace the files that have the same name. That's how I make all my modifications.
yoft1 said:
As long as you're replacing files with the exact same name and not creating new ones it should compile. Alternatively, you don't even need to uncompile and recompile. Just take your stock framework and open (not extract) it in 7zip. It'll show you all the files. Drag and drop your modified files over into the 7zip window. It shouldn't have to compress them or anything, it'll just replace the files that have the same name. That's how I make all my modifications.
Click to expand...
Click to collapse
That's, ill give it a shot tomorrow.
alphadog32 said:
Okay, I have a stock framework, and then I have a bunch of png's from another theme in the i9100 section, if I put a .9 image, it wont compile right. So again, if I put the. 9 from the theme to the stock, it wont compile.
Click to expand...
Click to collapse
Paste ur error log so I can tell you the problem
M&S

[Q] Edited framework-res.apk

Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
If you want to post your framework file, I'll do it for you and send it back.
I just posted several of these for Caulkulin's 3.0 rom. What are you using now? His framework, but with a stock battery look.
Sent from my SPH-D710 using XDA
kyamora said:
Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
Click to expand...
Click to collapse
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
playya said:
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
Click to expand...
Click to collapse
I was using apk manager 4.9, and I have no idea how to read the log.
I attached my framework-res. It's stock from FD19, I probably should have specified.
If no one gets to it, I'll mod it when I get home.
Sent from my SPH-D710 using xda premium
All done. I tested on my phone. After I replaced the apk, I had to manually restart the phone for it to work. I placed your apk in a zip file before I uploaded, so make sure you unzip your apk before putting it back on your phone.
Thank you so much, it works very well.
Now I'd just like to know how you did it. Coming from a clean computer with nothing installed, what would I need to decompile an apk, edit it, and compile it again? I'm trying to get a handle on the whole thing to do some development myself.
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
playya said:
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
Click to expand...
Click to collapse
Do I have to do anything to set it up or is it good to go from install? Should I restart my computer?
Also where can I find 5.02? I had a lot of trouble finding 4.9 in the first place.
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
&roid said:
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Apktool confused me so I used apk manager. I can't figure out how to get apktool to work. Do you have a link to a good guide or anything?
There are some good ones on xda. I'll link you one when I get home.
Sent from my SPH-D710 using xda premium
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
kyamora said:
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
Click to expand...
Click to collapse
YES
&roid said:
YES
Click to expand...
Click to collapse
Haha, at least I'm learning.
To be fair, no one specified. Thanks for all the help guys.
Hi. Any help me to on crt effect in this framework ? I try apk menager and apk edit, and always some problem when compile, program loop and only exit work
http://db.tt/W2DKqulN

Please help me with theming!

Okay, I am really sorry if this sounds negative or like a rant, first off. I really want to get into theming. I have been trying for weeks, possibly months, to figure out how to do certain things. I have only recently been able to successfully make a zipthemer mod, and that's very easy. I really need specific help. The tutorials that I have seen are not specific enough, as they assume that you have prior knowledge of things like SDK and ADB. I am a completely clean slate. I have been completely unsuccessful in finding a step by step tutorial that I can actually follow to get the things done that I want to do. Maybe it's just me, but I have been literally hours searching for it. I have asked for help, but never get any because people tell me to go research how to do it.
I want to do only two things now...I am running dark paranoid android and I want to change the circlemod battery from the stock to white. I have the pngs, I just don't know where to put them or what files need to be edited. I also have no coding experience, so I need fairly specific help to learn what things need to change.
I also want to change the clock in the status bar from the ICS blue to white.
That's it....I know it sounds like it should be simple, but it's not to me. I have tried and tried to find the answers on my own, but have been wholly unsuccessful. It has left me feeling jaded and frustrated, leading to this thread.
Can somebody please point me somewhere that will teach me what I need to know with kid gloves? I want to really get into doing this and participate in the community, but I fail time and time again. I have tried to find pre-made themes to do what I want, but everything is usually too deeply modded whereas I only want to change a few things. Please help!
they go in the systemui.apk /res/drawables-xhdpi folder. If there is already a circles mod there, you don't need to code anything. The status bar clock color is in styles.xml of systemui.apk. The color code for ics is #33b5e5, so change it to #ffffff.
Here's the line of code you need to change. https://github.com/android/platform...r/packages/SystemUI/res/values/styles.xml#L41
change @android:color/holo_blue_light to #ffffff.
This is called hard coding, and in an ideal world, you'd change it to @color/status_bar_clock then add that value to colors.xml, but i know google will never optimize their code that way
artvandelay440 said:
they go in the systemui.apk /res/drawables-xhdpi folder. If there is already a circles mod there, you don't need to code anything. The status bar clock color is in styles.xml of systemui.apk. The color code for ics is #33b5e5, so change it to #ffffff.
Click to expand...
Click to collapse
Thank you very much. I didn't know which XML to look at.
I am pretty sure I tried putting the mod in that folder but it didn't take for some reason. I have looked pretty deeply into any other place they could be and can't find it for some reason.
Sent from my Galaxy Nexus using Tapatalk 2
liquid150 said:
Thank you very much. I didn't know which XML to look at.
I am pretty sure I tried putting the mod in that folder but it didn't take for some reason. I have looked pretty deeply into any other place they could be and can't find it for some reason.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Look in the /drawable folder in systemui. If the mod is present, you should find a stat_sys_battery_circle.xml in there.
artvandelay440 said:
Look in the /drawable folder in systemui. If the mod is present, you should find a stat_sys_battery_circle.xml in there.
Click to expand...
Click to collapse
Thank you I will check it out.
Sent from my Galaxy Nexus using Tapatalk 2
No problem. I'm writing a guide for my site on theming that's aimed at both beginners and advanced. I'll link it here when I'm done.
Sent from my Galaxy Nexus using Tapatalk 2
artvandelay440 said:
No problem. I'm writing a guide for my site on theming that's aimed at both beginners and advanced. I'll link it here when I'm done.
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Any idea why when I flash white numbers into phone.apk it doesn't change anything? I am not in a place I can play with XML (no computer) so I tried something else.
Does pa/cm10 use a different apk?
Sent from my Galaxy Nexus using Tapatalk 2
liquid150 said:
Any idea why when I flash white numbers into phone.apk it doesn't change anything? I am not in a place I can play with XML (no computer) so I tried something else.
Does pa/cm10 use a different apk?
Sent from my Galaxy Nexus using Tapatalk 2
Click to expand...
Click to collapse
Phone.apk dial numbers used for "During a call dialer" so you have to change Contacts.apk dial numbers.
Yep- he's right. The ones in phone.apk are for the in-call dialpad.
Is there a fairly specific tutorial thread that I can turn to for editing XML files? From my very limited understanding I have to decompile it and work through it myself. Do I do this through ADB and push it? Is there an ADB tutorial to do things like that? I was hoping somebody here has a fairly specific noob-friendly tutorial.
My issue is that most of the tutorials that I have seen just say things like "use X tool and decompile." Well, I don't know how to do that. lol.
Thanks to everyone for all your help, and also to anybody else that helps in advance.
liquid150 said:
Is there a fairly specific tutorial thread that I can turn to for editing XML files? From my very limited understanding I have to decompile it and work through it myself. Do I do this through ADB and push it? Is there an ADB tutorial to do things like that? I was hoping somebody here has a fairly specific noob-friendly tutorial.
My issue is that most of the tutorials that I have seen just say things like "use X tool and decompile." Well, I don't know how to do that. lol.
Thanks to everyone for all your help, and also to anybody else that helps in advance.
Click to expand...
Click to collapse
For decompile:
*you will need to have Java runtime installed*
1.download http://minus.com/mwgtTbmZd
2.create a folder c:\apktools
3.Take the zip and unzip all 4 files to c:\apktools
4.You will need to pull the framework-res.apk from the rom you are working on. Copy it to c:\apktools
5.Rename apktool.jar.1.4.2 to apktool.jar
6.Open a command window and make sure everything you do from now on is while you are in this folder c:\apktools
* If you don't know how, just open command window and by use this command ( cd.. ) until you are in ( C:\ ) driver then ( cd apktools )
7.In command window type: java -jar apktool.jar if framework-res.apk
You only need to do this once, unless you are working on a different Rom
8.decompile framework-res with apktool: java -jar apktool.jar d framework-res.apk
make any changes you want
9.Now compile: java -jar apktool.jar b framework-res
If you get error compile it with apktool version 1.4.3, So what I do at this point is rename apktool.jar to apktool.1.4.2, and then rename apktool.jar.1.4.3 to apktool.jar
10.Once it is done compiling you will need to go to c:\apktools\framework-res\dist and you will now see your new framework-res.apk
Just remember to copy any apk you want to decompile right into the root of c:\apktools
--
Now put your new for example framework-res in flashable zip (attached) and flash by using Rom Manager aka CWM.
Note that framework-res.apk should be inside framework folder, and SystemUI.apk inside app folder.
I'll make one tonight and link it.
Sent from my Galaxy Nexus using Tapatalk 2
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
liquid150 said:
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
Click to expand...
Click to collapse
I'd start in Linux since more of the advanced concepts require it.
Sent from my Galaxy Nexus using Tapatalk 2
Check this out. It might help http://www.jbthemes.com/artvandelay440/theming-guide/
I am having trouble finding the status bar xml controlling clock color (battery, too). I am not seeing a values nor styles folder nor XML in System UI. My ROM is DarkPA. If anybody knows offhand where I should look please let me know, otherwise I will continue on my own.
you won't see a /values folder until you decompile it. then, it will be in /res.
liquid150 said:
Oh, one more question...is this a lot easier to do in Linux? I haven't installed my copy of Ubuntu on my new box yet because I haven't felt the need yet.
Click to expand...
Click to collapse
get that ubuntu booted
Sent from my Galaxy Nexus using Tapatalk 2
If you still need help tomorrow let me know. I could either do the edits for you or help you with the apps you need ...
Thyrus said:
If you still need help tomorrow let me know. I could either do the edits for you or help you with the apps you need ...
Click to expand...
Click to collapse
I am available as well. Hit me up via talk if need be. I have helped many setup theming. Although i use xdaautoapktool which is much more comprehensive theming tool...
Sent from my Nexus 7 using Xparent Blue Tapatalk 2

[Q] Edit system/framework/services.jar

Can anyone fill me in on details of how to edit java executable files? I would like to remove the GPS icon from the notification bar in the ROM I am using and the best I could come up with is this: The file I need to change is in system/framework/services.jar
Better yet, does anyone have a flashable zip with an edited services file that has no GPS icon? I would like one that works with Sense 3.0 ROMs.
If you use gimp or photoshop its pretty easy just make the GPS.png file or what ever its named in the framework-res.apk and make it transparent.
Then zip the app and sign it with a META-INF signer.
Sent from my EVO using xda premium
Or you could replace the picture itself with an empty picture so that when GPS is on and so are other radios, there won't be a random empty space there. Also, to explain how to edit the "java executable", let me explain how java works
So the reason that java is great is that its cross platform. But how? So when a .jar file is created, that's actually not 100% compiled itself, its more like 60/70% of the way there. And that's where the JRE comes in. When you open a .jar file, the code is compiled the rest of the way into bytecode that the specific OS its running on can interpret.
So there is really no such thing as a "java executable". The "jar" format is basically just a ZIP file with partially compiled code, so what you need to do is extract all the files from it (use 7Zip or something) and then get a .class decompiler (I recommend JD-GUI, its free and one of the best out there. It also has an option to decompile all the files into .java files and packages it into a .zip) and then just look at the source code. The problem is to find where exactly the GPS icon is set up, because when you decompile it, its going to be a huge mass of folders and folders and folders of files
Sent from my PG06100 using xda premium
lreyes said:
If you use gimp or photoshop its pretty easy just make the GPS.png file or what ever its named in the framework-res.apk and make it transparent.
Then zip the app and sign it with a META-INF signer.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Thank you very much for your reply. The information I originally found pointed me in the wrong direction. I found the images I want to edit in the data\sysapp\SystemUI.apk\res\drawable-hdpi. There are five .png files all starting with names like sym_gpsone_0_sprint.png. I've included some below.
All of the other modifications I have made to the ROM I am running involved using m10 and the fusion.apk or the Idlescreen_Base.apk. I know how to make those changes work on my phone. If I alter the .png images in the SystemUI.apk, I know how to zip it again, but I could use some instructions on how to sign it with a META-INF signer.
HopHead68 said:
Thank you very much for your reply. The information I originally found pointed me in the wrong direction. I found the images I want to edit in the data\sysapp\SystemUI.apk\res\drawable-hdpi. There are five .png files all starting with names like sym_gpsone_0_sprint.png. I've included some below.
All of the other modifications I have made to the ROM I am running involved using m10 and the fusion.apk or the Idlescreen_Base.apk. I know how to make those changes work on my phone. If I alter the .png images in the SystemUI.apk, I know how to zip it again, but I could use some instructions on how to sign it with a META-INF signer.
Click to expand...
Click to collapse
Let me get on my comp and I'll link you
Sent from my PG06100 using xda premium
Task Accomplished
CNexus said:
Let me get on my comp and I'll link you
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
Thank you everyone who replied and tried to help me out. After searching around some more, I managed to make the modifications work.
Damn, ain't things easy once you know what you're doing? Anyhow, the results are below. No more GPS icon whether the GPS is on or off now.
Thanks again.
If anyone wants a brief tutorial just ask and I'll be glad to help.
HopHead68 said:
Thank you everyone who replied and tried to help me out. After searching around some more, I managed to make the modifications work.
Damn, ain't things easy once you know what you're doing? Anyhow, the results are below. No more GPS icon whether the GPS is on or off now.
Thanks again.
If anyone wants a brief tutorial just ask and I'll be glad to help.
Click to expand...
Click to collapse
Dude. So sorry, completely forget to post after telling you
But anyway, the process is explained in the following thread, as well as how to make a flashable zip in case anyone else is interested
Link: http://forum.xda-developers.com/showthread.php?t=1611615
But again, so sorry about that
Sent from my PG06100 using xda premium
CNexus said:
Dude. So sorry, completely forget to post after telling you
But anyway, the process is explained in the following thread, as well as how to make a flashable zip in case anyone else is interested
Link: http://forum.xda-developers.com/showthread.php?t=1611615
But again, so sorry about that
Sent from my PG06100 using xda premium
Click to expand...
Click to collapse
No worries at all. Before you put this up, I figured it out. Part guidance, part stumbling though the dark and some luck led to success.
Thanks for the help.
Cheers.

Categories

Resources