Android re-packaging after decompile

Source: Internet
Author: User
What's included in the APK

Using Apktool to directly decompile the APK

Well, anyway, it's an unusual report anyway. Some people say that the version of Apktool is not the latest cause, I also rarely to find out why, before such direct anti-compilation is just that.

Use Dex2jar to turn the Dex file extracted from the APK into a jar package

Use Jd-gui to view the contents of a jar package

Copy the class change code that will need to be changed to inside the jar to complete the overwrite substitution

Turn the jar package back into a dex file

Copy the modified Dex file to the original apk file

Overwrite the original Dex file directly

And then excitedly went directly to the installation, however ~


It seems that it is not so simple can be a fix, continue to troubleshoot the cause.

Sex Hey, shh, find out why.

See what suspicious objects in the APK file have caused the installation to fail, and sure enough, in addition to Dex and the resource files, three files were found

The original is the APK package itself, the anti-tampering mechanism caused by

Open the file to find out, and sure enough, it was in the packaging when the file is identified, it seems that this is to avoid tampering with the security mechanism.

Find the problem, fix it, have sex.

Consider that since these files are the result, try to delete the file directly, and avoid tamper checking.

However, this is not possible, you must have this folder to resolve the APK package, which may be equivalent to reading the list of installation files, must have, it seems blocked,

Since the original list content is not right, but can not provide, then we will give it a new one?
Think of here, feel can try, sex sex ~

Since these files are automatically generated during the compile-and-pack apk period, you will need to re-pack them if you want to generate a new copy. But this is already an apk file, how to compile packaging?
Stopped to think about, yes, suddenly remembered to be able to sign the package name Bai, dozen signature should also have the same effect just right, continue to have sex sex.

Find a tool to sign, with their own signature to leave something bad record is not good, hey ~

After the signature is successful

Successfully installed, cracked complete

Android re-packaging after decompile

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.