Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

INSTALL_FAILED_DUPLICATE_PERMISSION error when installing Yahoo Mail apk on Samsung Galaxy S6 using Appium

For automation testing purposes I cannot install the app using the Google Play store. I need to install it manually using the Appium.

I can install yahoo mail on a Samsung S7 and an LG G5 but I get INSTALL_FAILED_DUPLICATE_PERMISSION error when installing Yahoo Mail on a Samsung Galaxy S6.

Here is the full error message. Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.yahoo.mobile.client.android.permissions.YAHOO_INTER_APP pkg=com.yahoo.mobile.client.android.mail.att]

Any help would be appreciated.

like image 257
Alslayer Avatar asked Mar 12 '23 03:03

Alslayer


1 Answers

On Android 5.0+, two apps cannot have the same <permission> element, creating the same permission, unless they are signed by the same signing key. In your case, the Galaxy S6 already has something that defined this permission, and it has a different signing key than the one that somebody used to sign your APK.

like image 164
CommonsWare Avatar answered Apr 27 '23 02:04

CommonsWare