DEV HELP??? Editing email.apk file - Nexus S Q&A, Help & Troubleshooting

So, i've got the perfect email.apk that bypasses the exchange security, and never gives me any error messages, but the email icon is outdated, and the refresh, compose, and accounts icons are all wrong when running in gingerbread.
Can anyone help me fix this? I can't seem to figure out how to force it to use different icons.
I have attached the file incase anyone can help out. I would appreciate it

Open the apk as a zip archive I use 7zip then navigate to the folder res/drawable-hdpi look for the icons you don't like if the icon
isn't there, try res/drawable-mdpi sometimes icons are in the mdpi even on hdpi devices like the nexus. Copy and icon you wish over making sure the name is exactly the same. You can take the latest email app to get the updated icons or make your own. Delete the current e mail app and install your modded one.
Sent from my Nexus S 4G using Tapatalk

Use ninjamorph.
OR
If u want to learn something then use apkmanager. Its command line driven and it fairly simple with linux.
http://forum.xda-developers.com/showthread.php?t=695701

Related

[request] Themed 3G icon

can anyone post up a themed version of the stock or new MIUI rom flashable 3G indicator, themed to match this (or both):
http://forum.xda-developers.com/showthread.php?t=788214
Thanks!
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
fllash said:
Do you mean you're after:
A theme for MIUI which has the 3G icons from that theme
or
That theme with the MIUI 3G icons?
Josh.
Click to expand...
Click to collapse
I would like the 3g icon from that rom to flash over SkyRaider 3.2
^Same^ but likt the one from the smooth blue theme that is a blue 3G indicator. Or JUST the stock HTC 3G indicator in blue if possible. Thanks
just pull it out of the framework and color it yourself, it's like 4 images
worm- said:
just pull it out of the framework and color it yourself, it's like 4 images
Click to expand...
Click to collapse
How do I do this?
Thanks
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Contempt4You said:
Funny. I was just going to post asking anyone if they had it in red. I would also like to know how to do it.
Click to expand...
Click to collapse
I know. I really want it lol, because i kinda hate the 3G indicator in the theme i have currently, as it's hard to see the upload/download arrows, so i just wanted a flashable indicator so I dont lose the cool notification pulldown
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
do adb pull /system/framework/framework-res.apk
And the images should n in the drawable-hdpi. Folder if not just look around until u find the images
Then pull the framework from your current Rom and replace your images with the images you want then repush your framework hack to the phone and reboot
Sent from my ADR6300 using Tapatalk
Contempt4You said:
I can edit it with photoshop if I can find it. Can anyone give me a hint to the file path?
EDIT: Hah...ok I suck and fail.
I found the apk and edited the images. Looked great. Put the apk back together. Unistalled the original apk and tried to install my modified apk. Would not install. I'm done with it for now. I guess I will read up on signing tomorrow although I thought I had read that system apps didn't need to be signed.
I'll play with it more tomorrow.
Click to expand...
Click to collapse
If you figure it out can you pack a zip of just the 3g icon in blue as well for me?
Thanks man
Thanks for the tips. With a little help from google, I was able to figure it out.
Which icon did you need exactly? The 3g toggle or the notification bar?
well, i did it and replaced some old icons with cooler looking ones, but the 3g icons (along with similar data icons) did not show up. all of the other ones showed up. also, i read a thread where this dude got 4g icons from another rom and installed them on his phone to make it look like he had 4g, but then hours later, he experienced loss of mobile data... and now i think i am too... any suggestions?
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Contempt4You said:
I'm sorry I can't help you. I am learning all this myself and wouldn't pretend to know where to start on that. All I can say is that if you are going to make any changes then backup early and often.
The 3g toggle icons I was looking for were in system/app. I merely reskinned them and dropped them back in.
Click to expand...
Click to collapse
i wanted notification bar icon
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Contempt4You said:
I'm running a theme and mine is already skinned. I think either way you would still have to adb push it onto your phone. I did some googling and took a crash course on changing system icons.
Once I figured it out, it made sense (i know that sounds stupid, but after i did it, I was like oh yeah I get it now). I know that's not a big help, but I'm new to this and wouldn't want to bork your phone. Maybe someone more knowledgable will come save the day.
Otherwise I would google in terms like editing apks and adb pull adb push etc. and maybe you will figure it out too.
Hell I can't wait to ruin my phone now that I am armed and dangerous =)
Click to expand...
Click to collapse
Lol, i actuallly finally figured out how to extract the png's, so i am going to edit in photoshop, then replace the current images with the app ninjamorph.
*didnt work* left a huge blank space on noti. bar and when I rebooted to see if it would show, I bootlooped*
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Contempt4You said:
Well. I spent last night learning to resign edited apk files, so literally nothing on my phone is safe now.
Click to expand...
Click to collapse
Is there any way to pack the png's so that I can flash them or install as an apk?
Anyone know how I'd do this? I already have the edited png's.
Can I send any of you guys the folder with the icons and you can help me out with this?
Thanks again
It seems the easiest way to change or theme icons is to not unzip them. Just open them with 7zip and make your changes, then close it. They will stay compressed and all of the info and size will remain intact.
Once changed you will have to resign the apk or zip file.
I spent the better part of 2 hours reading up on it using these forums and google, but I do not in any way feel knowledgable enough to instruct you on the finer points. There are oodles of topics on editing apk's and signing them when you are finished.
The steps seem pretty clear:
1. download or pull apk
2. open with 7zip
3. make changes keeping sizes and file names the same
4. close
5. re-sign the apk or zip file (most likely have to delete the existing files to the original signing which will be replaced with your own)
6. push or install the zip or apk (make sure the original app is uninstalled prior to reinstalling the changed app)
There are various methods and tools. The most helpful thread I found on signing is here: http://forum.xda-developers.com/showthread.php?t=473580
I hope this covers it all and is helpful to you. I am new at it and can only tell you to backup everything and if you are unclear on any of it, then don't attempt it.
Read all the posts related to it. There is great info and plenty of feedback on known issues or mistakes others have had.

Dialer Modification

Hey guys - looking to mess around with some custom UIs. I can't figure out what files need to be edited to change the dialer buttons. Can anyone point me in the right direction?
adb pull the framework-res.apk (located in /system/framework) and check the drawable folders (located in res). you could also check the htcdialer.apk (located in /system/app)
I've tried both files and I'm having no luck.I even tried pushing the htc dialer apk and the phone apk from other roms with no luck. I don't see anything in the framework or htc framework files.if someone knows the exact files to edit I'd be thankful.
Sent from my Droid Incredible using XDA App
Its in the contacts.apk
Aha! Didn't try that one. Thanks for the tip.
Sent from my Droid Incredible using XDA App
Anyone know how to change the text color on the keys?
Sent from my Droid Incredible using XDA App
Okay, so I had no luck with the contacts.apk either... anyone have any clue what I'm doing wrong?
try using someone elses theme, and re-edit theres..
ACD168 said:
try using someone elses theme, and re-edit theres..
Click to expand...
Click to collapse
I've actually tried that too. I just can't seem to find the correct PNG files. There are some in the Phone.apk but I tried swapping those and nothing changed. I downloaded thew framework theme of Redemption Revolution Rom - I literally pulled apart every apk and then did a search for all png files. Still didn't see the dialer buttons. I applied the theme to my phone, and the dialer buttons changed, so they have to be in there somewhere!!
I know on virtuous they are in HtcDialer.apk /res/drawable-hdpi if i remember right. and the button press color was in com.htc.resources.apk id have to look on my pc to be absolutly sure
•Sent from my Incredible
Well I found the actual button graphic, it's in com.htc.resources.apk. Now i'm just trying to find out how to patch the text color.
Anyone know that part? I'm almost there!
I'm pretty sure the dialer text is controlled by an xml file in the dialer.apk - what program should I use to make edits to the xml files?
Is there any way to edit the way the Android dialer displays the numbers you dial on the phone? This is something that the iPhone does really well, where it will split the numbers up into something like (800) 555-5555 instead of showing 8005555555.
Still looking for help on this...
I am trying to change the dialer button text to have white numbers instead of black. I'm having a hell of a time decompling the apks, finding the right xml file to edit, and then getting my changes to stick when I recompile. Anyone want to take a whack at it for me? I don't even know which apk I definitely have to edit to make the change.
I uploaded both the HtcDialer.apk and the Phone.apk from my phone in a rar file below... if anyone wants to take a look I'd appreciate it.
http://www.mediafire.com/file/3p5x5pavl2aceyq/VirtuousAPKS.rar
dg32 said:
Is there any way to edit the way the Android dialer displays the numbers you dial on the phone? This is something that the iPhone does really well, where it will split the numbers up into something like (800) 555-5555 instead of showing 8005555555.
Click to expand...
Click to collapse
I've been trying to find the answer to this question for a long long time. Still no answer.
Sent from my ADR6300 using Tapatalk

change icons in side apk

Hello, im back with more questions an curiosity. Iv heard u can change Apps I cons by opening the APK an replacing the icon.png. an iv gtten a little mixed up, some said only stock icons but theoretically if u can open u can change any right?
Also is it possibly to change app layout colors? an can menu colors or ur phone e changed like when u power down ur phone can u change it to black insted of grey or the bottom of ur phone where all apps phone an the + button change it black wih green letters ect?
im tryin to get dee into modding my phone perfect to my style
DubsideWICKED said:
Hello, im back with more questions an curiosity. Iv heard u can change Apps I cons by opening the APK an replacing the icon.png. an iv gtten a little mixed up, some said only stock icons but theoretically if u can open u can change any right?
Also is it possibly to change app layout colors? an can menu colors or ur phone e changed like when u power down ur phone can u change it to black insted of grey or the bottom of ur phone where all apps phone an the + button change it black wih green letters ect?
im tryin to get dee into modding my phone perfect to my style
Click to expand...
Click to collapse
You can literally change everything about the appearance of your phone. Any apk file can be opened and modified. If you download an app from the market, but you don't like the icon, you can open the apk and replace the icon.png You can also change the color of your menus etc. It is a complicated process and you'll have to learn how to work with apks, edit 9.png files, and even work with XML files and HEX colors. I actually gave up on themeing because it ended up taking up too much time...but if you're willing to jump in and get your elbows dirty you can change anything you want about your phone's appearance, and it actually is a really rewarding experience. To get started, just search the forum for a "guide to themeing".
You can also ask some of the themers for advice by sending them a private message. That's the best way to learn, if someone is willing to teach you.
Hope that helps.
-alex
Well I thing i got changing the icons down. an when i open the xml files in a hex editor theres too meny numbers, any simpler way to change colors by chance?
Im really surprised that kno one has been able to evelope an app that just gives a list of colors an icons an what not an u just click ok, if i was developer savy anuff id tottally have an app editor in the works
Just realized somthing, to change icons, wouldnt it be smarter to just open the apk in root explorer an over write the icon, insted of moving it to ur computer an possibly making it not install back on ur phone?
nah its a lot deeper than that, because after you open and edit an APK the .apk file must then be re-signed it's like it's digital signature... or it will not install on your phone... There are a few apps out that help a lot with the theming process.. and as for .xml files i think they are encrypted so you would have to use an xml decrypter and edit it then encrypt it again and add it back into the apk and resign the file... all these topics are covered in various parts of the forums though... here's a link with lots of information that can help you along your way...
https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en
good luck!
DubsideWICKED said:
Well I thing i got changing the icons down. an when i open the xml files in a hex editor theres too meny numbers, any simpler way to change colors by chance?
Im really surprised that kno one has been able to evelope an app that just gives a list of colors an icons an what not an u just click ok, if i was developer savy anuff id tottally have an app editor in the works
Click to expand...
Click to collapse
DubsideWICKED said:
Just realized somthing, to change icons, wouldnt it be smarter to just open the apk in root explorer an over write the icon, insted of moving it to ur computer an possibly making it not install back on ur phone?
Click to expand...
Click to collapse
hackahero said:
nah its a lot deeper than that, because after you open and edit an APK the .apk file must then be re-signed it's like it's digital signature... or it will not install on your phone... There are a few apps out that help a lot with the theming process.. and as for .xml files i think they are encrypted so you would have to use an xml decrypter and edit it then encrypt it again and add it back into the apk and resign the file... all these topics are covered in various parts of the forums though... here's a link with lots of information that can help you along your way...
https://docs.google.com/Doc?docid=0AcdxIJRSH9ypZGZzc2pxNDlfMjdnazk4OHNxZA&hl=en
good luck!
Click to expand...
Click to collapse
xml files in android are not encrypted they are just compile form of xml. Its a space saver thing.
As for having a program to edit things in xml files on the fly its might be possible but since xml its soooo generic and there is really no way to make a program that would go through an xml file and change the things that represent colors and value etc... Something like this could be done for say a framework but then it would really be only for that framework or apk.
I copied the browser from system app to my sd an opened it with 7zip i didnt extract it i just moved the icon i wanted to the corect spot. an moved it back over to system app an copied over the old now browser is gone y wont it install :S
did you take out META-INF file then resign it that works for me sometimes
Lol didn't we just say it had to be re signed to replaced stuff in the apk.
Also tip fore you guys when you resign an apk you don't need to delete the meta inf folder in will replace the old one
Sent from my PC36100 using XDA App
I read in a few post that if u dont extract the file it doesnt break signing. an also herd system apps that arnt downloaded dont need signed. , so much mixed stuff ahh lol.
Well when i went to move te original apk back is didnt work eathier :S idk y or what im doing wrong.
Also i havent found any but is there a program to resign apks with out useing abd
DubsideWICKED said:
I read in a few post that if u dont extract the file it doesnt break signing. an also herd system apps that arnt downloaded dont need signed. , so much mixed stuff ahh lol.
Well when i went to move te original apk back is didnt work eathier :S idk y or what im doing wrong.
Also i havent found any but is there a program to resign apks with out useing abd
Click to expand...
Click to collapse
If you want it to install, you need to sign the .apk
There is a signing tool. Search for it. I would link it, but I am on my phone, not the computer
Sent from my FroYoed Sprint Hero
I cant figure out how to sign, i found app manager 4.9 bt im lost i signed browser moved it to sd an then back to system app an it wont install....
y wont it work? would meta morph be better to change icons
or any other ideas to make it easyier and hopefully with out useing ABD,
and a idea off what icons i want to change
calendar
call history
camcorder
camera
gmail
IM
internet
latitude
maps
market
messages
navigation
Myspace
pandora
people
phone
photos
places
root explorer
talk
DubsideWICKED said:
I cant figure out how to sign, i found app manager 4.9 bt im lost i signed browser moved it to sd an then back to system app an it wont install....
y wont it work? would meta morph be better to change icons
or any other ideas to make it easyier and hopefully with out useing ABD,
and a idea off what icons i want to change
calendar
call history
camcorder
camera
gmail
IM
internet
latitude
maps
market
messages
navigation
Myspace
pandora
people
phone
photos
places
root explorer
talk
Click to expand...
Click to collapse
Go here and use that... Thats about as easy as I can make it.
I got the apk signed what am i doing wrong, i moved the new signed apk back to my sd card an moved it back to system/app an it still dont install. this is getting very frusterating.
Is is because its a stock system app that i didnt download or what?
DubsideWICKED said:
I got the apk signed what am i doing wrong, i moved the new signed apk back to my sd card an moved it back to system/app an it still dont install. this is getting very frusterating.
Is is because its a stock system app that i didnt download or what?
Click to expand...
Click to collapse
maybe rename it back to its original name. dont move it from the sdcard to the system/app folder just use astro and open it from the sdcard then it will install.
still wouldnt work but adb did witch it took me hours to figure out how to set up adb.
so is there a good adb cmd guide on here

Sense 4.0 all app background image

Hi there!
One of the thing that I'm struggling with HTC is the fact that from the moment the have moved to android they have always put the black background on the all apps menu which isn't so beautiful. Is there anyway here who know if it could be possible to have, at least, the same background image of the home for the all apps menu?
P.S. And by the way I don't get why is not possible to customize the background iamge of the all apps menu, come on this was possible on windows mobile!!!!
light_n_roses said:
Hi there!
One of the thing that I'm struggling with HTC is the fact that from the moment the have moved to android they have always put the black background on the all apps menu which isn't so beautiful. Is there anyway here who know if it could be possible to have, at least, the same background image of the home for the all apps menu?
P.S. And by the way I don't get why is not possible to customize the background iamge of the all apps menu, come on this was possible on windows mobile!!!!
Click to expand...
Click to collapse
i havent had a chance to look into sense 4.0 yet but in sense 3.0 all apps background was a color reference in the rosie apk > res > layout> all apps view .xml
you can edit the code to reference a wallpaper of your own
i was having trouble decompiling sense 4 files so didnt really look into it
thesparky007 said:
i havent had a chance to look into sense 4.0 yet but in sense 3.0 all apps background was a color reference in the rosie apk > res > layout> all apps view .xml
you can edit the code to reference a wallpaper of your own
i was having trouble decompiling sense 4 files so didnt really look into it
Click to expand...
Click to collapse
sp do you think that I can also put a different background image from the one on the home screen ? It would be awsome!
light_n_roses said:
sp do you think that I can also put a different background image from the one on the home screen ? It would be awsome!
Click to expand...
Click to collapse
yea you sure can, easiest is to make the background transparent so the home screen wallpaper is visible but you can surely make it reference an image
thesparky007 said:
yea you sure can, easiest is to make the background transparent so the home screen wallpaper is visible but you can surely make it reference an image
Click to expand...
Click to collapse
actually I have tried to open that file from a custom rom with sense 3.5, I have extracted the file with 7zip but it was not readable with notepadd...
light_n_roses said:
actually I have tried to open that file from a custom rom with sense 3.5, I have extracted the file with 7zip but it was not readable with notepadd...
Click to expand...
Click to collapse
Well of course, you extracted it with 7zip. Grab apktool or something else that can unpack APKs properly and decrypt the XMLs etc., use it to extract the APK and then you should be able to edit it easily enough.
EDIT: You'll also need to pull com.htc.resources.apk from /system/framework and install it with the command
Code:
apktool if com.htc.resources.apk
to properly decrypt the APK
EDIT: Although I can't find the XML referenced above in the Rosie.apk from my Sense 3.5 device...(HTC Explorer).
EDIT: In res\values\colors.xml I found a reference for a colour "all_item_background" which is #ff000000 (i.e. black), but it only appears to be used for as the colour for some text. Despite not really wanting to have a transparent background here, it's bugging me.
Is it possible to have this background on all aps for galaxy y s5360
Sent from my GT-S5360 using xda premium
stokaa said:
Is it possible to have this background on all aps for galaxy y s5360
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Galaxy Y is a Samsung phone, so it doesn't have Sense. It has TouchWiz. So the launcher is different to the Sense one. It is almost certainly possible to do a similar thing, but it won't be done exactly the same.
I believe the TouchWiz launcher it called twlauncher.apk or something like that. Pull that file off your phone and use apktool to extract it, look in the XMLs in res\layout and try to find the background colour. It'll probably be #ff000000. You could try using something like grep to search for that in the folder to try and narrow down the possibilities.
Just a few thoughts that might possibly help.
SifJar said:
Well of course, you extracted it with 7zip. Grab apktool or something else that can unpack APKs properly and decrypt the XMLs etc., use it to extract the APK and then you should be able to edit it easily enough.
EDIT: You'll also need to pull com.htc.resources.apk from /system/framework and install it with the command
Code:
apktool if com.htc.resources.apk
to properly decrypt the APK
EDIT: Although I can't find the XML referenced above in the Rosie.apk from my Sense 3.5 device...(HTC Explorer).
EDIT: In res\values\colors.xml I found a reference for a colour "all_item_background" which is #ff000000 (i.e. black), but it only appears to be used for as the colour for some text. Despite not really wanting to have a transparent background here, it's bugging me.
Click to expand...
Click to collapse
actually it would be nice to have the chance to put also a different image on background not just have the black background turn transparent so you can see the same of the home.
light_n_roses said:
actually it would be nice to have the chance to put also a different image on background not just have the black background turn transparent so you can see the same of the home.
Click to expand...
Click to collapse
Well that is easily done once the right value is found in the right XML. It's find the value that is the tricky part.
yea I see...have you made any progress with that?
light_n_roses said:
yea I see...have you made any progress with that?
Click to expand...
Click to collapse
Nope, I gave up because I couldn't find it in the Rosie.apk from my device.

need theamer who wants to help

hi,
i want to change three icons on my galaxy note.
how to do that? i already looked in some themes but i dont find the right icon.
maybe someone can help me?
Right click/edit and draw your preferred icons
Cheers;:_
God bless you
black-DraGon82 said:
hi,
i want to change three icons on my galaxy note.
how to do that? i already looked in some themes but i dont find the right icon.
maybe someone can help me?
Click to expand...
Click to collapse
So you want to replace the icons with new icons. Do u have the icons u want? And if so you need to pull the the three apks from your phone and open them and find the icons and change them with what you want. Then put them back in your systems/app folder and restart your phone if that's what u are talking about anyways
Sent from my GT-N7000 using XDA Premium HD app
If you just want to change the icons, Find some you like and use the app (free) Desktop Visualiser
its as simple as that.
If you want to theme the whole app, Use 7zip to open the apk, Look inside the /res /drawable and modify all the icons and pngs with photoshop or other software.
idk what you want to change , but in every app + system app , if you open it with winrar or 7zip you will find folder called (RES) inside the app in this folder you will find three folders that contain the icons that the app display , from there you can change the icons , make sure it has the same dimensions.
PS: if its not system app then you have to ask the dev permission .
hey,
thx for the help, but i dont find it cause there more apk´s with that icon...
i want to change the phone icon and the contact icon on homescreen... the pic that i post previewsly... the red circles...
i have the icons but dont know in what apk i should place them.
black-DraGon82 said:
hey,
thx for the help, but i dont find it cause there more apk´s with that icon...
i want to change the phone icon and the contact icon on homescreen... the pic that i post previewsly... the red circles...
i have the icons but dont know in what apk i should place them.
Click to expand...
Click to collapse
The phone and contacts images are both in the contacts.apk and the messaging is in the mms.apk. From memory I think they are in the drawable-xhdpi and are labeled something along the lines of ic launcher phone, contacts mms.
Sent from my A510 using XDA Premium HD app
thx bro, but if i have that two or tree apk´s, how to make them as a flashable cwm zip image?
black-DraGon82 said:
thx bro, but if i have that two or tree apk´s, how to make them as a flashable cwm zip image?
Click to expand...
Click to collapse
Use adb to push them back to the phone.
If you don't know, learn. Don't always rely on clockwork.

Categories

Resources