I am attempting to install my app on my new Samsung Galaxy S8 for the first time from Android Studio. When I do so, I get the following error message:
Installation failed with message Failed to finalize session : INSTALL_FAILED_DUPLICATE_PERMISSION: Package bbct.android attempting to redeclare permission bbct.android.lite.permission.READ already owned by com.samsung.android.bixby.agent.
Why does Bixby own my permission? More importantly how do I fix this?
The Samsung Galaxy S8, and Galaxy Note 8 are now unofficially compatible with Android 11. Indeed, the official builds of the Project Sakura Custom ROM are now available for both phones.
Is the Galaxy S8 obsolete? Even though the S8 is no longer receiving Android OS updates, Samsung is still supporting this phone with security patches, although these are expected to end around Spring 2021.
Galaxy S8 vs Galaxy S20 5G Upgrading from a Samsung Galaxy S8 to a Galaxy S20 5G would mean improvements in almost every aspect of the phone. The Galaxy S8 was released in 2017, and the Galaxy S20 5G arrived in 2020. This three-year gap means you will get a better camera setup, a newer processor, …
I fired up my Galaxy S8, installed the Applications Info app, and found com.samsung.android.bixby.agent
— it's listed as "Bixby Voice".
For whatever reason, in their manifest, they have a <permission>
element for bbct.android.lite.permission.READ
. It's the only non-com.samsung
permission that I see for that app
On the plus side: Samsung knows who you are!
On the minus side: you're fairly well screwed.
Other than switching to some other permission name, your app will never be able to be installed on the Galaxy S8 or any other Samsung device that has this Bixby app (and is running Android 5.0+, though I think Bixby is only for newer devices). Two apps cannot declare the same permission on the same device on Android 5.0+ unless they are signed with the same signing key, and presumably yours is not.
(I am curious as to how this happened — is this the app? Is it open source?)
It appears that a developer at Samsung borrowed some code from another SO question I wrote years ago: Requesting read permission from my own ContentProvider in another app. This question originally contained the permission name which I used in my app. I have word from other SO members that this will be fixed in the next Bixby update.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With