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