[Q] [Req] Theming on mac - Samsung Galaxy Nexus

Want to learn how to theme apk's and change things on my Rom but cant find any Guides to fully walk me through the steps so they can work on my nexus any help would be appreciated.

WonkyYew said:
Want to learn how to theme apk's and change things on my Rom but cant find any Guides to fully walk me through the steps so they can work on my nexus any help would be appreciated.
Click to expand...
Click to collapse
Here you go.

Thanks so much for the link ! only one thing I'm stuck on is how to update the archive or put the edited .9png files into the framework.res-apk would you know how to do that ?? Your help is Much Appreciated

WonkyYew said:
Thanks so much for the link ! only one thing I'm stuck on is how to update the archive or put the edited .9png files into the framework.res-apk would you know how to do that ?? Your help is Much Appreciated
Click to expand...
Click to collapse
Try using a windows virtual machine I have that on my Mac and was able edit a launcher on my nexus s a while back. Using 7zip and gimp to do the edits.
Sent from my Galaxy Nexus using xda premium

Related

[Solved]1.apk needed

I cant find a working framework.apk to use for 1.apk so i can decompile system apk's i used to have it but i had to reformat my pc & i couldnt recover it so if anyone here has one they can lend me it would be much appreciated
greenmuggy said:
I cant find a working framework.apk to use for 1.apk so i can decompile system apk's i used to have it but i had to reformat my pc & i couldnt recover it so if anyone here has one they can lend me it would be much appreciated
Click to expand...
Click to collapse
I think I'm confused lol are you looking for a stock framework-res.apk so that you can decompile and compile?
Sent from my SPH-D700 using Tapatalk
travismoreno said:
I think I'm confused lol are you looking for a stock framework-res.apk so that you can decompile and compile?
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
yes exactly
Read this: http://forum.xda-developers.com/showpost.php?p=16747783&postcount=1171
shane6374 said:
Read this: http://forum.xda-developers.com/showpost.php?p=16747783&postcount=1171
Click to expand...
Click to collapse
i use apk manager, but the folder it needs to go in is apk tool
I has the ei22 update .zip how can i pull the framework outta that???
greenmuggy said:
I has the ei22 update .zip how can i pull the framework outta that???
Click to expand...
Click to collapse
Pull it from one of the stock deodexed roms.
shane6374 said:
Pull it from one of the stock deodexed roms.
Click to expand...
Click to collapse
cant find one they are all not so stock...
solved
solved thanx shane for the link & helpin me figure this out

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.

SystemUI Theme

Hey guys, I'm not sure if this is the right spot, but if not can a mod please move it.
Anyway I want to add a notification background to my systemUI, and/or change the statusbar color. I know what to change but I do not know how to compile APKs, so if there is anyone out there who would be willing to do it for me it would be great, I can send you all my files!
Thank you so much in advance!
Pikezer1337 said:
Hey guys, I'm not sure if this is the right spot, but if not can a mod please move it.
Anyway I want to add a notification background to my systemUI, and/or change the statusbar color. I know what to change but I do not know how to compile APKs, so if there is anyone out there who would be willing to do it for me it would be great, I can send you all my files!
Thank you so much in advance!
Click to expand...
Click to collapse
It's possible, but you would need to flash a custom ROM that supports UI customization to do this.
Swap out images with the same file name using 7 zip but don't extract the ROM
Do I use 7zip on my Pc or phone?
Pikezer1337 said:
Do I use 7zip on my Pc or phone?
Click to expand...
Click to collapse
Swapping out the PNG's only works on the computer I've tried on the phone but no dice. Again, make sure you do not extract the ROM, or changing the images will not work!
Correction: NinjaMorph in the Google Play store can alter images from the phone, though its a little bit harder to use in my opinion.
Adizzzle said:
Swapping out the PNG's only works on the computer I've tried on the phone but no dice. Again, make sure you do not extract the ROM, or changing the images will not work!
Correction: NinjaMorph in the Google Play store can alter images from the phone, though its a little bit harder to use in my opinion.
Click to expand...
Click to collapse
Okay, so I have downloaded Ninjamorph, and I somehow can not find the .png for the notification background for 4.1.1. I'm on the stock ROM, Do you happen to know what the file name is?
Pikezer1337 said:
Okay, so I have downloaded Ninjamorph, and I somehow can not find the .png for the notification background for 4.1.1. I'm on the stock ROM, Do you happen to know what the file name is?
Click to expand...
Click to collapse
I believe that is a hex value in one of the xml files. you would need to decompile and edit the xml to allow custom png images as the background.
BYOBret said:
I believe that is a hex value in one of the xml files. you would need to decompile and edit the xml to allow custom png images as the background.
Click to expand...
Click to collapse
Sounds a tad complicated
Adizzzle said:
Sounds a tad complicated
Click to expand...
Click to collapse
Yeah, it requires a bit more work. I am looking for the thread where I found the info, but xda search is down. I will link as soon as I find it.
BYOBret said:
Yeah, it requires a bit more work. I am looking for the thread where I found the info, but xda search is down. I will link as soon as I find it.
Click to expand...
Click to collapse
Thanks I wanted to look into this. :beer:
Adizzzle said:
Thanks I wanted to look into this. :beer:
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1770698
This should still apply. Check post 2.
...and this one should help if you have questions about modifying the apk
http://forum.xda-developers.com/showthread.php?t=2147425

Need guide to decompile/edit/recompile framework.jar

I'm trying to learn a little about porting roms and I'm using this thread by @Hero ;http://forum.xda-developers.com/showthread.php?t=2069850. My problem is that I can't seem to find a usable guide on how to actually decompile the framework.jar and get to the smali folders mentioned in step 12. I've been searching all day and the only guides I see involve classes.dex, which don't appear to be what I'm looking for. Any guidance or push in the right direction would be greatly appreciated. Thanks in advance
Awesome endeavor! I think I saw something under Android development a while back. But, what I found was really old. If you are able to find (outside of here) please post back...
Thanks
Sent from my SPH-L710 using Xparent Cyan Tapatalk 2
g_money said:
Awesome endeavor! I think I saw something under Android development a while back. But, what I found was really old. If you are able to find (outside of here) please post back...
Thanks
Sent from my SPH-L710 using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Will do, thanks..
nyfl2004 said:
Will do, thanks..
Click to expand...
Click to collapse
Nyfl2004 I swear I remember your name from my early days on MOAR? Anyway, no thank you. What I find on Android dev always seems obsolete the next day. And now we're on 4.4.2. Guaranteed if I find anything "new" about dev, it will relate to JB. I'll PM you if I come across anything of interest...
Sent from my SPH-L710 using Xparent Cyan Tapatalk 2
Found this thread and this one here. May help out a bit.
Evilone69tmg said:
Found this thread and this one here. May help out a bit.
Click to expand...
Click to collapse
Thanks man. I must be missing something. Are the smali edits in framework.jar are done thru classes.dex?
g_money said:
Nyfl2004 I swear I remember your name from my early days on MOAR? Anyway, no thank you. What I find on Android dev always seems obsolete the next day. And now we're on 4.4.2. Guaranteed if I find anything "new" about dev, it will relate to JB. I'll PM you if I come across anything of interest...
Sent from my SPH-L710 using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Yeah, that's me man. I'm the guy with the ElegantWhite theme. I did one for MOAR
nyfl2004 said:
Thanks man. I must be missing something. Are the smali edits in framework.jar are done thru classes.dex?
Click to expand...
Click to collapse
Sorry for the late reply. I tried my apktool, but something's wrong with it (At work no time to fix). So I used VTS to decompile the framework jar and it gives you a bunch of folders with smali files to edit. Hope that helps. I'm no expert at this. Trial and error is how I learn things
Evilone69tmg said:
Sorry for the late reply. I tried my apktool, but something's wrong with it (At work no time to fix). So I used VTS to decompile the framework jar and it gives you a bunch of folders with smali files to edit. Hope that helps. I'm no expert at this. Trial and error is how I learn things
Click to expand...
Click to collapse
You're a gentleman. I appreciate your help and input. I'll give it a whirl and let you know how I make out. Thanks again! :good::good:
Edit: Well, I downloaded and tried it with VTS. I get the same result as with ApkTool. There must be an error in the OP mentioned in post # 1. I cannot find the smali folders that the OP mentions. Example:
12.In system/framework/ of BOTH ROMs, decompile framework.jar and framework2.jar•In the framework.jar of the ROM you want to port - delete the following folders:•smali/android/provider
•smali/android/telephony
•smali/android/server
•smali/android/service
•smali/com/android/internal/telephony
•Replace them with the folders from the ROM for your carrier
•In the framework2.jar of the ROM you want to port - delete the following folders:•smali/android/provider
•smali/android/telephony
•smali/android/server
•smali/com/android/internal/telephony
•smali/com/google/android/mms
That guide is really old...since then they've introduced other jars and moved the files around
Check telephony-common and mms-common jars
And also framework.jar versus framework2.jar
CNexus said:
That guide is really old...since then they've introduced other jars and moved the files around
Check telephony-common and mms-common jars
And also framework.jar versus framework2.jar
Click to expand...
Click to collapse
Thanks a lot CNexus!!. I appreciate your help. I'll keep at it. Getting there slowly but surely.

Categories

Resources