Install failed duplicate permission ошибка

I am using Google notifications in my app, and until now I have done below in the manifest:

<!-- GCM -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> <!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.WAKE_LOCK" /> <!-- Keeps the processor from sleeping when a message is received. --> 
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" /> <!-- This app has permission to register and receive data message. --> 

<!-- Creates a custom permission so only this app can receive its messages. NOTE: APP_PACKAGE.permission.C2D_MESSAGE -->   
<permission android:name="com.myapp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.myapp.permission.C2D_MESSAGE" />    
<!-- END GCM -->

It worked perfectly until I updated my Nexus 7 to Android 5.0.
Now when I try to install the app in this device with Eclipse, I get this error:

INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.myapp.permission.C2D_MESSAGE pkg=com.myapp

I don’t understand what is wrong? It was working perfectly until Android 5.0.
I know that I am using C2D_MESSAGE in two lines, permission and uses-permission but I have copied that code from the original Google GCM guide, so it must be fine.

Pratik Butani's user avatar

Pratik Butani

60.1k55 gold badges272 silver badges433 bronze badges

asked Nov 20, 2014 at 15:57

NullPointerException's user avatar

2

I’ve found a solution that works for me.

In My Device (Nexus 7) Android 5.0. Lollipop I follow these steps.

After Uninstalling App You will find App Name under Apps List of the Downloaded tab.

  • Go to Settings
  • Apps
  • At the bottom of the list, you will find YourApp with a «NOT INSTALLED» Tag
  • Open
  • Click on OptionMenu and Select «Uninstall for all Users»

After these steps, I successfully install the new app and it’s running well.

answered Dec 13, 2014 at 6:52

Pratik Butani's user avatar

Pratik ButaniPratik Butani

60.1k55 gold badges272 silver badges433 bronze badges

9

Remove

<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
<permission
    android:name="${applicationId}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

Run App…
Then Add the permisson again and Run App.

Ready!.

Pratik Butani's user avatar

Pratik Butani

60.1k55 gold badges272 silver badges433 bronze badges

answered Jan 4, 2015 at 15:40

Delmirio Segura's user avatar

Delmirio SeguraDelmirio Segura

1,6531 gold badge9 silver badges5 bronze badges

7

I had the same problem with a custom signature permission on Android-21 and solved it by making sure I was doing a complete uninstall.

This is an edge case that occurs when:

  1. An application defines a custom permission using signature level security
  2. You attempt to update the installed app with a version signed with a different key
  3. The test device is running Android 21 or newer with support for multiple users

Command line example

Here is a command-line transcript that demonstrates the issue and how to solve it. At this point a debug version is installed and I am trying to install a production version signed with the release key:

# This fails because the debug version defines the custom permission signed with a different key:

[root@localhost svn-android-apps]# . androidbuildscripts/my-adb-install Example release
920 KB/s (2211982 bytes in 2.347s)
        pkg: /data/local/tmp/Example-release.apk
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.android.example.PERMISSION_EXAMPLE_PLUGIN pkg=com.example.android.example]

# I use uninstall -k because apparently that is similar to uninstalling as a user
# by dragging the app out of the app tray:

[root@localhost svn-android-apps]# /android-sdk-linux/platform-tools/adb uninstall -k com.example.android.example
The -k option uninstalls the application while retaining the data/cache.
At the moment, there is no way to remove the remaining data.
You will have to reinstall the application with the same signature, and fully uninstall it.
If you truly wish to continue, execute 'adb shell pm uninstall -k com.example.android.example'

# Let's go ahead and do that:

[root@localhost svn-android-apps]# /android-sdk-linux/platform-tools/adb shell pm uninstall -k com.example.android.example
Success

# This fails again because the custom permission apparently is part of the data/cache
# that was not uninstalled:

[root@localhost svn-android-apps]# . androidbuildscripts/my-adb-install Example release
912 KB/s (2211982 bytes in 2.367s)
        pkg: /data/local/tmp/Example-release.apk
Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.example.android.example.PERMISSION_EXAMPLE_PLUGIN pkg=com.example.android.example]

# In spite of the warning above, simply doing a full uninstall at this point turned out to 
# work (for me):

[root@localhost svn-android-apps]# /android-sdk-linux/platform-tools/adb uninstall com.example.android.example
Success

# Release version now successfully installs:

[root@localhost svn-android-apps]# . androidbuildscripts/my-adb-install Example release
898 KB/s (2211982 bytes in 2.405s)
        pkg: /data/local/tmp/Example-release.apk
Success

[root@localhost svn-android-apps]# 

Eclipse example

Going in the opposite direction (trying to install a debug build from Eclipse when a release build is already installed), I get the following dialog:

Eclipse reinstall dialog

If you just answer yes at this point the install will succeed.

Device example

As pointed out in another answer, you can also go to an app info page in the device settings, click the overflow menu, and select «Uninstall for all users» to prevent this error.

answered Nov 23, 2014 at 15:48

x-code's user avatar

3

I’ve solved this without having to resort to uninstalling the alternate apk first (what a pain, right?). To successfully install both a debug and release version of an apk, simply use gradle’s built-in ${applicationId} placeholder within the AndroidManifest.xml to modify the permissions’ android:name values at compile time.

The build.gradle file snippet:

buildTypes {
    debug {
        applicationIdSuffix ".debug"
        ...
    }
}

The AndroidStudio.xml file snippet:

<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
<permission
    android:name="${applicationId}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

You can inspect the modified AndroidManifest.xml file within the apk using aapt l -a app-debug.apk to ensure the placeholder was properly applied. If you use various product flavors, I’m sure you can apply a variation of this method to suit your needs.

answered Dec 31, 2014 at 2:44

Jackpile's user avatar

JackpileJackpile

1,0758 silver badges18 bronze badges

5

Remove any «Hard Coded» reference of your package name, from your manifest file.

(This is best practice even if you don’t using productFlavors)

For example, if your manifest contains:

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="com.yourpackage.name.permission.C2D_MESSAGE"/>

<permission
    android:name="com.yourpackage.name.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>
<permission
    android:name="com.yourpackage.name.permission.MAPS_RECEIVE"
    android:protectionLevel="signature"/>

Changed it to:

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>

<permission
    android:name="${applicationId}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>
<permission
    android:name="${applicationId}.permission.MAPS_RECEIVE"
    android:protectionLevel="signature"/>

Then, in your module gradle file, set your relevant applicationId:

signingConfigs {
    stage {
        storeFile file('keystore/stage.keystore')
        storePassword 'android'
        keyAlias 'androiddebugkey'
        keyPassword 'android'
    }
    production {
        storeFile file('keystore/playstore.keystore')
        storePassword store_password
        keyAlias key_alias
        keyPassword key_password
    }
}

productFlavors {
    staging {
        signingConfig signingConfigs.staging
        applicationId defaultConfig.applicationId + ".staging"
        versionName defaultConfig.versionName + "-staging"
    }

    production {
        signingConfig signingConfigs.production
    }
}

You can follow this tutorial for more info

answered May 2, 2016 at 22:59

David's user avatar

DavidDavid

37k32 gold badges120 silver badges141 bronze badges

2

try to uninstall the app with adb:

adb uninstall com.yourpackage

answered Nov 26, 2014 at 20:37

Giuseppe's user avatar

GiuseppeGiuseppe

2,0831 gold badge21 silver badges26 bronze badges

3

While giving this error it will clearly mention the package name of the app because of which the permission was denied. And just uninstalling the application will not solve the problem. In order to solve problem we need to do the following step:

  1. Go to settings
  2. Go to app
  3. Go to downloaded app list
  4. You can see the uninstalled application in the list
  5. Click on the application, go to more option
  6. Click on uninstall for all users options

Problem solved :D

answered Nov 24, 2014 at 13:21

Preethi Rao's user avatar

Preethi RaoPreethi Rao

5,1171 gold badge15 silver badges29 bronze badges

0

Installing an application in OS 5.0 i get this message:

INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.myapp.permission.C2D_MESSAGE pkg=com.myapp

There´s no duplicated packages, and we can solve this issue uninstalling manually the old application or using the adb:

adb uninstall com.yourpackage

answered Jan 27, 2015 at 17:18

Jorgesys's user avatar

JorgesysJorgesys

124k23 gold badges332 silver badges265 bronze badges

None of the above worked for me. My app was working fine in previous than Lollipop. But when I tested it on Lollipop the above error came up. It refused to install. I didn’t have any previous versions installed so all the above solutions are invalid in my case. But thanks to this SO solution now it is running fine. Just like most developers I followed Google’s misleading tutorial and I added the permissions by copy and paste like this:

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission android:name="com.google.android.permission.C2D_MESSAGE" 
            android:protectionLevel="signature" />

This would work with older versions < Lollipop. So now I changed to:

<uses-permission android:name="com.mycompany.myappname.c2dm.permission.RECEIVE" />
<permission android:name="com.mycompany.myappname.permission.C2D_MESSAGE" 
            android:protectionLevel="signature" />

Community's user avatar

answered Jan 4, 2016 at 0:52

The_Martian's user avatar

The_MartianThe_Martian

3,6364 gold badges31 silver badges61 bronze badges

CommonsWare is right, but in my opinion this is a (bug)poor way to say: «The apk installed on the device is signed with a different certificate then the new one you are trying to install».

This is probably a new bug since in the past it used to ask whether or not to uninstall the app from the device due to wrong certificate.

The solution as painful as it may be would be to uninstall the app it manually.

Also what we’ve done for the sake of team development, we added the debug keystore to our repository, and point gradle to use it like so:

android {
    ...
    signingConfigs {
        debug {
            storeFile file("../certificates/debug.keystore")
        }
    }

    ...

    buildTypes {
        debug {
            signingConfig signingConfigs.debug
        }
    }

    ...
}

And now when passing devices between team members, we all use the same debug certificate, so there is no issue. :)

answered Nov 30, 2014 at 9:25

TacB0sS's user avatar

TacB0sSTacB0sS

10.1k12 gold badges73 silver badges118 bronze badges

In Android 5, check your settings -> apps. Instead of deleting for just the active user (since android 5 can have multiple users and my phone had a guest user) tap on the accessory button in the top right corner of the action/toolbar and choose «uninstall for all users». It appears that in Android 5 when you just uninstall from launcher you only uninstall the app for the active user.

The app is still on the device.. This had me dazzled to since I was trying to install a release version, didn’t work so I thought ow right must be because I still have the debug version installed, uninstalled the app. But than still couldn’t install.. First clue was a record in the app list of the uninstalled app with the message next to it that it was uninstalled (image).

Uninstalled app still showing up in apps
Uninstalled for all users

answered Dec 28, 2014 at 11:20

Jordy's user avatar

JordyJordy

1,7641 gold badge22 silver badges32 bronze badges

1

See this link it said that it will work when they are signed by the same key. The release key and the debug key are not the same.

So do it:

buildTypes {
        release {
            minifyEnabled true
            signingConfig signingConfigs.release//signing by the same key
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-android.txt'

        }
        debug {
            applicationIdSuffix ".debug"
            debuggable true
            signingConfig signingConfigs.release//signing by the same key
        }

    }

 signingConfigs {
        release {
            storeFile file("***\key_.jks")
            storePassword "key_***"
            keyAlias "key_***"
            keyPassword "key_"***"
        }


}

answered Oct 20, 2015 at 15:27

NickUnuchek's user avatar

NickUnuchekNickUnuchek

11.4k11 gold badges96 silver badges136 bronze badges

replace below lines:

<permission android:name="com.myapp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.myapp.permission.C2D_MESSAGE" 
android:protectionLevel="signature" /> 

answered Sep 9, 2016 at 4:49

Sỹ Phạm's user avatar

Sỹ PhạmSỹ Phạm

5316 silver badges15 bronze badges

In my case, I had several applications installed having the same domain name in the package name as follows.

com.mypackage.app1
com.mypackage.app2
com.mypackage.app3 
...

I had to uninstall all the apps having similar package names and reinstall them again in order to get rid of the problem.

To find all package names from the device I used the following.

adb shell pm list packages

Then I grabbed the packages that match my package name that I am looking for.

dumpsys | grep -A18 "Package [com.mypackage]"

Then uninstalled all the apps having that domain.

uninstall com.mypackage.app1
uninstall com.mypackage.app2
uninstall com.mypackage.app3
...

You can also uninstall the applications using the Settings app. Go to the Settings -> Apps -> Find the app -> Uninstall

Hope that helps someone having the same problem as me.

answered Feb 18, 2020 at 21:18

Reaz Murshed's user avatar

Reaz MurshedReaz Murshed

23.6k13 gold badges78 silver badges96 bronze badges

Previously it used to say that an app with different signature is found on device. When installing from IDE it would also ask do you want to uninstall it?

But I think from Android 5.0 they have changed the reason for uninstallation. It does not happen if you are installing app with the same signature

answered Nov 25, 2014 at 2:22

Yasir's user avatar

YasirYasir

4531 gold badge6 silver badges15 bronze badges

I encountered the same problem with a nexus 5 Android Lollipop 5.0.1:

Installation error: INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.android.** pkg=com.android.**

And in my case I couldn’t fix this problem uninstalling the app because it was an android app, but I had to change my app custom permissions name in manifest because they were the same as an android app, which I could not uninstall or do any change.

Hope this helps somebody!

answered Dec 23, 2014 at 13:47

Ultimo_m's user avatar

Ultimo_mUltimo_m

4,7044 gold badges37 silver badges60 bronze badges

In my case I received following error

Installation error: INSTALL_FAILED_DUPLICATE_PERMISSION
perm=com.map.permission.MAPS_RECEIVE pkg=com.abc.Firstapp

When I was trying to install the app which have package name com.abc.Secondapp. Here point was that app with package name com.abc.Firstapp was already installed in my application.

I resolved this error by uninstalling the application with package name com.abc.Firstapp and then installing the application with package name com.abc.Secondapp

I hope this will help someone while testing.

answered Oct 6, 2015 at 11:03

Abhinav Singh Maurya's user avatar

In your AndroidManifest.xml file, change your specially declared permissions’ names, for example:

<!-- Creates a custom permission so only this app can receive its messages. NOTE: APP_PACKAGE.permission.C2D_MESSAGE -->   
<permission android:name="com.myapp.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="com.myapp.permission.C2D_MESSAGE" />    
<!-- END GCM -->

to this,

<!-- Creates a custom permission so only this app can receive its messages. NOTE: APP_PACKAGE.permission.C2D_MESSAGE -->   
<permission android:name="com.myapprocks.permission.C2D_MESSAGE"  android:protectionLevel="signature" />
<uses-permission android:name="com.myapprocks.permission.C2D_MESSAGE" />    
<!-- END GCM -->

com.myapprocks this part solves the conflict with your other app.

answered Apr 16, 2016 at 9:04

resw67's user avatar

resw67resw67

1393 silver badges6 bronze badges

In my case I was using a third party library (i.e. vendor) and the library comes with a sample app which I already had install on my device. So that sample app was now conflicting each time I try to install my own app implementing the library. So I just uninstalled the vendor’s sample app and it works afterwards.

answered May 23, 2016 at 20:58

Nouvel Travay's user avatar

Nouvel TravayNouvel Travay

6,27213 gold badges40 silver badges65 bronze badges

I uninstalled previous version. It worked for me.

answered Oct 5, 2018 at 2:47

Sushil Dhayal's user avatar

I restarted my phone after uninstalling the app and it worked

answered Dec 4, 2018 at 10:10

Pedro Martins's user avatar

If you have a different flavour of the app, try uninstalling that first. This helped me when I had the same issue.

answered Feb 24, 2020 at 11:36

olleh's user avatar

olleholleh

1,86518 silver badges21 bronze badges

I had another app using a plugin with this permission authorities.
I uninstalled other apps which use this same package and all worked

answered May 8, 2022 at 23:06

Florian K's user avatar

Florian KFlorian K

1,9931 gold badge8 silver badges21 bronze badges

In my case, I had built my App with one AppID and then wanted to build it with a new AppID and this is when I received the error.

I am using Unity with the OneSignal and FirebaseCommon Android Plugins. These plugins themselves contained the following lines in their manifest files:

<uses-permission android:name="${applicationId}.permission.C2D_MESSAGE"/>
<permission
    android:name="${applicationId}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

I saw that by unzipping their .aar files. It was quite hidden.

I resolved the issue by using the Android Dependency Resolver for Unity and I did a full Force Resolve which in turn changed the manifests with my new AppId (because as you can see the actual permission string is built using a variable).

answered May 5 at 13:28

S0paTa's user avatar

I’m working in my app to read all installed applications to get the «icon» and package name in android 11 I must use android.permission.QUERY_ALL_PACKAGES I don’t want to use
<uses-permissions tag because that mean special requirements for Google Play, my app works with with the following xml tag in the Android Manifest

<permission android:name="android.permission.QUERY_ALL_PACKAGES" />

However apparently other apps are doing the same, and when they try to install my app or sideloading i receive the following message:

Failure [INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.package.myApp attempting to redeclare permission android.permission.QUERY_ALL_PACKAGES already owned by com.package.another_app]

Is any way to solve this issue?
Thanks a lot!

asked Nov 23, 2021 at 12:16

Javier's user avatar

my app works with with the following xml tag in the Android Manifest

You should not getting any extra capabilities with that line. You should only be getting access to those apps based on your <queries> element, plus those that are visible to all apps regardless of package visibility rules.

However apparently other apps are doing the same, and when they try to install my app or sideloading i receive the following message:

The operating system defines that permission, as of Android 11. Apps cannot redefine that permission. Your app probably can be installed on many Android 10 and lower devices. On Android 11, since the OS is «installed» before your app, you will not be able to have that <permission> element, as you will get the error that you cite.

Is any way to solve this issue?

Remove the <permission> element. Either:

  • Request QUERY_ALL_PACKAGES,
  • Use the <queries> element to scope what access you need (see «Hole #1» in this blog post), or
  • Remove the app functionality that requires this level of access, at least on Android 11 and higher devices

answered Nov 23, 2021 at 13:10

CommonsWare's user avatar

CommonsWareCommonsWare

983k189 gold badges2383 silver badges2468 bronze badges

In this blog,
I have shown you when to come this issue and how to resolve it.

When to come

This is issue commonly comes in <5.1 version. Means Lollipop or greater version. And if you use the same permission in manifest then error shows,

INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.app.permission.C2D_MESSAGE pkg=com.app

How to resolve

We will give the example of GCM permission,

You can use the ${applicationId} on the place of packageName in AndroidManifest.xml file.

Replace

<permission

    android:name=«com.demoapp.webkul.permission.C2D_MESSAGE»

    android:protectionLevel=«signature»/>

<uses-permission android:name=«com.demoapp.webkul.permission.C2D_MESSAGE»/>

to

<permission

    android:name=«${applicationId}.permission.C2D_MESSAGE»

    android:protectionLevel=«signature»/>

<uses-permission android:name=«${applicationId}.permission.C2D_MESSAGE»/>

And in receiver’s intent-filter:

replace

<category android:name=«com.demoapp.webkul»/>

to

<category android:name=«${applicationId}»/>

And DUPLICATE_PERMISSION issue will be resolved.

. . .

Мой тестер сказал, что он не может установить приложение из Play Store на свой Nexus 5 (Lollipop). Он сказал, что получил эту ошибку

Unknown error code during application install "-505"

Я взял его телефон и попытался установить приложение через adb, я получил эту ошибку

Failure [INSTALL_FAILED_DUPLICATE_PERMISSION 
        perm=com.example.gcm.permission.C2D_MESSAGE 
        pkg=com.mailchimp.alterego]

После некоторого чтения я наткнулся на это письмо с @Commonsware

http://commonsware.com/blog/2014/08/04/custom-permission-vulnerability-l-developer-preview.html

Очевидно, что и мое приложение, и приложение Mailchimp (которое установлено на моем телефоне тестера) имеют дублированное разрешение, com.example.gcm.permission.C2D_MESSAGE. Затем я проверяю журнал git, чтобы узнать, когда я добавил эту строку в свой AndroidManifest, и обнаружил, что это было, когда я реализую GCM. Тогда я следил за этим учебным пособием

https://developer.android.com/google/gcm/client.html

enter image description here

Я думаю, что и я, и разработчик Mailchimp следуют одному и тому же учебнику, добавили такое же разрешение, и теперь оба наших приложения имеют дублирующее разрешение.

Итак, я удаляю это разрешение с моего AndroidManifest, и теперь я могу установить приложение на свой тестер. Я тестирую сообщение GCM, отправляя пакет на сервер GCM с моего php script, и приложение все еще получало сообщение GCM, как было.

Итак, будет ли другая проблема поднята из-за этого отсутствующего разрешения и в чем смысл этого разрешения? (поскольку без него мое приложение все еще получало сообщение GCM)

Я беспокоюсь, если наше приложение использует плагин/библиотеку, требующую разрешения. Мы не сможем установить наше приложение на Lollipop-устройстве, если есть другое установленное приложение, которое использует одну и ту же библиотеку, не так ли?

— ПРИМЕЧАНИЕ —

Я уже прочитал этот вопрос, мало кто предлагает то же самое, что и я, удалить разрешение. Но никто не говорит о том, что произойдет после того, как мы это сделаем, или почему мы должны добавить его.

INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE

— ИЗМЕНИТЬ 1 —

Я вернулся к учебнику, руководство было правильным, это была неправильная реализация

enter image description here

I (и разработчик Mailchimp) должен добавить разрешение с именем нашего пакета приложений + «.permission.C2D_MESSAGE» вместо копирования и вставки com.example.gcm.permission.C2D_MESSAGE

<permission android:name="com.mycompany.myappname.permission.C2D_MESSAGE" 
            android:protectionLevel="signature" />

Но, это поднимает мне еще один вопрос, учебник сказал, что если мы не добавим это разрешение или имя не будет соответствовать шаблону, приложение не получит сообщение. Но я получил сообщение, когда я тестирую даже когда я удаляю это pemission… странно.

(если вы пришли сюда, прибегая к поиску решения этой ошибки, приведенные ниже ссылки дадут вам ответ, также мой вопрос имеет своего рода объяснение!)

Возможный дубликат

INSTALL_FAILED_DUPLICATE_PERMISSION… C2D_MESSAGE Ошибка -505 INSTALL_FAILED_DUPLICATE_PERMISSION

Подождите!

Я получил эту ошибку сегодня в живом проекте. Пользователь пришел с ошибкой 505, не в состоянии установить приложение. Затем я запустил его в IDE!

  • Если вы загрузите приложение с упомянутой проблемой из магазина Play, вы получите ошибку 505 при попытке установки.
  • Если вы попытаетесь запустить его с помощью вашей IDE, вы получите ошибку, как на картинке выше! (поправьте меня, если я ошибаюсь)

Тогда я искал причины.

Это была моя проблема!

   <permission
        android:name="in.wptrafficanalyzer.locationroutedirectionmapv2.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />
    <uses-permission android:name="in.wptrafficanalyzer.locationroutedirectionmapv2.permission.MAPS_RECEIVE" />

Сюрпризом было то, что приложение другого разработчика на телефоне конкретного пользователя использовало ту же подпись! Черт, эти копировальные пасты встретились сегодня!!

Я думаю, что если я попытаюсь объявить одно и то же разрешение в двух приложениях с одинаковым именем пакета, эта ошибка может произойти (исправьте меня, если я ошибаюсь)

Вот мои 2 вопроса?

1. Должны ли они быть с одинаковым разрешением? в любом случае они получат эту вещь, когда она такая же. Допустим, приложение A пользователей с именем pkg.name с разрешения permission.RECEIVE приложение B использует тот же пакет с другим разрешением CONFIGURE_SIP. Может ли это произойти, когда они встречаются?(Кажется глупым вопросом, но я хочу подтвердить, что у другого приложения, которое было на мобильном телефоне клиента, было то же самое!)

2. Каковы / могут быть какие-либо другие возможности возникновения этой ошибки?

  1. Приложение определяет пользовательское разрешение, используя уровень безопасности подписи
  2. Вы пытаетесь обновить установленное приложение с версией, подписанной с другим ключом
  3. Тестовое устройство работает под управлением Android 21 или более поздней версии с поддержкой нескольких пользователей.

Получил те 1 2 3 из этого поста! Они правда? Если да, то какое-либо хорошее объяснение о них будет хорошим или какая-либо дополнительная причина этой ошибки?

В упомянутых постах много хороших ответов! Не спрашиваю, как это исправить! Но как это генерируется! Также, если я упомянул / понял что-то не так, пожалуйста, запишите это!!

Спасибо.


Изменить: как я уже упоминал, пожалуйста, обратите внимание, что проблема возникла из приложения, которое уже находится в Play Store. А про другое приложение я понятия не имею! Он есть в мобильном телефоне клиента. Вероятно, он также из магазина игр, потому что даже опции разработчика не были активированы, пока я не попытался запустить на этом мобильном телефоне. У него также не было никаких предыдущих приложений от моей компании. Он просто пытался загрузить приложение, полученное Ошибка 505 и пришел, чтобы исправить это.

Кроме того, моим первым вариантом было удаление этого разрешения и успешная установка приложения (не то, что нужно, но чтобы подтвердить, где была проблема). Вот почему мне нужно знать возможности этой ошибки!

Возможно, вам также будет интересно:

  • Install black cartridge hp ошибка
  • Instagram ошибка при создании аккаунта
  • Instagram ошибка подождите несколько минут прежде чем пытаться снова
  • Instagram ошибка не удалось выполнить ваш запрос попробуйте еще раз позже
  • Instagram неизвестная ошибка сети при входе xiaomi

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии