CentosAnti-compilationAPKPackage
Experimental purpose
online linux upload game pack,PHP calls the anti-compilation command unpacking
Experimental environment
centos6.4 Linux localhost.localdomain 2.6.32-279.el6.x86_64 #1 SMP Fri June 2212:19:21 UTC + x86_64 x86_64 x86_64 gnu/li mu[
nginix1.8.0
php5.4
mysql5.5
Operation Steps
1.RQM-QL | grep java
2.yum-y Install java*
3. Download Apktool
Http://pan.baidu.com/s/1sj6X3Kp?qq-pf-to=pcqq.discussion
Apktool uploading to the server
4.unzip Apktool-v2.0.0rc2.jar.zip
5.MV Apktool-v2.0.0rc2.jar/usr/local/bin/apktool.jar
6. Test If Java is installed successfully view java version java-version
7. test whether the anti-compilation was successful
Execute The storage path of the java-jar/usr/local/bin/apktool.jar d ' apk file '-O ' to the source file storage path after the anti-compilation , the command does not error is successful. Enter the source file store path to see if the file exists
8. calling Test in PHP
If you can compile the file, it's successful.
Note:
1. use the PHP function system to perform the anti-compilation APK command, which requires the root user group permissions. You need to use the sudo command.
Execute The Visudo command, add it in the configuration file (www for web Server Execution user group)
www all= (All) Nopasswd:/usr/bin/java.
The time will appear with PHP runs, calling the sudo command, because the sudo configuration file only restricts terminal execution, requires comments #Defaults Requiretty
This article is from the "track to record work learning" blog, so be sure to keep this source http://stephenliu.blog.51cto.com/6470474/1718275
CentOS Anti-compilation APK package