Related
So here's the thing. I can make themes but I've had some requests for only the battery in my theme. So my question is if I have only the battery icons saved in a framework-res.apk what do I need to do to make that flashable, if someone doesn't want to explain and just do it for me that'd be great . I have three different designs but if you do one I can just put the others into a new one, but I would like to know what command to put into the script and if there's anything else I need to do. I'm on my phone so I can upload one later
Sent from my T-Mobile G2 using XDA App
Bump
Sent from my T-Mobile G2 using XDA App
I'm not positive, but I don't think it's possible to do what you are talking about. My understanding is that the framework-res.apk must be complete if doing the update.zip method (because it's simply going to overwrite what is there). Users will have to extract their own framework, replace with your images/xml and then replace their framework.
Otherwise, maybe they could use something like MetaMorph or NinjaMorph. I don't have much experience with those though.
ianmcquinn said:
I'm not positive, but I don't think it's possible to do what you are talking about. My understanding is that the framework-res.apk must be complete if doing the update.zip method (because it's simply going to overwrite what is there). Users will have to extract their own framework, replace with your images/xml and then replace their framework.
Otherwise, maybe they could use something like MetaMorph or NinjaMorph. I don't have much experience with those though.
Click to expand...
Click to collapse
I think they are right,... I don't think it is possible to only update select images from within framework-res.apk. All or nowt.
Yeah I gave up and did a metamorph file lol thanks
Sent from my T-Mobile G2 using XDA App
This will guide you through making a theming template.
Why: it was requested
What is it for: This is the base in which you start your custome theming. If you have read through Dreamsforgotten thread on theming, you will see that he refers to a theming template to start with.
Be advised, This is not a rom. It is just a template that some dev/themers use as a base for their custome themes or to return to a stock deodex theme. Also, this assumes that you are on a stock rooted system
The Difference you ask:
Theming templates : do not have a modem or kernel, They do have a system folder with and App, font, and framework folder.
Rom: has everything needed to run the OS. Modem (sometimes), kernel, and a full system folder
This is how I do it. That is not to say it is right or wrong, but it works for me. There may be other/easier way developed by other devs.
EI22 Theme Template
Tools:
Rom kitchen form here ( follow the thread and set it up )
7zip from here
Notepad++ from here
Rooted device: if you are not rooted look in the dev section of your device for the instructions on that
Clockwork mod: if you don’t know what this is or don’t have it go to the dev section and research.
Instructions:
1: get a copy of the STOCK system folder. It really does not matter how you get it. JUST GET IT
HINT: if you are rooted already, use root explorer or equivlant and copy it to the sdcard….
Depending on how you got it, you may need to copy it to your computer desktop ( do so now)
2: now you will need to make a zip file (by now you should have 7zip installed)
r-click on system folder that you just copied to your desktop
choose 7zip > add to archive.
under archive change name to (build#).zip ( replace (build#) with the build you are using i.e ec05, ei22 ect….)
At this point you will need the rom kitchen. So, if it is not set up, DO SO!!!!!!!
3: copy to the zip folder to kitchen > original_update. Then open the kitchen.
Choose option 1, answer the next few questions as you need to. For me, I just hit enter at the 4 questions. You should be back at the main screen now
option 0 (enter) > option 11 (enter) > option b (enter) > enter ( best so that if there are errors you can troubleshoot) ( this takes a while: 20 min) assuming all went well, you should get
0 *.odex in system/app
0 *.odex in system/framework
Hit the enter key
option 99 > option 2
At this point, there should be a new folder named “output_zip” with your rom in it. (enter) you should be back to the mail menu. We are done with the kitchen so you can close that.
BUT your not done yet.
4: go to the above mentioned folder. In the folder there will be a zip file.
r-click on it and rename theme_template_(build#) ( replace (build#) with the build you are using i.e ec05, ei22 ect….)
r-click> 7zip> open archive - There you will see two folders and a boot image.
delete the boot.img file
go into the system folder and delete everything except app, framework, and font folders
back out one level and go into meta-inf >com > google >android
Now delete the updater-script (leave 7zip open)
Now we need to write the updater-script for CMW to read
5: open notepad++
BE ADVISED, this portion is for the EPIC 4G and the updater-script may change formats based on your device. So do some research first. I tend to look at other script for my devices to see how it should be formatted.
You can copy and past this in or type it yourself:
show_progress(0.1, 0);
delete_recursive("/system/framework");
delete_recursive("/system/app");
delete_recursive("/system/fonts");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
delete_recursive("/data/dalvik-cache");
show_progress(0.1, 10);
unmount("/system");
Or use this: updater-script
file >save as
Name file: updater-script
File type: chose all types (*.*) you may need to scroll up or down to find it.
save to desktop
drag and drop the updater-script into the 7zip screen. ( you will be prompted with a ?. just hit yes.)
You should now have 3 files on the 7zip screen
Updater-script, update-binary, update-script.orig
close 7zip.
Connect phone via USB
Copy file to sdcard
Disconnect phone
Reboot to CMW
Choose: backup and restore >backup (when its finished you will have a nandroid to restore if you F.U.B.A.R. your phone.
Choose: install zip from sdcard and install your theming template.
Reboot.
Now use your favorite file explorer and go to system/framework and make sure it has been deodexed. If so, the flash was successful and your theme template works.
Congradulations you built your first theme. All be it a stock one. lol
mine for the thank you's
dreams - for all of his tuts
dsixda - for the kitchen.
Finally
Sent from my SPH-D700 using Tapatalk
Zeinzu said:
Finally
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
your welcome.... lol
Download doesn't work. Just downloads and empty zip.
Sent from my SPH-D700 using Tapatalk
You can use this thread or learn to do the XML code changes and mods by hand as most of the seasoned theme devs do... I find it a whole lot more rewarding than letting this kitchen or the UOT Kitchen do the work for me....
This also works hand in hand when something goes wrong with your theme you know where to look to fix the problem.
FYI, even with the various themes that myself and ZiggSVO have worked on we still don't know everything and we all do exchange ideas and trouble shoot among each other. That is what makes all this stuff fun and rewarding.
Just my opinion...
Zeinzu said:
Download doesn't work. Just downloads and empty zip.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
looking into it.
just dl'ed - worked fine for me.
Paul627g said:
You can use this thread or learn to do the XML code changes and mods by hand as most of the seasoned theme devs do... I find it a whole lot more rewarding than letting this kitchen or the UOT Kitchen do the work for me....
This also works hand in hand when something goes wrong with your theme you know where to look to fix the problem.
FYI, even with the various themes that myself and ZiggSVO have worked on we still don't know everything and we all do exchange ideas and trouble shoot among each other. That is what makes all this stuff fun and rewarding.
Just my opinion...
Click to expand...
Click to collapse
i tend to agree. but a noob has to have someplace to start. I wish there was the help i needed when i started doing these things a yr ago. I've learned alot throught the guids that i've found, but yes learning to do them by hand is great to.
Z..
what are you tring to dl. the template "worked fine for me" or the updater-script?
Paul627g said:
You can use this thread or learn to do the XML code changes and mods by hand as most of the seasoned theme devs do... I find it a whole lot more rewarding than letting this kitchen or the UOT Kitchen do the work for me....
This also works hand in hand when something goes wrong with your theme you know where to look to fix the problem.
FYI, even with the various themes that myself and ZiggSVO have worked on we still don't know everything and we all do exchange ideas and trouble shoot among each other. That is what makes all this stuff fun and rewarding.
Just my opinion...
Click to expand...
Click to collapse
I definitely agree, doing it by hand gives you a more broad understanding of how the xml code works. This allows you to perform other modifications as well, and like Paul said it is rewarding and also exciting.
Don't get me wrong, I definitely appreciate the guide! Perhaps you could divide it into a noob section and a more involved section.
Sent from my SPH-D700 using XDA Premium App
thomasskull666 said:
I definitely agree, doing it by hand gives you a more broad understanding of how the xml code works. This allows you to perform other modifications as well, and like Paul said it is rewarding and also exciting.
Don't get me wrong, I definitely appreciate the guide! Perhaps you could divide it into a noob section and a more involved section.
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
Paul627g said:
You can use this thread or learn to do the XML code changes and mods by hand as most of the seasoned theme devs do... I find it a whole lot more rewarding than letting this kitchen or the UOT Kitchen do the work for me....
This also works hand in hand when something goes wrong with your theme you know where to look to fix the problem.
FYI, even with the various themes that myself and ZiggSVO have worked on we still don't know everything and we all do exchange ideas and trouble shoot among each other. That is what makes all this stuff fun and rewarding.
Just my opinion...
Click to expand...
Click to collapse
Not sure what you are asking for. There is no XML editing involved here. If you are talking about the deodexing process, sure i can write out the long way to do it by hand. But there are alomost 200 odex files btween the apps folder and the framework folder to deodex. This process would take you all day to do if it wasnt for the kitchen.
spdwiz18 said:
Not sure what you are asking for. There is no XML editing involved here. If you are talking about the deodexing process, sure i can write out the long way to do it by hand. But there are alomost 200 odex files btween the apps folder and the framework folder to deodex. This process would take you all day to do if it wasnt for the kitchen.
Click to expand...
Click to collapse
Maybe some are misunderstanding the guide? I'm a little confused also lol. The way I read it...it comes across as just how to deodex your ROM? No actual themeing? Just to get a base template to start themeing...
Is that right?
Further clarification would be appreciated.
Sent from my Nexus S 4G using Tapatalk
I probably jumped the gun myself on thinking this was a theme guide. Only point I was trying to make was I hate seeing people use UOT Kitchen or other means to do themes or build a ROM using it and then put it out as their own work. These methods I think are great for personal use but to build an entire themed frameworks, etc and then expect to take credit for it is a bit overboard and trust me there has been plenty of work here in the past based off of UOT Kitchen and other means.
Bottom line, its more rewarding in the long run when you do as much as possible by hand and learn how its all done. Heck I even recently went back and learned how to use APK TOOL itself to decompile and recompile apks aside from just using APK Manager. Sure I know APK Manager is the tool of choice but I still wanted to see how others did it before the big move over to APK Manager.
Otherwise, this is a great thread having a tool to deodex a ROM. Personally I have never successfully deodexed a ROM myself, I've come close and had working ROMs but usually ended up with one thing or another broken in the deodexing process.
Paul627g said:
I probably jumped the gun myself on thinking this was a theme guide. Only point I was trying to make was I hate seeing people use UOT Kitchen or other means to do themes or build a ROM using it and then put it out as their own work. These methods I think are great for personal use but to build an entire themed frameworks, etc and then expect to take credit for it is a bit overboard and trust me there has been plenty of work here in the past based off of UOT Kitchen and other means.
Bottom line, its more rewarding in the long run when you do as much as possible by hand and learn how its all done. Heck I even recently went back and learned how to use APK TOOL itself to decompile and recompile apks aside from just using APK Manager. Sure I know APK Manager is the tool of choice but I still wanted to see how others did it before the big move over to APK Manager.
Otherwise, this is a great thread having a tool to deodex a ROM. Personally I have never successfully deodexed a ROM myself, I've come close and had working ROMs but usually ended up with one thing or another broken in the deodexing process.
Click to expand...
Click to collapse
Ya I will admit so did I lol, the xml portion is in reference to theme porting, not deodexing.
Carry on >_>
Sent from my SPH-D700 using XDA Premium App
Paul627g said:
I probably jumped the gun myself on thinking this was a theme guide. Only point I was trying to make was I hate seeing people use UOT Kitchen or other means to do themes or build a ROM using it and then put it out as their own work. These methods I think are great for personal use but to build an entire themed frameworks, etc and then expect to take credit for it is a bit overboard and trust me there has been plenty of work here in the past based off of UOT Kitchen and other means.
Bottom line, its more rewarding in the long run when you do as much as possible by hand and learn how its all done. Heck I even recently went back and learned how to use APK TOOL itself to decompile and recompile apks aside from just using APK Manager. Sure I know APK Manager is the tool of choice but I still wanted to see how others did it before the big move over to APK Manager.
Otherwise, this is a great thread having a tool to deodex a ROM. Personally I have never successfully deodexed a ROM myself, I've come close and had working ROMs but usually ended up with one thing or another broken in the deodexing process.
Click to expand...
Click to collapse
thomasskull666 said:
Ya I will admit so did I lol, the xml portion is in reference to theme porting, not deodexing.
Carry on >_>
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
And this is why im not in the field that i went to school for. lol (cysco networking) i got to the last class and they told me i had to document everything. I just dont have the skills to do that. I am going to edit the OP to better clarify what i was tring to do.
No worries to everyone. your opinions are wellcome. I am not all knowing, but i love to learn and share what i do know.
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
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
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.