online linux upload game pack,PHP calls the anti-compilation command unpacking
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[
1.RQM-QL | grep java
2.yum-y Install java*
3. Download Apktool
Apktool uploading to the server
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.
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