Error 505 when installing Google Play App on Lollipop

1

I'm a developer and I'm having trouble installing an app in the Lollipop version.

I have researched and believe that it is a packages error, ie there are two Apps calling the same package (but I'm not sure), this is part of my code. Both app has the same permission: android:name="br.exemplogcm.permission.C2D_MESSAGE .

<permission
    android:name="br.exemplogcm.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />
<uses-permission android:name="br.exemplogcm.permission.C2D_MESSAGE" />

I have two apps, and both use the br.examplegcm package. Is this what is making a mistake? I do not have the Lollipop version, so it's difficult to do tests.

    
asked by anonymous 17.04.2015 / 15:00

1 answer

3

In fact, you can not have two applications that require the same signed permission.

You can check your Logcat with the following error when trying to install the application if you have the opportunity to test on a device with Lollipop :

  

Error -505 while installing:   INSTALL_FAILED_DUPLICATE_PERMISSION: Package attempting to   redeclare permission .permission.C2D_MESSAGE already owned by ...

    
17.04.2015 / 15:35