Android Zipalign Tool optimizes Android APK applications _android

Source: Internet
Author: User

The generated Android application APK file is best optimized because the essence of the APK package is a zip-compressed document that optimizes the orderly arrangement of uncompressed data in the package, reducing the memory consumption at the time the application runs. We can use the Zipalign tool for APK optimization.

Zipalign is an important tool for optimizing APK applications, according to the Android official website.

Most software developers are officially launching their Android apps, using the Zipalign tool to optimize APK packages. However, there are still some applications that require us to do our own zipalign optimizations, such as some software developed by individuals, some cracked versions of software.

Here I mainly introduce the use of ADB direct apk optimization and in the already root of the Android phone apk optimization of the two methods.

In the beginning, please download the binaries and script code on the Web: zipalign.zip, after decompression produces a binary file zipalign, an executable script Zipalign_apks.

method One: ADB law (requires the computer to have the Android SDK installed)

1. Installation Code

ADB Shell Mount-o Remount,rw/system
ADB push Zipalign/system/bin
ADB push zipalign_apks/system/sd/zipalign_apks.sh
ADB shell chmod 755/system/bin/zipalign/system/sd/zipalign_apks.sh
ADB Shell Mount-o Remount,ro/system

2. Run the script code

ADB Shell sh/system/sd/zipalign_apks.sh

Or running at the super terminal of the phone.

Su
sh/system/sd/zipalign_apks.sh

Method Two: Use root Explorer

Root explorer (re) is a powerful root manager that can read and write to the system area.

First copy Zipalign to/system/bin with Re, set permissions to Rwxr-xr-x, as shown in the following figure:

Then copy the Zipalign_apks to/system/sd/or other places, rename it zipalign_apks.sh, and set permissions as Zipalign.

Then run zipalign_apks.sh by clicking the file with Re, jumping out of the dialog box, and choosing Execute.

After running, you will generate a log file Zipalign.log in/data/, and you can see which applications are optimized by viewing the journal documents.

The above is the Android Zipalign tool optimization apk application, I hope to help people in need, thank you for the support of this site!

Related Article

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.