Change to: http://www.qiansw.com/centos-apk-apktool.html
I'm using a CentOS6.4 64-bit system.
You need to download two packages first.
Download here: Https://code.google.com/p/android-apktool
Users can not open directly to the article to download the attachment (version may not be up-to-date).
Download the java:http://www.java.com/zh_cn/download/manual.jsp here
1. Unzip the two packages in the attachment to get three files and copy them all to the/usr/local/bin directory.
2. After downloading the Java installation:
1 |
Shell > yum localinstall JRE-7u55-linux-x64. RPM |
3. Error Handling:
Anti-compile command:
/usr/local/bin/apktool d-f/HOME/PKG/VV.APK/HOME/PKG/VV
Package Command:
/usr/local/bin/apktool b-f/home/pkg/vv/home/pkg/vv.apk
Cannot run Program "AAPT": error=2, No such file or directory
Error when executing aapt.
-bash:/usr/local/bin/aapt:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory
See which package you need to install.
Yum provides */ld-linux.so.2
Follow the prompts to install:
Yum Install glibc-2.12-1.132.el6.i686
Try to continue with the package command.
Error aapt:error while loading shared libraries:libz.so.1:cannot open Shared object file:no such file or directory
Yum Install zlib-1.2.3-29.el6.i686
Error aapt:error while loading shared libraries:libstdc++.so.6:cannot open Shared object file:no such file or directory
Yum Install libstdc++-4.4.7-4.el6.i686
Error: Protected multilib versions:libstdc++-4.4.7-4.el6.i686! = libstdc++-4.4.7-3.el6.x86_64
Indicates that the 64-bit version of the libstdc++ version is inconsistent with the 32-bit version that needs to be installed, and the 64-bit version needs to be upgraded first.
Yum Install libstdc++
Make a clean look:
Shell
12 |
yum localinstall jre -7u55-linux-x64.rpm Yum install -y glibc-2.12-1.132.el6.i686 zlib- 1.2.3-29.el6.i686 libstdc+ + libstdc+ +-4.4.7-4. el6.i686 |
Installing the APK Anti-compilation tool Apktool under CENTOS