Android apk program signature

Source: Internet
Author: User

Keytool and Jarsigner in the Java development environment. Note that the environment path is configured. The following prompt is displayed after you enter the command:

C: Documents and settingsf10000040 Desktop blog post> Keytool
Keytool usage:
-Certreq [-v] [-protected]
[-Alias <? E name>] [-sigalg <? Chapter algorithm>]
[-File <? {?? Chapter requirements? N case>] [-keypass <master password?>]
[-Keystore <Gold ?? Why ?? Gt;] [-storepass <? Why? Too many a>]
[-Storetype <? Why? Qu? Type>] [-providername <NAME?>]
[-Providerclass <PROVIDER ?? E name?> [-Providerarg <reference ?? Gt;]...
[-Providerpath <path? ?? Gt;]
......
C: Documents and settingsf10000040 Desktop blog post> Jarsigner
Usage: jarsigner [options] jar-file alias
Jarsigner-verify [options] jar-file
[-Keystore <url>] keystore location
[-Storepass <password>] password for keystore integrity
[-Storetype <type>] keystore type
[-Keypass <password>] password for private key (if different)
[-Sigfile <file>] name of. SF/. DSA file
......
[Create a signature file]
Let's create a name named carey. keystore (generated and saved in the current operation directory), keystore signature file with the password (not displayed during password input, next we will use it to sign our own apk.
C: Documents and settingsf10000040 Desktop blog post> keytool-genkey-alias carey. k
Ystore-keyalg RSA-validity 20000-keystore carey. keystore
? What is the keystore password? : <Password>
Again? New password? : <Password>
Your name? Surname? Critical? Br/> [Unknown]: carey zhou
Your? ? Phantom? Q? Critical? Br/> [Unknown]: foxconn
Your ?? Name ?? Critical? Br/> [Unknown]: it
Your city or location? ^ Name ?? Critical? Br/> [Unknown]: shenzhen
What is the name of your state and province ?? Critical? Br/> [Unknown]: guangdong
?? Broken acre ??? A? Why? Br/> [Unknown]: cn
CN = carey zhou, OU = foxconn, O = it, L = shenzhen, ST = guangdong, C = cn ?? Yun? Br/> [no]: Y
? What is the primary key of <carey. keystore>?
(RETURN if it is password-secured with keystore? Same): <password>
Again? New password? : <Password>
[Signature process]
Token)
C: Documents and settingsf10000040 Desktop blog post> jarsigner-verbose-keystore carey. keystore-signedjar HomeIP2-signed.apk HomeIP2-unsigned.apk carey. keystore
Enter Passphrase for keystore: <password>
Adding: META-INF/MANIFEST. MF
Adding: META-INF/CAREY_KE.SF
Adding: META-INF/CAREY_KE.RSA
Signing: res/anim/fade_in.xml
Signing: res/anim/fade_out.xml
Signing: res/anim/fadeout. xml
Signing: res/anim/grid_entry.xml
Signing: res/anim/grid_exit.xml
Signing: res/anim/hide_applications.xml
Signing: res/anim/noneshow. xml
Signing: res/anim/show. xml
Signing: res/anim/show_applications.xml
Signing: res/color/bright_text_dark_focused.xml
Signing: res/color/listtextcolor. xml
Signing: res/drawable/apparrow. xml
Signing: res/drawable/application_background.9.png
Signing: res/drawable/button. xml
......
[Summary]
The above is the process of making the signature file and signing the apk, for details, please refer to the android official development documentation http://developer.android.com/guide/publishing/app-signing.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.