Android integrates apk into the system.

Source: Internet
Author: User
Tags java decompiler

Android integrates apk into the system.

1. Check whether the Integrated APK is a release version. Otherwise, the CTS test fails.

Solution: decompile the apk, view the manifest. xml file, and check whether the debug attribute is android: debuggable in <application>.

The value is true, which is the debug version. If the value is false or is not set, it is the release version.


2. The integrated APK cannot be changed. Otherwise, a signature conflict occurs during the upgrade of the APK application.

 

3, integrated APK, the signature cannot be the default android Signature: android@android.com. Otherwise, the CTS test fails.

View method: jarsigner-verify-verbose-certs XXX.apk



In Android development, can an apk call some of its methods through other apk interface documents? Problems encountered in the company project

This is a security issue. If you can access the interface at will, it is easy to be attacked, isn't it? I just guess, if there is a good way to share and learn from each other.
 
The android apk file does not contain the source code. why can it be used after the software is installed?

The source code is integrated into the apk. It can be decompiled. Decompilation steps
1. Copy class. dex to the directory where dex2jar. bat is located, and drag class. dex to dex2jar. bat to generate classes. dex. dex2jar. jar.
2. decompress the class file in the jar file using rar, and decompile the. class file into a. Java file using jad or DJ java Decompiler decompilation tool.
3. Run the JD-GUI tool (green software), open the jar File above, there is a Save JAR Source under File, it can generate src Source code.

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.