xXJohnRamboXx
xXJohnRamboXx

Reputation: 739

Android lollipop error code -505 during installation app

I have a nexus 9 with android lollipop but I get the error code -505 trying to install some apps from the Play Store.

These apps are:

Other apps works install fine but these games don't.

Can you tell me what this error code means? Can you suggest to me how I can fix it?

Upvotes: 6

Views: 25618

Answers (5)

ViliusK
ViliusK

Reputation: 11555

I also had this issue. I was releasing Sandbox and Production (different Android Flavors) apps with different package names, but same GCM permissions.

I started using ${packageName} in AndroidManifest.xml file.

I changed from

<!-- GCM specific permissions -->
<permission
    android:name="com.playgong.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

<uses-permission android:name="com.playgong.permission.C2D_MESSAGE"/>

to

<!-- GCM specific permissions -->
<permission
    android:name="${packageName}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

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

And in receiver's intent-filter from:

<category android:name="com.playgong"/>

to:

<category android:name="${packageName}"/>

Upvotes: 7

JanCor
JanCor

Reputation: 605

You should be able to install the App again if you follow the answers on this post about uninstalling Apps for all users on Android 5.0 Lollipop:

INSTALL_FAILED_DUPLICATE_PERMISSION... C2D_MESSAGE

Upvotes: 2

Lovis
Lovis

Reputation: 10047

Let me guess - you your apps were made with adobe air?

It's a bug google introduced with lollipop. Its related to the SHA1 generation from some certificates.

See:

There is basically no solution except to wait for google to fix it or re-sign your app with a different key. But then you can't update it in the play store either.

If the app was installed on your device before the lollipop update, but is now gone, a workaround might be to uninstall the app using adb uninstall and then install it again.

update: As far as I know this is partially fixed in Android 5.0.1 and completely fixed in 5.0.2

Upvotes: 8

Ruchit Shah
Ruchit Shah

Reputation: 367

I must say if you have more accounts in lollipop you must once uninstall from all user. Means go to settings - app - in your app on settings icon delete from all user is an option click on that an install again.

Upvotes: 5

Loogie
Loogie

Reputation: 11

I received this error when attempting to install Pure Calendar widget. Logcat showed that my GTasks app already had permission to read tasks. Apparently under 5.0 there can be only one. I uninstalled GTasks and Pure Calendar widget installed fine. I the attempted to reinstall GTasks and got the same error with similar results in logcat. Apparently Google has made it so only one app can have a specific permission. This will be VERY limiting if they don't fix it.

Upvotes: 1

Related Questions