Hack apk inject code big secret

Source: Internet
Author: User

Click here to learn more about the APK hack and two packaging process secrets: Http://t.cn/RzEn7UK

"HACK" hack apk and inject your own code

Will crack is your ability, but please do not do bad things!

Using tools:

Apktool

Reminder: The normal installation of the APK is signed with the phone (do not know the signature can Baidu), the apk after the crack repackaging is no longer have a signature, if you want your cracked apk to run properly please re-sign.

APK is actually a compressed package. Let's see what's inside. Such as:

650) this.width=650; "src=" Http://image.mamicode.com/info/201505/20181021085016444074.png "width=" 535 "height=" 372 "Style=" border:0px;vertical-align:top;margin:0px;padding:0px; "/>

Meta-inf is the folder where the signatures are stored, we do not overdo the explanation here

RES is an XML configuration file and a picture file that are encrypted and cannot be viewed directly

Classes.dex and Resources.arc is the source of encrypted files, its specific operating procedures such as:

650) this.width=650; "src=" Http://image.mamicode.com/info/201505/20181021085016478252.png "width=" 542 "height=" 255 "Style=" border:0px;vertical-align:top;margin:0px;padding:0px; "/>

Note: The back-compiled apk is unsigned and needs to be signed before it can be installed properly.

Ok! The next step is to use the Apktool tool to decompile and back-compile. Its basic syntax is as follows:

Decompile apk:650) this.width=650; "src=" Http://image.mamicode.com/info/201505/20181021085016503641.png "style=" border:0 px;vertical-align:top;margin:0px;padding:0px; "/>

After the successful compilation will be generated for the folder, the folder inside the Smali is the source file, if the Davlik (. smail) syntax will be able to inject code dynamically

Back to apk:650) this.width=650; "src=" Http://image.mamicode.com/info/201505/20181021085016527077.png "width=" 409 " "Height=" style= "border:0px;vertical-align:top;margin:0px;padding:0px";/>

The back-compiled apk will be in the Test/dist directory. Note: The back-compiled apk is unsigned and needs to be signed before it can be installed properly.


Hack apk inject code big secret

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.