CentOS Anti-compilation APK package

Source: Internet
Author: User

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. 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.

    1. 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

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.