If App is preloaded on Android device, I cannot install the latest APK from Appium

I encounter a question with Android device.
The APK is resigned by Appium first, and the resigned APK will be installed on Android device.
But if the App cannot be uninstalled (App is preloaded on Android device), when we install the APK, it will show the message:

Failure [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES]

Therefore, I cannot install the latest APK from Appium.

Is there any solution can avoid this situation?

Hi, please post the server logs.

Android doesn’t let you install over an existing app unless the certs match.
Appium should be uninstalling the app before attempting to install to avoid this problem.
If appium can’t uninstall then appium also can’t install. You can avoid specifying an APK in this case and just automate the existing version on the device.

Another option is to set the noSign cap.

https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/caps.md

This issue said that the noSign cap is scheduled for milestone 1.3.
So now there is no noSing cap can be used until milestone 1.3, right?

That is correct. It’ll be in 1.3.

I find noSign cap is available in 1.2.2. By using noSign cap, I can install over the existing app.
Thanks a lot!