Skip to content

bug: INSTALL_FAILED_CONFLICTING_PROVIDER when installing alongside stock Prime Video app #87

Description

@50P15

Description

When using the custom package name option to rename applicationId (e.g. to com.amazon.amazonvideo.livingroom.mod) before installing alongside the stock Prime Video app — common on Android TV with system-preinstalled apps — installation fails with:

INSTALL_FAILED_CONFLICTING_PROVIDER: Scanning Failed.: Can't install because provider name com.amazon.amazonvideo.livingroom.mobileadsinitprovider (in package com.amazon.amazonvideo.livingroom.mod) is already used by com.amazon.amazonvideo.livingroom

Cause

Renaming applicationId does not update the android:authorities of the Google Mobile Ads provider, which stays hardcoded to the original value:

<provider android:authorities="com.amazon.amazonvideo.livingroom.mobileadsinitprovider" ... />

ContentProvider authorities must be unique device-wide, regardless of applicationId. Since this stays identical to the stock app's provider, PackageManager rejects installation — especially relevant since the stock app often can't be fully removed without root.

Fix

Rename the authority to match the new package namespace:

<provider android:authorities="com.amazon.amazonvideo.livingroom.mod.mobileadsinitprovider" ... />

Suggest having the custom package name patch also rewrite any android:authorities string prefixed with the original package name, the same way it's already handled for YouTube's "Custom package name" patch.

Confirmed working after manually editing the manifest with apktool, rebuilding, and signing with uber-apk-signer — installs cleanly alongside the stock app.

Since many TV / TV boxes come with Prime Video as system app, its impossible to uninstall it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions