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.
Description
When using the custom package name option to rename
applicationId(e.g. tocom.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
applicationIddoes not update theandroid:authoritiesof the Google Mobile Ads provider, which stays hardcoded to the original value:ContentProviderauthorities must be unique device-wide, regardless ofapplicationId. Since this stays identical to the stock app's provider,PackageManagerrejects 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:
Suggest having the custom package name patch also rewrite any
android:authoritiesstring 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.