ADB install-r Installation Application error [Install_parse_failed_inconsistent_certificates] and how to apk system signature _apk installation failed

Source: Internet
Author: User

[Install_parse_failed_inconsistent_certificates]

The reason is that the APK signature problem is caused.

If the app's androidmanifest.xml adds android:shareduserid= "Android.uid.system" (adding this property as a system application into the system, you can modify the system time, etc.)

Because the app runs in the system as a system application, the installation fails due to inconsistencies in his signature and system signature


Sign the APK system

Documents required for signature
Platform.pk8 Platform.x509.pem Signapk.jar


These three can be obtained in the source code

Platform.pk8 and Platform.x509.pem can all be found in the build/target/product/security/directory.

Signapk.jar under the build/tools/signapk/directory


Signature instructions

Java-jar Signapk.jar Platform.x509.pem platform.pk8 input.apk output.apk


Easy to sign, you can copy all three files to a folder. Does not copy, each file plus path can also.

Java-jar Signapk.jar Security/platform.x509.pem security/platform.pk8 xcstore.apk XCSTore_Sign.apk


The APK cannot be install installed by the ADB and should be pushed into the System/app directory

ADB push Xxx.apk/system/app


If the error read-only file system errors because it is not in remount mode.

Execute the following instructions

ADB reboot

ADB remount


If you are using a serial tool to replace the system application

Cd/dev

sudo minicom-d ttyusb*

Enter your computer password

Enter the serial port tool

First Mount

Mount-o Remount/system

CD System/app

RM xxx.apk

cp/mnt/udisk/xxx.apk.///copy of APK from U disk to System/app

chmod 777 xxx.apk//To increase the access to the APK

Sync

Reboot


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.