Today, I encountered a problem. Some users reported that the installation failed when they downloaded a new application from Huawei App Market.

The failure details are displayed. Seeing the specific failure information is Conflicting Provider, Error Code: -13. It also suggests the name of the offending application and recommended resolution.

When providers conflict, it is likely to be caused by the same ContentProvider. ContentProvider is one of the four components of Android, but is rarely used. ContentProvider is generally used for cross-process communication to exchange and share data between processes. This feature determines that the ContentProvider must be globally unique. If an application registers a Provider with the same name on the phone, subsequent applications cannot use the same name, causing an error during installation.

Check the two conflicting APKs and see the same Provider Settings in the Androidmanifest.xml file:

After discussing with the developer, I modified the information of ContentProvider of one of the applications and added the package name information of this application. Then the installation was successful and the problem was solved.

The original link: developer.huawei.com/consumer/cn…

Original author: Mayism