For example:
Update/
Update/system
Updates/systems/applications
update/system/app/doodle _ jump . apk
Update/meta information
update/META-INF/com
Update /META-INF/com/google
Update /META-INF/com/google/Android
Update/meta-INF/com/Google/Android/update-script.
This directory contains doodle_jump games. After the upgrade, apk will appear in the /system/app/ directory of the mobile phone.
META-INF directory contains upgrade scripts, and the contents of update scripts are as follows:
Show progress 0.500000 0
Copy_dir package: system system:
Display progress 0. 100000 0
You can add corresponding commands according to your own upgrade content.
Step 2 Create a compressed package
Run under Update/Directory:
$ zip -qry../update.unsigned.zip。 /
The update.unsigned.zip compressed package will be generated in the parent directory of update/
sign
$? Java? -xmx 5 12m-jar signapk . jar-w key . x509 . PEM key . pk8 update . unsigned . zip update . zip
Generate a signed update.zip package, where
Signapk.jar, key.x509.pem and key.pk8 are related to specific mobile phone systems.
4. Put the signed update.zip package in the root directory of the mobile phone sdcard.
Reboot the system into recovery mode, and then select
Apply update.zip and restart the phone after success.
Ok, now there is doodle_jump game on the mobile phone, and it can't be deleted ~
-Original English-
When publishing an application or customizing a rom? You need to sign it. Apk or Use? Certificate? Use the private key. That? Android? The system uses certificates to identify the authors of applications and establish a trust relationship between applications. The classic approach is to use. keytool? And sign it? Jasina. In this tutorial, I will explain an alternative method that is relatively easy for most people to use? Use a tool called SignApk.jar
Jar is a tool included in the source code package of Android platform. You can download it from? Here you are. To use SignApk.jar, you must create a private key with the corresponding certificate/public key. To create a private/public key pair, you can use? Openssl。 Is Openssl better under unix/Linux? System. For Windows users, you can download the Windows version of Openssl? Here you are.
How to create a private/public key pair using openssl (windows version)
Download openssl package from the link given above.
Unzip it anywhere on your hard disk (for example, C:\openssl).
Within openssl directory type (using cmd tool):
-openssl genrsa -out key. pem 1024
-OpenSSL req-new-key key . PEM-out request . PEM
-OpenSSL x509-req-days 9999-in request . PEM-sign key key . PEM-out certificate . PEM
-OpenSSL pkcs 8-top k8-out form DER-in key . PEM-inform PEM-out key . pk8-nocrypt
note:
If you don't want to create your own public/private key pair, you can use the test key contained in SignApk.rar.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
How many ways can I install an application or? Copy library files to an? Android? Telephone. Can you use it? Marketapplication to find and install or? ADB? Command line tools install or push files to the Android file system. These are easy to achieve? Single? But if you have several applications or library files to install at once, then use? Update zip? Documents. Updating zip file is an advanced Android system that uses recovery tools to install applications or lib files into the Android file system. This method is usually used by rom or theme developers to publish their packages.
Download SignApk.rar from the link given above.
Extract it? Anywhere on the hard disk (for example, c:\SignApk)
If java is not installed, Download? And install it.
Copy certificate.pem and key.pk8 to the extracted SignApk directory.
In the SignApk directory type:
Java-jar signapk . jar certificate . PEM key . pk8 your-app . apk? Your signed app.apk
operational research
Java-jar signapk . jar certificate . PEM key . pk8 your-update . zip your-signed-update . zip
In the process of buying a car, many people will pay attention to many aspec