Signing your apk/application for release (keytool,jarsigner)

Tutorials with advanced 'difficulty' and more Lines of Code.

google-developer-conference

Postby apple2183 » Mon Apr 13, 2009 12:14 pm

apple2183
Junior Developer
Junior Developer
 
Posts: 23
Joined: Fri Apr 10, 2009 2:07 pm

Top

Postby zpk1234 » Mon Jun 29, 2009 6:49 am

How can I get unsigned apk without eclipse? can I use the shell commond to export the unsigned apk file?
zpk1234
Junior Developer
Junior Developer
 
Posts: 22
Joined: Sat Jun 27, 2009 1:17 pm

Latest -- Signing android apps

Postby HaKr » Wed Nov 11, 2009 12:30 pm

Actually refered it for signing my app and so i followed it and did it successfully.Then i realised that there is a simplest way provided by Eclipse IDE.

All you have to do is right click on your project then "Android Tools>Export Signed Application".
1. Now a wizrd opens and it asks the project name .its present by default.
2.click next.It will have two options create from existing keystore or Create a new one
3.select create a new one. now select the location where you want to save the keystore.
4. select your password and retype password again.

Image

5.Now Fill the detais .A screenshot is provided to make it easy.
6.Now give path to where you want your signed application to be placed.
7.click finish and there is your signed android app.


If this was already posted .then my mistake. anyways if you didnt get anything kidly post.

Regards
HaKr
User avatar
HaKr
Freshman
Freshman
 
Posts: 2
Joined: Tue Nov 10, 2009 10:09 pm

Postby thetuxracer » Thu Jan 07, 2010 3:21 am

@HAKR yes, i did the same. I found it pretty late, after searchin and digging man pages for keytools and jarsigner..
anyway, seems to work. now for deployment ^^
thetuxracer
Developer
Developer
 
Posts: 26
Joined: Mon Jan 04, 2010 7:59 am
Location: Nashik, MH, India

Postby thetuxracer » Thu Jan 07, 2010 10:28 am

I also forgot to ask: Now that ive signed the application, from where do i find the certificate, so that i can obtain a Maps API key?
thetuxracer
Developer
Developer
 
Posts: 26
Joined: Mon Jan 04, 2010 7:59 am
Location: Nashik, MH, India

Postby enavarro » Thu Feb 11, 2010 9:21 pm

MrSnowflake wrote:
avolovoy wrote:Something tells we're up to see some interesting applications.
You haven't seen many questions here yet, I guess... :D


True that. Well I have made signing solutions for JAR signing and using Verisign-issued certs. I basically make the CSR using keytool, then send it to Verisign so that they can issue the cert and then import that certificate into the keystore, using keytool and the key alias. If you fail to include the Intermmediate CA or just plain do not have a certificate associated to your key.

This can be done using keytool -genkeypair switch, but most people forget to add the Distinguished Name lines. Example:
Code: Select all
keytool -genkey -alias Test -keyalg RSA -keysize 2048 -sigalg SHA1withRSA -keystore teststore.mks -dname "CN=Android Corporation,OU=Android,O=Anddev Org,L=Seattle,S=Washington,C=US"


And you can verify and extract the certificate later on. Sample command:

Code: Select all
keytool -list -keystore teststore.mks -storepass password -v
-Git R' Done
enavarro
Once Poster
Once Poster
 
Posts: 1
Joined: Thu Feb 11, 2010 8:20 pm

Top

Postby Nathan » Sat Feb 20, 2010 8:00 pm

Translation:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. D: \ workspace \ keytool> D: \ WINDOWS \ dev \ Java \ jdk1.6.0_07 \ bin \ keytool-genkey-alias-anddev.keystore keyalg RSA-validity 20000-keystore keys / anddev.keystore
  3.  
  4. Enter the keystore password: YOURSECRETPASSPHRASE
  5.  
  6. Enter the password again: YOURSECRETPASSPHRASE
  7.  
  8. What is your first and last name?
  9.  
  10. [Unknown]: www.anddev.org
  11.  
  12. What is the name of your organizational unit?
  13.  
  14. [Unknown]: Android Application Development
  15.  
  16. What is the name of your organization?
  17.  
  18. [Unknown]: anddev.org
  19.  
  20. What is the name of your town or city?
  21.  
  22. [Unknown]: Schriesheim
  23.  
  24. What is the name of your state or your province?
  25.  
  26. [Unknown]: Baden-Wuerttemberg
  27.  
  28. What is the country code (two letters) f ³ r this unit?
  29.  
  30. [Unknown]: EN
  31.  
  32. Is CN = www.anddev.org, OU = Android Application Development, O = anddev.org, L = Shri
  33.  
  34. esheim, ST = Baden-Wuerttemberg, C = U.S. correct?
  35.  
  36. [No]: yes
  37.  
  38.  
  39.  
  40. F Enter the password an r ³ <anddev.keystore>.
  41.  
  42. (ENTER if your password the same as ³ f) r keystore: <ENTER>
Parsed in 0.034 seconds, using GeSHi 1.0.8.4
Nathan
Freshman
Freshman
 
Posts: 3
Joined: Sat Feb 20, 2010 3:53 am

Re: Signing your apk/application for release (keytool,jarsig

Postby inzhangbarbor » Fri Jul 02, 2010 3:05 pm

Thanks for this! It worked really well. I am just finishing up my first application that this is really useful.
inzhangbarbor
Freshman
Freshman
 
Posts: 4
Joined: Fri Jul 02, 2010 3:01 pm

Re: Signing your apk/application for release (keytool,jarsig

Postby Jenny.ross » Fri Oct 29, 2010 11:18 pm

hi all,
please any one help me how to know the free space of my storage card or my internal card.how can I write its code.

greetings,
jenny
Jenny.ross
Freshman
Freshman
 
Posts: 8
Joined: Fri Oct 29, 2010 10:07 pm

Re: Signing your apk/application for release (keytool,jarsig

Postby chinna » Mon Mar 05, 2012 8:08 am

Where is AndOpenStreetMap.apk located, in which folder?
chinna
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Mar 05, 2012 7:57 am

Re:

Postby NemoDo » Fri Jun 15, 2012 10:03 am

soniya wrote:
darolla wrote:I think your problem is that u dont use the "export" function inside eclipse.

I got the same problems if I tried to use the .apk inside the bin folder ;)

greetings,
darolla

How to use "export" function????


In Eclipse -> Right Click Project -> Android Tools -> Export Signed Application Packaged...
NemoDo
Freshman
Freshman
 
Posts: 4
Joined: Thu Jun 14, 2012 5:26 am

Re: MYSQL tutorial

Postby dopedroid » Sun Aug 12, 2012 1:43 pm

Hi Buddies,

Well jst wanna say now we have a handy reference of SQL in android market named SQL guru for free .......go through tweaks in the tips and walkthroughs given.....its pretty cool.

https://play.google.com/store/apps/deta ... .mysqlguru
dopedroid
Freshman
Freshman
 
Posts: 4
Joined: Sun Aug 12, 2012 10:47 am

Re: Signing your apk/application for release (keytool,jarsig

Postby Kirillov Artem » Wed Sep 26, 2012 8:47 am

Signing the application step by step written in this article
Kirillov Artem
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Sep 21, 2012 1:57 pm

Re: Signing your apk/application for release (keytool,jarsig

Postby wakawaka » Fri Jan 25, 2013 9:25 am

I will appreciate if you develop build script for same and share with this community.

Batch file which will sign given unsigned .apk file and produce output as a signed .apk file.
Android Development Tutorials and Code Snippets: http://forum.gssdaily.com/
wakawaka
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Tue Jan 11, 2011 1:51 pm

Re: Signing your apk/application for release (keytool,jarsig

Postby SwarmConnect » Tue Feb 26, 2013 6:26 pm

Kirillov Artem wrote:Signing the application step by step written in this article


Nice write up. Thanks for sharing it with the community :)
SwarmConnect - Easily add leaderboards, achievements, monetization, and social features to mobile games and apps.
User avatar
SwarmConnect
Junior Developer
Junior Developer
 
Posts: 19
Joined: Tue Dec 13, 2011 3:54 am
Location: Florida, USA

Top
PreviousNext

Return to Advanced Tutorials

Who is online

Users browsing this forum: No registered users and 6 guests