[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