1. In the Eclipse project, right-click the project and choose Android> Generate a signature application package from the shortcut menu:
2. Select the android project to be packaged:
3. If the private key file already exists, select the private key file and enter the password. If not, see steps 6th and 7 to create the private key file:
4. Enter the privat
1. Configure the Android SDK, Java environment2. Re-sign the apk fileIn the user directory, there will be a. Android directory, put Re-sign.jar in the directory. Execute command Java-jar Re-sign.jarThen take the apk file off to the open re-sign. Save the re-signed file.
Encounter problem: Prompt Sdk\tools\zipalign.exe does not have this file. Resolution: Copy one to this di
When it comes to developing Android products, it is often necessary to use system signatures (such as when using uid,apk upgrades), so Android provides us with tools to customize signature files. The process is documented here: 1, enter the/android_src/development/tools directory. 2, use the Make_key tool to generate signa
With Android Studio installed, the default is a one-year signature and cannot be posted to the full version of the APK.When using third-party modules or services, it is often required to provide signatures and their SHA1 or MD5 information.In fact, the signature and its information are not related to Android studio, an
Android Baidu map solution for key verification failure after packaging signature, androidkey
During the development process, we may have encountered this problem. The Baidu map development and debugging application is normal, and the authorization key fails to be displayed after packaging.
This is because the Application Generated by debugging uses the default SHA1 value of eclipse.
We need to use the s
When learning about android digital signature, the keystore, x509, key pair, and debug. keystore headers appear in the document.
Turn, after a period of understanding, finally understand some.
I. Generate a key pair using the make_key script
The tool make_key (under the development/tools/directory) in the android source code can be used to generate an RSA
Manual packaging process:
1. decompile APKApktool D qq.apk qq2. You can modify the image file information in the QQ folder and package it into an APK file. apktool B QQ qq.apk 3. Sign the file (you need to create a certificate by yourself, you can use the built-in JDK keytool) apktool. jar apksigner. bat apktool. bat jarsigner.exe
Apksigner. BAT file content:
@ REM ### apksigner. bat
@ REM http://www.cnblogs.com/qianxudetianxia/archive/2011/04/09/2010468.html
Recently, I encountered the problem of restarting the Android system during development. After a day of tossing and surfing the Internet, I finally solved the problem. Here the problem is mainly about permissions. Share as follows:
Environment: android2.2 eclipse3.7 jdk1.6
My main signature method is as follows:
1. Add Android: shareduserid = "
Use Android JNI to get an app signature.Generate your own password based on the signature you get, which prevents others from recompiling their source code and looking for a password.Jstring java_com_masonsdk_jni_jniutil_getpwd (jnienv* env, Jobject thizz,jobject thiz) {Jclass Native_clazz = env-> Getobjectclass (Thiz); Get the ID of the Getpackagemanager method Jmethodid Methodid_func =env->getmethodid
Some people say that android only supports BKS certificates. I do not know whether it is true or false, so I first created a BKS certificate.
Steps:
1. Download The bcprov-jdk16-141.jar and put it in the \ jre \ lib \ ext directory
2. Modify the jre6 \ lib \ security \ java. security File and add security. provider.10 = org. bouncycastle. jce. provider. BouncyCastleProvider to the file.
Find the security. provider in this file, followed by the serial
Before your game is ready to be released, you need to compile it into a release version, and add-m release to the command. The compilation command is as follows:
Cocos compile-p android-m release
After compilation, generate xxx_release_unsigned.apk. A message is displayed, indicating the signature. Enter the. keystore path.
. Keystore Generation Method:
Use keytool with the following command:
keytool -ge
First choose your own application, find here650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/5A/wKioL1ZQckqzegPkAAFp76r5pBs238.png "title=" Qq20151121212728.png "alt=" Wkiol1zqckqzegpkaafp76r5pbs238.png "/>Click to enter to create a new key650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/5B/wKiom1ZQcoLSDQh9AACICvolBm4588.png "title=" Qq21110151121213201.png "alt=" Wkiom1zqcolsdqh9aacicvolbm4588.png "/>Then fill in the appropriate information as required650) this.width=6
This example for you to share the Android micro-credit payment to obtain two signed sign method for your reference, the specific content as follows
/** * Get Sign Signature * * @return/private String Genpayreq () {//Get the value of the parameter payreq request = new Payreq ();
Request.appid = constantsmember.app_id;
Request.partnerid = Constantsmember.mchid;
Request.prepayid = Mprepayid;
Req
http://blog.csdn.net/dyllove98/article/details/8830264If you are not a developer: if you update an earlier version of the software on Android, install to the last step: you have installed a packet with the same name with a signature violation, and then the installation fails. This is because the old version of the software signature information and the new versio
:
Jarsigner-verbose-keystore yourtion. keystore-signedjar yourtion_signed.apk yourtion.apk yourtion. Key
-Keystore: the name of the keystore.
Yourtion_signed.apk is the named APK
Yourtion.apk is the APK before the signature
Press enter to enter the password you just set. Press enter to start signing.
Note: Sometimes the signature will fail, because you may use the APK built by eclipse that has
; [Unknown]: foxconnYour ?? Name ?? Critical? Br/> [Unknown]: itYour city or location? ^ Name ?? Critical? Br/> [Unknown]: shenzhenWhat is the name of your state and province ?? Critical? Br/> [Unknown]: guangdong?? Broken acre ??? A? Why? Br/> [Unknown]: cnCN = carey zhou, OU = foxconn, O = it, L = shenzhen, ST = guangdong, C = cn ?? Yun? Br/> [no]: Y? What is the primary key of (RETURN if it is password-secured with keystore? Same): Again? New password? : [
A viable solution: use only the V1 solution
Scenarios that are not necessarily feasible: use both V1 and V2 scenarios
It's not going to work under 7.0. Scenario: Use only v2 scenarios
V1: The signed file can be modified appropriately and re-compressed.V2: You cannot make any changes to the signed apk, including the zipalign. Because it is a signature on a byte, any change will affect the final result.Signature versions cannot select onl
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.