Android zialign tool optimizes Android APK applications

The generated Android application APK file is best optimized because the essence of APK package is a zip compressed document. After optimization, the uncompressed data in the package can be arranged orderly, so as to reduce the memory consumption during application running. We can use zialign tool for APK optimization.

According to the official Android website, zialign is an important tool for optimizing APK applications.

Most software developers use zialign tool to optimize APK package when officially launching their Android applications. However, there are still some applications that need zialign optimization by ourselves, such as some personal developed software and some cracked software.

Here, I mainly introduce two methods: APK optimization using ADB directly and APK optimization on the Android mobile terminal with root.

At the beginning, please download the binary file and script code on the Internet: ziphalign Zip. After decompression, a binary file ziphalign and an executable script ziphalign are generated_ apks。

Method 1: ADB method (the computer needs to be equipped with Android SDK)

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 script code

adb shell sh /system/sd/zipalign_ apks. sh

Or run on the mobile HyperTerminal

su sh /system/sd/zipalign_ apks. sh

Method 2: use root Explorer

Root Explorer (RE) is a powerful root manager, which can read and write to the system area.

First, use re to copy zippalign to / system / bin and set the permission to rwxr-xr-x, as shown in the following figure:

Then zip align_ Copy apks to / system / SD / or somewhere else and rename it zip align_ apks. SH, the setting permissions are the same as zippalign.

Then run zip align_ apks. SH, click the file with RE, pop up the dialog box, and select execute.

After running, a log file zip align. XML will be generated in / data / Log, you can find out which applications are optimized by looking at the log documents.

The above is the application of Android zialign tool to optimize APK. I hope it can help those in need. Thank you for your support for this site!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>