Apk signature, apk

Source: Internet
Author: User

Apk signature, apk
Apk Introduction

APK is the abbreviation of AndroidPackage, that is, the Android installation package (apk ). APK is a file format similar to Symbian Sis Or Sisx. Directly upload the APK file to the Android simulator or Android mobile phone for installation. Like the sis file, the apk file packs the android sdk-compiled project into an installer file in the format of apk. The APK file is actually in zip format, but its suffix is changed to apk. After UnZip is decompressed, you can see the Dex file. Dex is the abbreviation of DalvikVM executes, that is, the Android Dalvik execution program, it is not a Java ME bytecode, but a Dalvik bytecode. Android requires UnZip before running a program, which is similar to Symbian. It is different from PE files in Windows Mobile.

 

Body

The apk file is essentially a zip file. Therefore, the unzip command is used to decompress the apk file and re-package the extracted file. You need to use the zip command and then use the command line tool to package it.

 

This document uses two packaging commands,

First

cmd.exe /c  jarsigner -keystore C:\Users\Administrator\android.keystore -storepass chujian -signedjar C:\Users\Administrator\mwmz2.apk C:\Users\Administrator\mwmz.apk  android.keystore

 

1. Install jdk on your computer and configure environment variables.

2. Generate a CERTIFICATE command for the android. keystore file. As follows:

keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore

3.mwmz2.apk is the file name to be generated after the signature.

4.mwmz.apk is the file to sign.

5. The last android. keystore of the command is the same as the android. keystore generated in 2, except that there is no path except the file name and suffix.

 

Second

Java-jar E: \ signapk. jar E: \ testkey. x509.pem E: \ testkey. pk8 E: \ mengwang password-free 2.apk E: \ mengwang password-free .apk

1. jdk must be installed on the computer

2. You need to generate a signature certificate in the android Environment

signapk.jar  testkey.x509.pem  testkey.pk8

3. E: \ The password-free 2.apk is the path and file name to be generated after the signature.

4. E: \ The Magic Lord Meng's password-free .apk is the apk package to sign.

 

Reprinted please indicate the source http://guanhp2013.cnblogs.com/

Both of the preceding methods can re-sign a zip package.

Author's website: http://xyzla.com

 

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.