[Q] is there a tool to package and sign .apk's? - Desire HD Q&A, Help & Troubleshooting

as the title says, im trying to edit one of the htc sence skin's, i pulled the apk and extracted it, changed some of the elements (clock) re-zipped it and changed the extention from .zip to .apk, i tried to install it but i just get the "application not installed" error. i assume it's because its not signed, so is there a tool that can auto sign and package the .apk? either from the files or from a .zip format
regards

Yes the awesome apk manager. Google "apk manager xda" should take you right to the thread. Can't be bothered finding it right now as I'm mobile.
-----
Someone Swyped my idea.

dr.m0x said:
Yes the awesome apk manager. Google "apk manager xda" should take you right to the thread. Can't be bothered finding it right now as I'm mobile.
-----
Someone Swyped my idea.
Click to expand...
Click to collapse
thanks, but in the end i gave up doing it the clever way, and just bought ninjamorph and swapped out the .png's lol

Related

I Created Auto-Sign app for update.zip and Launcher.apk! :Possibly abandoned!

**UPDATE** This project maybe abandoned, after using Stericson's method i found signing to be much easier. You can find his method here. There has been 26 people who downloaded my tool and if those users want me to continue on this project, i will. but i recommend giving Stericson's method a try. You will still need to make sure both Jave JRE and Java JDK are installed with Stericson's Method and also with his script make sure to type in yes or no, not y or n =).
I would appreciate if anyone using my tool would post here if they want me to continue with this project or not.
Right now it will only sign update.zip,framework-res.apk and Launcher.apk. I am working on adding all of the other apks to this app.
This app was built in Visual Studio 2008, you may need .Net3.5 Framework installed to run it.
To use this app just extract it to a folder.
It includes:
update
-update\app
-update\framework
Auto-Sign.exe
signapk.jar
testkey.pk8
testkey.x509.pem
This app works the same as Dave Da illest 1's autosign.bat. If you have signed themes with dave's method you will be able to use this.
You will need to make sure that Java is installed for this to work, make sure to install JRE and JDK here.
Once you extract the files into a folder, copy a theme's update.zip into the root folder. Extract the the files you will be editing, edit your files, drag them back into the apk use this program to sign the apk, drag the apk back into update.zip and use this program to sign the update.zip.
When signing Launcher.apk or any other app's apk the program will look in:
"whatever folder you extracted to"\update\app.
Please leave me any comments or questions i will try to respond to them. If you have any other ideas or plain think this app sucks and i should delete immediately let me know =)
I will add the updates and some screen shots in the next few days.
::UPDATE:: 01/17/09
I made a few changes to the app, I also added the folders that the program is expecting to be there. Now when you load the app it tells you if the files are found or not. Also I added framework-res.apk to the list to be signed.
I am working on a part of the app that will allow it to check if the original file was signed or not. This way it will not create a _signed.apk or zip.
::UPDATE::: 01/18/09
I have added some labels to the GUI that will tell you if the files are found or not. I changed around the buttons and gave a little bit better description under the read me button. I got rid of the message boxes when you started the app. Comment here and let me know what you think.
Sucks.
Just kiddin works fine thank ya. =D
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Stericson said:
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Click to expand...
Click to collapse
Hey Stericson, I changed the code in that app so it doesn't write the new signed file. But i noticed the original file didnt change either. Should signing the file change the modified time when you look at the properties? if not there is there another confirmation, to tell the file has been signed?
yes it should show a modified time.
stericson
Does this work on all apks or just Launcher?
broopa said:
Does this work on all apks or just Launcher?
Click to expand...
Click to collapse
I am running tests on update.zip, Launcher.apk and framework-res.apk. In the next few days i will release a full blown app that will sign all of the apks that people will be editing.
Thanks. I am looking forward to that release. I tried to use the app to resign Launcher.apk and I can't find the Launcher_signed in the app folder.
broopa said:
Thanks. I am looking forward to that release. I tried to use the app to resign Launcher.apk and I can't find the Launcher_signed in the app folder.
Click to expand...
Click to collapse
Give this new version a try and let know how you like it.
Stericson said:
I just think you guys are making more work for yourselves by using this version of the signing tool that still creates a double. Why not use the version that overwrites the file with the signed apk, so you will do less work?
Stericson
Click to expand...
Click to collapse
The way the program is now it is a little more work, but a lot of people don't know anything about system variables and eventually i would like to make the program import the files directly into the correct apks and then push them into the update.zip after they are signed and then sign the update.zip itself.
I am still not getting any new files or folders that say ...._signed. I am now using v.65.
broopa said:
I am still not getting any new files or folders that say ...._signed. I am now using v.65.
Click to expand...
Click to collapse
Do you have JRE and JDK installed? If not then go here to download and install the first 2 files.
ahhh i can't wait to use this lol
why do we have to sign these ?
namsir said:
why do we have to sign these ?
Click to expand...
Click to collapse
We have to sign the files because Google setup Android so not just anyone could install anything they wanted. They wanted to have control of what was installed. Which was flubbed by JesusFreke and the other XDA hackers.
Short answer...it is a security measure set by Google.
more proof the universe is against me.
so... i tried using koush's steps to install auto-rotate browser. i first had to download the android sdk, however i cannot get it to install correctly and have never seen the tools folder. then i find out that there is a way that is easier (for me). downloaded the auto-sign app. then, found out i had to download 2 java apps, so i tried. the installation was unsuccessful. this is odd because with all the steps it took to get root, it was actually quite easy. but auto-rotate browser just does not want to be on my G1.
ok, i tried downloading the java apps again, this time, instead of downloading with the sun download manager, i double clicked on the file name to download with my firefox browser and it worked just fine. fyi.
**UPDATE** This project maybe abandoned, after using Stericson's method i found signing to be much easier. You can find his method here. There has been 26 people who downloaded my tool and if those users want me to continue on this project, i will. but i recommend giving Stericson's method a try. You will still need to make sure both Jave JRE and Java JDK are installed with Stericson's Method and also with his script make sure to type in yes or no, not y or n =).
I would appreciate if anyone using my tool would post here if they want me to continue with this project or not.
BTW.. this auto-sign tool was the only way I could get signing to work.. so THANK YOU and I hope you will continue this project.
I built this tool before i had a full understanding about signing. there is no need to sign the other apks...just the update.zip. It signs all the apks below it. so this tool is fully functional. I just didnt know it at the time heh =)
Glad it helped you out.
vista 64 bit?
hello, i was wandering if this would work with vista 64 bit.. for some odd reason on my old computer i was able to sign the files no problem but now with my new computer after "signing" it gets stuck on the animated screen... Is anyone using this and running Vista 64bit?? Have a good day..

resign applications

Is there a way that i can go into the application file and change the icon.. I have created a few but i am not sure on how to resign the package.. I have the autosign from JF but i it only resigns the update.zip file... please let me know if you all know of anyway... thanx in advance..
the autosign provided in my tutorial will sign all of them. go read the tutorial on how to use it and to download it.
Stericson
Can I sign an apk & install it on my phone right away or does it have to be in an update.zip for the signing tool to work? I have an app that I just wanna change the icon for...
pull it to your comp. change the icon. sign it. push it back. and ya done never tried installing an apk after editing it.
Is there a Mac OS X app like autosign? I believe what I saw in your tutorial was a bath file and an .EXE.
I don't think so but I could be wrong.
derfolo said:
Is there a Mac OS X app like autosign? I believe what I saw in your tutorial was a bath file and an .EXE.
Click to expand...
Click to collapse
i could be wrong as well but i believe the signing tool JF made was done in java so it should work on macs.
this thread maybe of some help: http://forum.xda-developers.com/showthread.php?p=3271434#post3271434
I've edited images in a "drawable" file folder and wanted to put it back to my sd card but it won't read the file. Should I put it in a zip file and put it in my sd card or does it have to be convert back to apk file? if so, how would I go about doing this?
derfolo said:
Is there a Mac OS X app like autosign? I believe what I saw in your tutorial was a bath file and an .EXE.
Click to expand...
Click to collapse
just drop signapk.jar with the certificate and key into terminal and it will sign it for you.
i was looking for this info too! thanks!
You could also try the bettercut application if all you were trying to do was change an icon
Sent from my HTC Dream using XDA App

[HELP] Creating a wallpaper.apk

Alright, so, I've made a large number of themed HD wallpapers I'd like package up and put on the market.
Problem is, I have no idea how to lol.
Any help at all on how to do this is greatly appreciated!
Sent from my Incredible using XDA App
Anybody?
Sent from my Incredible using XDA App
You should probably apply to be a Google App Inventor.
Wow what s great response
I am also looking to put together an .APK, so that I can keep my wall paper together and not just in a file on my SD.
I was looking at some of the APK's that are in cooked versions (CM6.1) and the file looks like a renamed .ZIP
I tried to add images to an existing file, then create a new .zip, then change the name to .apk.
When I tried to install, I got an error that the installer could not parse the file.
I don't even know what that means.
Good luck,
CharlesG70 said:
I am also looking to put together an .APK, so that I can keep my wall paper together and not just in a file on my SD.
I was looking at some of the APK's that are in cooked versions (CM6.1) and the file looks like a renamed .ZIP
I tried to add images to an existing file, then create a new .zip, then change the name to .apk.
When I tried to install, I got an error that the installer could not parse the file.
I don't even know what that means.
Good luck,
Click to expand...
Click to collapse
Use 7zip, it's the business when it comes to that. Let's say I am looking to replace icons in framework-res.apk. I would just right click and say Open Archive, browse to the res\drawable-hdpi folder where the icons are, and just drag the icons in there.
As long as what you are replacing has the same name as existing files, you shouldn't have an issue. If you are trying to put something in that doesn't have that filename, it won't work. You don't have to worry about resigning the apk or change it to a zip to unzip it.

[Q] Changing Icon in apk file

Hey guys,
So I'm trying to change some of my icons on my homescreen and I can't seem to locate the icon.png files. I have downloaded WinRaR and open the apk file with that. I navigate to filename.apk/res/drawable and cannot find the icon.png file. I navigate to filename.apk/res/drawable-hdpi and cannot find the icon.png file that I would like to change... ?
Am I looking in the wrong place to change the icon? Any help?
Thaks.
It's going to be within the apk itself.
Yea, I found the icon.png and changed it to the icon I wanted. I then compressed the files and then resigned the apk. Then I put it back on my phone and try to install it. When I click on install it it says installing and then prompts me "Application not installed"..
It doesn't give me a reason as to why it couldn't install it, ideas??
EDIT: I had to uninstall the other application for it to work. For some reason it wouldn't let me replace the existing app.
Thanks!
I use 7zip to swap icons, I don't resign it. Shouldn't have to if you're just replacing png files.
Sent from my HTC Incredible using XDA App
RMarkwald said:
I use 7zip to swap icons, I don't resign it. Shouldn't have to if you're just replacing png files.
Sent from my HTC Incredible using XDA App
Click to expand...
Click to collapse
I don't have a computer at my house running windows, and couldn't find 7zip for mac. I downloaded an application called 7zX, but it didn't work.
I see, my girl friend has a mac too, and that didn't work either when I tried it.
Sent from my HTC Incredible using XDA App
dclay89 said:
I don't have a computer at my house running windows, and couldn't find 7zip for mac. I downloaded an application called 7zX, but it didn't work.
Click to expand...
Click to collapse
Use ninja morph. Its free and you can do it on your phone.
Sent from my sexy assistant. (HTC Incredible)
synisterwolf said:
Use ninja morph. Its free and you can do it on your phone.
Sent from my sexy assistant. (HTC Incredible)
Click to expand...
Click to collapse
Ninja morph is awesome.. Only problem is after I change the icon.png and uninstall the original app, I try to install the new app it prompts me saying "application not installed"
What do you do after you replace the icon.png and finish the project?
dclay89 said:
Ninja morph is awesome.. Only problem is after I change the icon.png and uninstall the original app, I try to install the new app it prompts me saying "application not installed"
What do you do after you replace the icon.png and finish the project?
Click to expand...
Click to collapse
Just restart the phone. No need to install.
Are you doing system apk or downloaded apps
Sent from my sexy assistant. (HTC Incredible)
synisterwolf said:
Just restart the phone. No need to install.
Are you doing system apk or downloaded apps
Sent from my sexy assistant. (HTC Incredible)
Click to expand...
Click to collapse
Downloaded apps..
For instance I'm trying to change the stock icon for opera mobile and replace it with the attached image. I open the com.opera.android.apk in ninja morph, replace the stock icon.png with the one I want, and finish the project.. I restart my phone and the application icon is white and when I click it, it says "Application is not installed on your phone".. Can you only modify system apk's or am I missing something?
I have had this same problem with ninja morph. I tried changing png's on handcent finish project and it will work but when I reboot my phone app will not work. I can find the apk file with root explorer but it does not work. Any suggestions? I have never had that problem with other apps or framework. Would appreciate the help.
Sent from my ADR6300 using XDA App
dclay89 said:
Downloaded apps..
For instance I'm trying to change the stock icon for opera mobile and replace it with the attached image. I open the com.opera.android.apk in ninja morph, replace the stock icon.png with the one I want, and finish the project.. I restart my phone and the application icon is white and when I click it, it says "Application is not installed on your phone".. Can you only modify system apk's or am I missing something?
Click to expand...
Click to collapse
Ill do it for you. Hold up
edit:
Your png is way to big for the app. 100px the max is 48px for the icon.
anyways here it is. please do a nandroid and flash and report back.
if the app gets updated you will need to do it again. i can try to make a metamorph theme so you can just run it every time it gets updated.
http://db.tt/1mOVPnc
Sent from my sexy assistant. (HTC Incredible)
fundio said:
I have had this same problem with ninja morph. I tried changing png's on handcent finish project and it will work but when I reboot my phone app will not work. I can find the apk file with root explorer but it does not work. Any suggestions? I have never had that problem with other apps or framework. Would appreciate the help.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I have had this problem with market apps and changing png. Only system apps work for me so I don't try them anymore
Sent from my sexy assistant. (HTC Incredible)
synisterwolf said:
Ill do it for you. Hold up
edit:
Your png is way to big for the app. 100px the max is 48px for the icon.
anyways here it is. please do a nandroid and flash and report back.
if the app gets updated you will need to do it again. i can try to make a metamorph theme so you can just run it every time it gets updated.
http://db.tt/1mOVPnc
Sent from my sexy assistant. (HTC Incredible)
Click to expand...
Click to collapse
Thanks man!
Did you resize the png with ninja morph or did you use photoshop? I would like to learn how to do it so I could do it for the rest of the icons I would like to change and I'm sure my icons are all too big.
dclay89 said:
Thanks man!
Did you resize the png with ninja morph or did you use photoshop? I would like to learn how to do it so I could do it for the rest of the icons I would like to change and I'm sure my icons are all too big.
Click to expand...
Click to collapse
I used gimp. Its a free photo shop. Did it work?
Sent from my sexy assistant. (HTC Incredible)
7zip is the key. Might want to ask around and see if there is anything like it for mac. With 7zip you can swap out png's without hurting the apk. 7zip will replace a png in an archive without un compressing it.
Sent from my sexy assistant. (HTC Incredible)
synisterwolf said:
I used gimp. Its a free photo shop. Did it work?
Sent from my sexy assistant. (HTC Incredible)
Click to expand...
Click to collapse
Well I thought it was going to, but I get the same problem..
I tried flashing it through recovery, no luck..
I put the actual apk on my sd card and tried to install it and I get the same message as always. I will attach the screen that I get.
sorry it did not work . I never had luck with apps from the market.
Sent from my sexy assistant. (HTC Incredible)
you can go this route
http://forum.xda-developers.com/showpost.php?p=9016579&postcount=1498
Well here's an update:
-I resized the Pandora icon that I want to 48x48 and named it "icon.png"
-Opened ninja morph and navigated to data/app/com.pandora.apk
-Navigated to res/drawable and clicked on icon.png
-Found the "icon.png" that I wanted to replace it with and finished the project
-I then rebooted my phone and the Pandora icon is not what shows up
-I click Pandora and it says "Application is not installed on your phone."
Am I missing a step/steps?
I will attach my homescreen and show you what the Pandora icon looks like after I do a restart and I'll also attach the icon.png that I'm trying to use.
dclay89 said:
Well here's an update:
-I resized the Pandora icon that I want to 48x48 and named it "icon.png"
-Opened ninja morph and navigated to data/app/com.pandora.apk
-Navigated to res/drawable and clicked on icon.png
-Found the "icon.png" that I wanted to replace it with and finished the project
-I then rebooted my phone and the Pandora icon is not what shows up
-I click Pandora and it says "Application is not installed on your phone."
Am I missing a step/steps?
I will attach my homescreen and show you what the Pandora icon looks like after I do a restart and I'll also attach the icon.png that I'm trying to use.
Click to expand...
Click to collapse
No it should work. If you do something like framework it sticks but with apps downloaded it never stays. Try my last post. Its easy and you don't have to do anything if the app updates.
Sent from my sexy assistant. (HTC Incredible)

Changing USER APPS ICONS! HELP

Can any experts help me with my little problem on changing icons on user applications, not the system apps icons because i was able to do that manually..
I had successfully changed all the icons of installed user applications on my SGY.
What i did was open it with WinRar and go to res / drawable ldpi (36x36) or mdpi (48x48) or hdpi (72x72) folder & replaced each icons there with proper file name and size..
After i finished it, i copied all modified apps to sd card and tried to install it one by one, but it says "applications not installed"..
And now i wonder what's wrong with what i did? I was able to replace the icons in system apps manually using the method which i used with this one but this one fails!
Any suggestions or instructions?
Any help would be much appreciated! Thank you!!!
After Editing You Have To Sign The App And Then Install It..
Try Zipsigner app... Might help...
Sent from my HTC Sensation 4g with Beats Audio
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Silvane said:
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
what is the tool name???
Silvane said:
I've tried that method before too, when I was modding widgets, and it just doesn't work. What worked for me though was same method, but had it signed again with this little tool I found here in xda. I'll link you later when I get on desktop.
Sent from my GT-S5360 using xda premium
Click to expand...
Click to collapse
Yeah, i totally forgot that there was a signing thing when modifying apks..
And Sir, can you please give me the link of that "little tool" you're talking about when you get back in your PC? Thanks so much!
Thank you to all who responded! I appreciate you all! Cheers!
I couldn't find the thread I found it from anymore so I can't link the source. But I attached the sign tool which I still have.
Basically you get the apk right. Rename it to zip, extract, delete META-INF folder and then replace whatever images you wanted. Zip it back up, rename back to apk.
To sign, extract the zip included here to a folder. Copy paste the modified apk to the root directory of the sign tool. Make sure only one apk file is in the folder. Run sign.bat and press any button when prompted.
If it signed successfully just install the apk, making sure you have the original one uninstalled.
On a side note, if you want to update the app to a newer version through the market, it will not work. You will have to uninstall the modded one, install from the market and then do the process above again if you still want to modify it.
There are other signing tools too, ones that could sign multiple apk's simultaneously but for some reason they've never worked for me. But you're free to try. Google for 'em.
I have tried this method manytimes
and it works everytime
are you replacingonly the icon in the app apk or any other files to
you have to sign the apk after modding
use the tool given by silvane
if the 7zip method dont work for you
you can use apktool to decompile and recompile the apk and then sign it
you are ready to go
Thanks @Silvane and @deadlylocker as well as others for helping me..
@Silvane: I already downloaded that "autosign" app this morning but i didn't know (phil. time) that it is necessary to delete the meta-inf folder while modding apks before i saw your post so i appreciate your effort of giving instructions! Thanks so much!
No problem.
Sent from my GT-S5360 using xda premium

Categories

Resources