Adding pic to theme - Galaxy S II Themes and Apps

Hi, i have a theme installed on my sgs 2 but have found a pic that i would like to add to my settings tab, heres what i have done, i took the zip file i am using and extracted framework-res.apk, i then decompiled apk and i have deleted the pic thats on my settings now and replaced it with the pic i would like to use, recompiled apk and then rezipped, however when i flashed it all seemed to go ok but phone doesnt get past the first splash screen on boot, just stays black, i am not in anyway trying to make my own theme just would really like this pick in settings tab, could someone help me as to where i have gone wrong!! Thanks in advance

sn0wman1 said:
Hi, i have a theme installed on my sgs 2 but have found a pic that i would like to add to my settings tab, heres what i have done, i took the zip file i am using and extracted framework-res.apk, i then decompiled apk and i have deleted the pic thats on my settings now and replaced it with the pic i would like to use, recompiled apk and then rezipped, however when i flashed it all seemed to go ok but phone doesnt get past the first splash screen on boot, just stays black, i am not in anyway trying to make my own theme just would really like this pick in settings tab, could someone help me as to where i have gone wrong!! Thanks in advance
Click to expand...
Click to collapse
54 views and no replies, can any one help, please!! :crying:

I assume the original image is actually in framework-res.apk?
If so, I suspect it's a decompiling/recompiling problem.
Also, if it's just a png or jpg you're replacing, there's no need to decompile - just drop the new image into the correct folder in the apk using 7-Zip.

Spannaa said:
I assume the original image is actually in framework-res.apk?
If so, I suspect it's a decompiling/recompiling problem.
Also, if it's just a png or jpg you're replacing, there's no need to decompile - just drop the new image into the correct folder in the apk using 7-Zip.
Click to expand...
Click to collapse
Hi, thanks for reply, basically i have just taken a pic from someoneone elses theme and swapped pic with that of the theme i am using so should be right format (right?) but how when i have extracted with 7zip how do i get it all back as .apk file... i used a program called formatter to do it first time!!

Don't extract it, make sure the image you want to replace is named the same and it isn't a .9.png...open the framework-res with 7zip (open archive) navigate to the necessary folder and drop your new png in. That should work
If you extract it you break the signature, that's why you're getting a bootloop.
Sent from my GT-I9100 using xda premium

sn0wman1 said:
Hi, thanks for reply, basically i have just taken a pic from someoneone elses theme and swapped pic with that of the theme i am using so should be right format (right?) but how when i have extracted with 7zip how do i get it all back as .apk file... i used a program called formatter to do it first time!!
Click to expand...
Click to collapse
Spannaa said:
I assume the original image is actually in framework-res.apk?
If so, I suspect it's a decompiling/recompiling problem.
Also, if it's just a png or jpg you're replacing, there's no need to decompile - just drop the new image into the correct folder in the apk using 7-Zip.
Click to expand...
Click to collapse
Thanks matey, just done itand it works great, didnt realise it was that easy...
EDIT: Also thanks to you m1keyb, you answered as i sent this post!! lol :good:

If the picture you're replacing is in the same apk and is the same format (png, jpg) and has the same name and is the same size (px x px) then it ought to be OK.
If the picture you want use is OK, open the apk with 7-Zip (don't unzip it), and simply drop the picture in the correct folder and it'll replace the picture that's already there.
Edit: sn0wman1 edited the post I was replying to and m1keyb replied too - lol, I'm slow!

Hey, you guys seem to know what you are talking about!!, is there a way to get a full image on my lockscreen instead of having to crop about a third of it.. Thanks again for your help

sn0wman1 said:
Hey, you guys seem to know what you are talking about!!, is there a way to get a full image on my lockscreen instead of having to crop about a third of it.. Thanks again for your help
Click to expand...
Click to collapse
resize the pic to same size as lockscreen:laugh:

Thanks matey, what size would that be?

SGS2 - 480px X 800px

Related

AOSP Froyo green and pink lol!

I am currently running CM6 RC1 and I am loving the rom but I am not sure if some of the colors are off. When a call disconnects or things like that the colors are green for connect and the disconnect color is pink? Should it be red or is pink right? Also is there anyway to change this without going to a theme. I like my current setup and the only thing I am not liking is the pink. Nothing against pink just dont like it with green I guess.
haha noticed the same thing the other day, stuff that you would guess should be red are instead pink, i really suck at editing images, but it you wanna give it a try all the images should be within the Phone.apk i believe.
Found the Apk what do I use to open it so I can see the images?
twilk73 said:
Found the Apk what do I use to open it so I can see the images?
Click to expand...
Click to collapse
An apk is nothing more than a zip file.... Winrar by Rarlabs works nicely.
Thanks for the help
Casshern said:
An apk is nothing more than a zip file.... Winrar by Rarlabs works nicely.
Click to expand...
Click to collapse
Ok.. lol I have put the file on my desktop and found all the image files but when I open them they are just code. Am I opening them wrong? I tried opening them with paint.net but it didnt work. So are the images really just code or am I doing something wrong?
twilk73 said:
Ok.. lol I have put the file on my desktop and found all the image files but when I open them they are just code. Am I opening them wrong? I tried opening them with paint.net but it didnt work. So are the images really just code or am I doing something wrong?
Click to expand...
Click to collapse
from the phone.apk, there are drawable png files within res, i believe. they are png files, so you should be able to open them with any standard image editing program. i would think that paint.net shouldn't have problems opening the png files, but i am not familiar with the capabilities of paint.net
if you are opening the xml files, or files with any extension other than png, you are opening the wrong files.
upload the images on here and ill see if i can fix them

[Q] editting png

I have been looking for this png(see attachment) I changed one in HtcContact.apk. I've found several others like it but not the correct one. it's the default contact image for when you don't assign an image to a contact.
anyone?
also, I have been editting png files by pulling the apk with android commander, then editting or replacing a png using 7zip then pushing back using commander.
any harm in this? I haven't seen any yet........
try taking a peak in the framework files. /system/framework/com.htc.resources.apk and /system/framework/framework-res.apk
No harm, just keep a backup of whatever apk you modify. If something goes wrong you will basically just get force closes until you restore the original file
Thanks, found it in /system/framework/com.htc.resources.apk
Echo2Lincoln said:
Thanks, found it in /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
Pretty cool. How did you do it? What did you modify in the com.htc.resources.apk?
editing spelled correctly
kenlperry said:
Pretty cool. How did you do it? What did you modify in the com.htc.resources.apk?
Click to expand...
Click to collapse
common_icon_default_avatar.png, people_detail_defaultphoto.png
I edited both of those pics using gimp. I'm not sure which one is the actual image for the contact list cause I got impatient and changed them both.
I sorta followed this thread>http://forum.ppcgeeks.com/htc-evo-4g-themes-mods/133616-how-theme-building-sgbz.html
what I actually did was pull com.htc.resources.apk with the program android commander (http://androidcommander.com/), open the archive with
7zip, copied the png to a seperate folder, edited with gimp, copied back to the open archive, closed the archive and then pushed back to phone.
I must tell you, my profession is in auto repair, I really have no clue what I'm doing but I am having fun and learning as I go...

Customizing graphics (maybe noobish question)

Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
tajimura said:
Less than an hour ago I decided to skin my statusbar. What I do is open SystemUI.apk with 7zip, extract everything from drawable folders and modify them. Now, I've got a question. Is it enough to replace png files in apk with modded ones, or I should somehow sign the apk file?
Thanks in advance.
Sent from nowhere
Click to expand...
Click to collapse
Good question! I'm also interested in this.
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
ckpv5 said:
Can't remember well whether it will work without resigning but I always sign the system apk / user apk after doing any modification.
Unsign apk normally get installed when it is placed at system/app but will not work when put it at sd-ext/app_s.
Click to expand...
Click to collapse
Got it. One more question - which tool do you use for signing?
Sent from nowhere
tajimura said:
Got it. One more question - which tool do you use for signing?
Sent from nowhere
Click to expand...
Click to collapse
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
ckpv5 said:
Auto-sign for signing on PC and Signapktic (from Market) for signing on the phone.
Click to expand...
Click to collapse
Thanks for the answers, now going to try that all
Sent from nowhere
Search for "apk tool" here on xda and you'll have what you need for theming and signing and more.
via xda app
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
rootSU said:
System apps are NEVER signed.
If you don't extract (just open in 7zip or winrar) you can just drag new images in. If prompted for compression level, Choose "store". When finished, simply close the file with the x.
Only if you want to change xml files, need you decompile
Sent from my HTC Desire using Tapatalk
Click to expand...
Click to collapse
Umm, I thought that I have to sign it with "platform" key...
BTW, which PNG is responsible for statusbar background? The closest one I found is "statusbar_bg_tile", 1x1 black image. I want to use gradient background, and have created one full background image and one 9-patch, but dunno what to do - simply replace statusbar_bg_tile with statusbar_bg/statusbar_bg.9 or also modify some xml? In statusbar.xml I can't find any reference to statusbar_bg_tile PNG.
Sent from nowhere

Transparent Pulldown Bar like this, please HELP

Can somebody please help me make my pulldown bar on CodeNameAndroid just like this? It would be amazing if anybody could make a zip theme or flashable zip. The forum where I got this from has a download but it doesn't have the file for zip themer and it causes my UI to crash on boot up after flash. Stock or CNA.
I don't know how to make a ZT file or flashable zip, but I know which files need to be altered...it's not hard, you only have to change out two files in your SystemUI.apk. I'll type out an explanation if you want to try.
I'll try.
Sent from my Galaxy Nexus using xda
Sure. I hope this means I don't have to recompile or anything. I hope its just editing in photoshop.
warfexion said:
Sure. I hope this means I don't have to recompile or anything. I hope its just editing in photoshop.
Click to expand...
Click to collapse
Nah, for basic image changes you don't need even need to decompile/recompile anything.
You just have to pull your SystemUI.apk from system/app. You can do it either through adb or copy-paste to sdcard and then your PC using a file explorer app. Use this PNG I uploaded https://www.box.com/s/93whafwr36fzyijvkx86, and copy-paste it (use WinRAR or 7Zip) to the res/drawable-xhdpi folder of your SystemUI.apk. Push/copy-paste SystemUI.apk back to system/app, set permissions to rw-r-r, and then reboot. It should work.
As always though, have a nandroid handy just in case, or have your original SystemUI.apk ready if you need to push it back.
EDIT: Tried it just now to make sure it worked. Attached a pic if you want to see. Also...I can't tell from the pic you attached whether the top part where the date/time is is transparent as well. If you wanted that part transparent, use this PNG: https://www.box.com/s/hh5h8ptqpc8nojw8x292, replace it in SystemUI.apk using the exact same steps and that part will be the same transparent black as the rest.
dirtygoldfish said:
Nah, for basic image changes you don't need even need to decompile/recompile anything.
You just have to pull your SystemUI.apk from system/app. You can do it either through adb or copy-paste to sdcard and then your PC using a file explorer app. Use this PNG I uploaded https://www.box.com/s/93whafwr36fzyijvkx86, and copy-paste it (use WinRAR or 7Zip) to the res/drawable-xhdpi folder of your SystemUI.apk. Push/copy-paste SystemUI.apk back to system/app, set permissions to rw-r-r, and then reboot. It should work.
As always though, have a nandroid handy just in case, or have your original SystemUI.apk ready if you need to push it back.
EDIT: Tried it just now to make sure it worked. Attached a pic if you want to see. Also...I can't tell from the pic you attached whether the top part where the date/time is is transparent as well. If you wanted that part transparent, use this PNG: https://www.box.com/s/hh5h8ptqpc8nojw8x292, replace it in SystemUI.apk using the exact same steps and that part will be the same transparent black as the rest.
Click to expand...
Click to collapse
Thanks so much dude your awesome! IDK anything with android that isn't flashable ends up usually a mess in my hands so thanks and finally I don't have to stare at that ugly grey!
warfexion said:
Thanks so much dude your awesome! IDK anything with android that isn't flashable ends up usually a mess in my hands so thanks and finally I don't have to stare at that ugly grey!
Click to expand...
Click to collapse
Lol well that's what backups are for! And you're welcome, glad you got it sorted out.

[Q] air command themes

Are there any air command themes that work with the sm p600. I'm running [ROM]Hashcheck-Hybrid-v1[P600][BUCND1 4.4.2]FAST. I've tried flashing the zips from the note 3 forums with no luck.
sequence2469 said:
Are there any air command themes that work with the sm p600. I'm running [ROM]Hashcheck-Hybrid-v1[P600][BUCND1 4.4.2]FAST. I've tried flashing the zips from the note 3 forums with no luck.
Click to expand...
Click to collapse
You can edit them in framework.res apk with ninja morph. If you can wait till tomorrow I can post exactly how to do it if you want. I'm out right now and don't have my tablet. You can download ninja morph from play store and download the theme you want and I'll explain tommoro. It's very easy.
I tried to flash also but the note 3 has a different folder there in then ours so I think that's why they don't flash rite.
mikep2323 said:
You can edit them in framework.res apk with ninja morph. If you can wait till tomorrow I can post exactly how to do it if you want. I'm out right now and don't have my tablet. You can download ninja morph from play store and download the theme you want and I'll explain tommorow. It's very easy.
Click to expand...
Click to collapse
That would be great, I'm in no hurry. Thanks for your help I didn't think of trying to modify the apk.
You have to open ninja morph and click new project.
Then click on system /framework/then framework res.apk, it will extract the apk.
Next you have to go into a file explorer, I use es file explorer.Click on android themes folder then workspace/framework res/res/drawable Xhdpi.
Then in that folder you will find the air command files.There are 10 files in there you need to replace.
Now go to your downloads and extract the air command zip you want.It will put a folder in your downloads of the extracted zip.In the extracted folder keep clicking until you can't go into anymore folders.Ill attach a screen shot of it with the 10 files .
Now copy those 10 files into workspace/framework res/res/drawable Xhdpi. It will ask you to replace the ones you have in there, just click yes.
Now your good to go. Open ninja morph again , make sure it restarts the app.Click on finish projects and you'll see framework res apk.Click that and it compiles file again.It will ask a few questions.I don't remember what but you need to replace that file you changed so I think that is 1 question. I think the other one is if you want to zip align it.I click no. I would make a copy of your framework apk before you change just in case something goes wrong but it also makes a backup in the Android themes folder. If you need help feel free to pm me.
I attached screen shot of the minion one I use and a screen shot of what files you need to copy.
I also might have used astro file manager or root explorer to change the files. I definitely used es file explorer to extract the air command zip I used.
mikep2323 said:
I also might have used astro file manager or root explorer to change the files. I definitely used es file explorer to extract the air command zip I used.
Click to expand...
Click to collapse
Thanks much for all your help! I'm going to see what I come up with and post a screen shot if I end up with something cool.
sequence2469 said:
Thanks much for all your help! I'm going to see what I come up with and post a screen shot if I end up with something cool.
Click to expand...
Click to collapse
I was looking and if you download the one you want and go into the folder and get to drawable Xxhdpi and change to Xhdpi it might flash fine. I think because the double xx one is for note 3 and one X is for our tablet.Alls it can do is not work again.Ill yet tomorrow and see if it works.It would be a lot easier then doing what I explained.
mikep2323 said:
I was looking and if you download the one you want and go into the folder and get to drawable Xxhdpi and change to Xhdpi it might flash fine. I think because the double xx one is for note 3 and one X is for our tablet.Alls it can do is not work again.Ill yet tomorrow and see if it works.It would be a lot easier then doing what I explained.
Click to expand...
Click to collapse
I figured it out. I unzipped the theme and renamed the res folder to drawable-sw800dp-xhdpi, then zipped the META-INF & vrtheme folders up. Flashed and it works perfect! Tried a couple different themes from here http://forum.xda-developers.com/showthread.php?t=2628481 they all worked.
Thanks for all your help!
sequence2469 said:
I figured it out. I unzipped the theme and renamed the res folder to drawable-sw800dp-xhdpi, then zipped the META-INF & vrtheme folders up. Flashed and it works perfect! Tried a couple different themes from here http://forum.xda-developers.com/showthread.php?t=2628481 they all worked.
Thanks for all your help!
Click to expand...
Click to collapse
Did you rename the res\drawable-xxhdpi? I am on Kitkat and unable to make it work. At best, I get the background fine and the icons displaced to the right.
arbit12 said:
Did you rename the res\drawable-xxhdpi? I am on Kitkat and unable to make it work. At best, I get the background fine and the icons displaced to the right.
Click to expand...
Click to collapse
yes what i did was download a themed aircommand zip from the link to the other thread then unzipped it and renamed the folder then zipped back up and flashed. I your trying to theme one yourself you could download a zipped theme and look to see if there's a file your missing or need to change mabey.
Finally working!
sequence2469 said:
yes what i did was download a themed aircommand zip from the link to the other thread then unzipped it and renamed the folder then zipped back up and flashed. I your trying to theme one yourself you could download a zipped theme and look to see if there's a file your missing or need to change mabey.
Click to expand...
Click to collapse
Thanks. The missing links were two.
First, renaming to sw800dp-xhdpi instead of xhdpi. Maybe the kitkat upgrade changed the folder used, as the earlier posts all mentioned it worked fine with xhdpi.
Second, I had to resize some of the images from the themes by sibinn ( http://forum.xda-developers.com/showthread.php?p=49861789#post49861789) The original size is optimised for Note 3 and also works fine on Note 2. In sw800dp folder though, the image sizes are slightly different. After resising, it worked perfectly.

Categories

Resources