Android anti-compilation secret, how the pseudo-encryption apk file is destroyed

Source: Internet
Author: User



1. SOURCE Confusion

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104720_f1Rf.jpg "width=" 609 "height=" 149 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104720_Nror.jpg "width=" 611 "height=" 251 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

For example, after confusing the source of the Android app, the obfuscation will encrypt all the variables, functions, and class names in the code into short, alphanumeric codes, adding to the difficulty of reading the code when the app is cracked.

But the effect of confusion can only work after the app has been cracked, and only to increase the difficulty of the cracker time, the role of its prevention is not very significant.

2. Pseudo-Encryption of anti-tool cracking

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104720_ncMO.jpg "width=" 390 "height=" 317 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104720_RKWI.jpg "width=" 637 "height=" 199 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

Pseudo-Encryption is one of the most popular encryption methods before the android4.2.x system is released, and the APK (compressed file) is pseudo-encrypted by Java code, which is modified by modifying the 5th byte after the continuous 4-bit byte labeled "P K 01 02", and the odd number means that an even number is not encrypted. The pseudo-encrypted apk not only prevents the PC from extracting and viewing it, but also prevents the compilation of the anti-compilation tool.

But pseudo-encryption to its APK encryption after the market can not be security detection, some markets will reject this type of apk upload market. The encryption and decryption methods of pseudo-encryption have long been published, resulting in a much lower level of security. The android4.2.x system cannot install a pseudo-encrypted apk.

3. Anti-tool hack apk zip file hack

650) this.width=650; "src=" Http://static.oschina.net/uploads/img/201409/05104720_PHJ3.jpg "width=" 638 "height=" 262 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104720_9SeN.jpg "width=" 458 "height=" 270 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

650) this.width=650; "src=" http://static.oschina.net/uploads/img/201409/05104721_tFAO.jpg "width=" 655 "height=" 278 "Style=" padding:5px;margin:10px 0px;border:1px solid RGB (221,221,221); Background-color:rgb (244,247,249);/>

APK on the PC can be seen as a compressed file, in the Android system it is a mobile phone system software files. Android apk recognition is from the logo head to the end of the flag, and other redundant data will be ignored. So say at the end of the logo to add additional data to the APK as a compressed file on the PC side of the file is destroyed, so you want to unzip it or view will prompt the file is corrupted, with the anti-compilation tool will also prompt the file is corrupted, However, it does not affect the normal operation and installation of the Android system and is compatible with all systems.

But this apk compression package destroys the same problem as the APK pseudo-encryption, the individual market will not be able to identify the market can not be uploaded. Using the zip file Repair tool can also fix it so that the protection we do is gone.

4. Use "Love Encryption"

Google's security for Android app is to give apk simple encryption, Java Layer Source shell protection, the core so library, resource files, master files, third party rack package but there is no protection processing. The protection has been compromised by hackers but has not done any upgrade to maintain the Android app now without any security.

"Love Encryption" is the source shell protection, so library core code shell protection, resource file signature protection, APK anti-two package protection, and so on to the full protection of the APK. Encrypted app will not affect its operational efficiency and user experience, and is compatible with all current markets and Android phone systems.

"Love Encryption" is the safest and most reliable security process for Android apps.

http://my.oschina.net/u/1590538/blog/310479

Android anti-compilation secret, how the pseudo-encryption apk file is destroyed

Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.