Export to GitHub

android-developer-preview - issue #1668

Unknown error code during application install: 505


Posted on Oct 20, 2014 by Happy Panda
* Which Android build are you using?

LPX13D

* What device are you using? Nexus 5

* What steps will reproduce the problem?

- Try to install an app (this case, Amazon) from the PlayStore; - After completing the download, the "Installing" word shows. A couple of seconds later, a 505 error message appears.

* How frequently does the issue occur?

100% of the time (on either WiFi or network connection)

A similar issue was reported here: https://code.google.com/p/android/issues/detail?id=77808

Comment #1

Posted on Oct 21, 2014 by Happy Giraffe

I get this same "Unknown error code during application install: 505" when trying to install the Google+ app.

Build LPX13D

Nexus 5

100% reproduction: WiFi connection, LTE connection, even sideloading APK file

Download gets to 20.24MB (69%) downloaded, then jumps right to "Installing", then it fails

Attachments

Comment #2

Posted on Oct 21, 2014 by Happy Panda

Thank you for reporting this issue. For us to be able to investigate this issue it would be helpful if you could provide the following additional information:

logcat output See http://developer.android.com/tools/help/logcat.html. Copy and paste relevant sections of the logcat output into this issue.

Android bug report After reproducing the issue, press the volume up, volume down, and power buttons simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach this file to this issue.

Alternate method: After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.

Claudio

Comment #3

Posted on Oct 22, 2014 by Quick Rhino

Nexus 7 (2013):

Got an unknown error during the install of the second app from two app set {LinkedIn, LinkedIn Pulse}, no matter the order:

"Unknown error code during application install: 505"

This error was coded -112 on the first Android L Developer Preview version. https://code.google.com/p/android/issues/detail?id=72553

Comment #4

Posted on Oct 22, 2014 by Massive Rabbit

logcat tells me there's a conflict with redeclaring permissions during installation (in my case, Amazon is trying to redeclare getui.permission.GetuiService, which is already owned by Camera 360). I've attached the lines that echo from the installation process.

I can't attach the bug report. It's 12.6MB and I get an error when trying to attach. Still, I captured it right after I hit the OK button on the error message, to make sure the process had completed. It's the same one that Zephyr posted above. Let me know if you still need it and how I should send that to you. I can put on a public folder on my Google Drive and post the link here.

Btw, I was also seeing another code on the LPV79. I can't be certain what was the code, but 112 does ring a bell, as bong mentioned above.

Attachments

Comment #5

Posted on Oct 22, 2014 by Happy Panda

Hi Eric,

Please provide us a link to your Google Drive so we can retrieve the bug report.

Claudio

Comment #6

Posted on Oct 22, 2014 by Massive Rabbit

Here it is: https://drive.google.com/folderview?id=0By7FUWRarkoJQVBwUU1IRUs0UUk&usp=sharing

Comment #7

Posted on Oct 22, 2014 by Happy Panda

Thank you for reporting this issue. We have passed this on to the development team and will update this issue with more information as it becomes available.

Comment #8

Posted on Oct 24, 2014 by Massive Bird

I've received a "-505" install error with the WeChat app on Android Lollipop LPX13D as of fresh preview install Oct 22 on my Nexus 5 32G.

The WeChat app was installed automatically upon phone setup because I was using it on KitKat. I uninstalled the app, answered Yes to delete associated media files, and tried reinstalling. This is when the problem occurred. I cannot install it any longer.

I've tried restarting the phone.

Other info: My phone was rooted to install the preview using Flashify and SuperSU tools.

The WeChat app is https://play.google.com/store/apps/details?id=com.tencent.mm

Comment #9

Posted on Oct 24, 2014 by Massive Bird

In addition to my comment above, this post contains the exact information I used and a link to the Lollipop image. http://drippler.com/drip/install-android-50-dev-preview-without-computer-nexus-5

To clarify the "-505" error I get it every time I try to install the WeChat app mentioned above.

Thanks, --John

Comment #10

Posted on Oct 24, 2014 by Happy Lion

I have run across the following scenario:

We have two applications, A and B.

Application A declares permission "com.me.permission.WHATEVER". Application B uses this permission.

If I install A after B, on Android 1.0 to 4.x, the permission request will be ignored (because unknown) and B will never be able to use the permission (until A is reinstalled or updated).

Currently, on Android 1.0 to 4.x, the only way to do it is to FORCE the declaration of the permission "com.me.permission.WHATEVER" in B. A lot of apps works like this (Pure calendar widget to access tasks from MyPhoneExplorer for example).

But in Android L, it doesn't work anymore... and we get the permission install error. Please, fix this or provide a solution for all Android versions.

Comment #11

Posted on Oct 25, 2014 by Helpful Rhino

I have exactly the same issue as John. I cant installthe Wechat app on Andriod L Preview on my Nexus 5.

I am getting the same -505 error..

Thanks Vic

Comment #12

Posted on Oct 25, 2014 by Helpful Rhino

Just reproduced the error and uploaded the bug report to Google drive

https://drive.google.com/folderview?id=0Bx-mLoU7fn4Eb2lCZ1NRY3BoWVk&usp=sharing

10-25 08:06:37.805 749 824 W PackageManager: Package com.tencent.mm attempting to redeclare permission com.google.android.c2dm.permission.SEND already owned by com.google.android.gsf 10-25 08:06:37.843 749 5764 I ActivityManager: Killing 5414:com.ebay.mobile/u0a98 (adj 15): empty #17 10-25 08:06:37.923 749 824 I art : Explicit concurrent mark sweep GC freed 249786(10MB) AllocSpace objects, 3(854KB) LOS objects, 33% free, 31MB/47MB, paused 924us total 80.572ms 10-25 08:06:37.926 4812 4812 D Finsky : [1] PackageInstallerImpl.cancelSession: Canceling session 121130466 for com.tencent.mm 10-25 08:06:37.926 4812 4812 E Finsky : [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing com.tencent.mm: INSTALL_FAILED_DUPLICATE_PERMISSION: Package com.tencent.mm attempting to redeclare permission com.google.android.c2dm.permission.SEND already owned by com.google.android.gsf 10-25 08:06:37.926 4812 4812 W Finsky : [1] 4.installFailed: Install failure of com.tencent.mm: -505 null 10-25 08:06:37.933 749 749 D ZenLog : intercepted: 0|com.android.vending|-973170826|null|10017,!priority 10-25 08:06:37.933 749 749 V NotificationService: pkg=com.android.vending canInterrupt=false intercept=true 10-25 08:06:37.964 4812 4812 D Finsky : [1] InstallerTask.cancelCleanup: Cancel running installation of com.tencent.mm

Thanks, Vic

Comment #13

Posted on Oct 28, 2014 by Swift Kangaroo

Comment deleted

Comment #14

Posted on Oct 28, 2014 by Swift Kangaroo

Same error for "GYG Mexican Taqueria" app on build LPX13D

Comment #15

Posted on Oct 29, 2014 by Happy Giraffe

Latest WeChat released on 28OCT resolved the issue. No more -505 during installation.

Comment #16

Posted on Nov 8, 2014 by Happy Elephant

Build LPX21M

Nexus 5

Upgrade L from KitKat but failed for the first time. Downgrade back to KitKat then upgrade to L again which worked. When installing Alipay app showed the same message.

Comment #17

Posted on Nov 13, 2014 by Quick Horse

Can't install the WeMo app on the official release for Nexus 7. Now our lights and outlets are uncontrollable from the tablet. Afraid to attempt to update the Nexus 5's.

-505 error on the installation...

Comment #18

Posted on Nov 13, 2014 by Happy Horse

I had the app Bonza Word Puzzle installed on my Nexus 5. On upgrading to Android 5.0 today, Bonza was uninstalled (no error message or even a notification). On trying to reinstall, I get error -505.

Comment #19

Posted on Nov 14, 2014 by Happy Kangaroo

Same issue on Nexus 7 razor model on Android 5.0. Can't install Atom Launcher.

Comment #20

Posted on Nov 14, 2014 by Massive Rabbit

Installing Themer app fails with error code -505. Other apps so far installed fine. LG G3, unofficial Android 5.0 (V20a-EUR-XX) Issue appears with both wifi and 3g connection.

Comment #21

Posted on Nov 14, 2014 by Helpful Ox

Same problem here. Nexus 5 trying to Install Compañero Mio app but error 505 appears.

Comment #22

Posted on Nov 14, 2014 by Helpful Ox

Hey guys, I've found the issue with "INSTALL_FAILED_DUPLICATE_PERMISSION". If you have Android 5.0 and multi user enabled, check if you have the app that is causing problems in your "Guest" account and uninstall it. Then go back to your main user and try installing the app again. It worked for me! Hope Google fix this with multiple accounts.

Comment #23

Posted on Nov 14, 2014 by Happy Horse

Comment #22 : I have never used Guest (phone updated only yesterday). I double-checked now, and the apps are not installed there. So you must have been just lucky.

Could it be anything to do with an app not being ready for 5.0, for example it works on Dalvik but not on ART?

Comment #24

Posted on Nov 14, 2014 by Quick Horse

I thought about Dalvik too. I swapped form Dalvik to ART on Kitkat, and the apps installed fine. So, something else is wrong.

Comment #25

Posted on Nov 15, 2014 by Grumpy Rhino

Same error when trying to install the latest update of Plex Pass on a Nexus 5 running 5.0.

Comment #26

Posted on Nov 15, 2014 by Happy Dog

I was able to install latest Plex Pass on Nexus 5 with no problems or work aroundsl. Only app that I've had this error with so far on 5.0 is WEMO.

On Fri, Nov 14, 2014, 22:07 null wrote:

Comment #27

Posted on Nov 15, 2014 by Quick Horse

This truly seems to be an Android issue or Nexus issue versus specific apps. But, I've reported this to Wemo support on Play and recommend to everyone to do the same for their issues.

I tried ART on Nexus 7 and 5 with Kitkat. Everything works and installs just fine. Lollipop is the problem I think.

Comment #28

Posted on Nov 15, 2014 by Helpful Lion

Same foor voor game empires here. Nexus 5 updates tot Android 5

Comment #29

Posted on Nov 15, 2014 by Happy Elephant

I'm getting the same issue with Belkin's WeMo app but a slightly different permission: redeclaration of com.google.android.c2dm.permission.RECEIVE. In my case, installing the Lollipop factory image wiped my phone, and the backup service restored the sister app (NetCam) but failed to restore WeMo. No other users are setup on the phone, those the Guest user is available. (Haven't figured out how to turn that off.) Nexus 5 (32gb) Android 5.0 Build LRX210.

Comment #30

Posted on Nov 15, 2014 by Happy Elephant

Same error Themer on Nexus 4 running official Lollypop.

Comment #31

Posted on Nov 15, 2014 by Swift Horse

This is because you have other apps that request the same third-party permissions with a different signature. Say I have com.android.launcher installed which request com.android.launcher.permission.WRITE_SETTINGS. When I try to install com.tudou.android.apk which also request this permission, I will get Failure [INSTALL_FAILED_DUPLICATE_PERMISSION perm=com.android.launcher.permission.WRITE_SETTINGS pkg=com.android.launcher]

But if I have both of the apk re-signed, I would able to install both of them

Comment #32

Posted on Nov 15, 2014 by Quick Horse

Here's logcat from the failed WeMo installation.

Sideload: D/TaskPersister( 467): removeObsoleteFile: deleting file=41_task_thumbnail.png I/ActivityManager( 467): START u0 {dat=/storage/emulated/0/Download/com.belkin.wemoandroid_24_www.APKdler.com_.apk cmp=com.estrongs.android.pop/.app.ShowDialogActivity (has extras)} from uid 10089 on display 0 W/ResourceType( 2438): No package identifier when getting value for resource number 0x00000000 I/art ( 467): Background sticky concurrent mark sweep GC freed 28088(1468KB) AllocSpace objects, 18(5MB) LOS objects, 20% free, 24MB/31MB, paused 1.883ms total 153.195ms I/ActivityManager( 467): Displayed com.estrongs.android.pop/.app.ShowDialogActivity: +182ms I/ActivityManager( 467): START u0 {cmp=com.estrongs.android.pop/.app.OpenRecomm (has extras)} from uid 10089 on display 0 W/ResourceType( 2438): No package identifier when getting value for resource number 0x00000000 W/PackageManager( 2438): Failure retrieving resources for com.android.packageinstaller: Resource ID #0x0 W/ResourceType( 2438): No package identifier when getting value for resource number 0x00000000 W/PackageManager( 2438): Failure retrieving resources for com.android.packageinstaller: Resource ID #0x0 I/ActivityManager( 467): START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/com.belkin.wemoandroid_24_www.APKdler.com_.apk typ=application/vnd.android.package-archive cmp=com.android.packageinstaller/.PackageInstallerActivity} from uid 10089 on display 0 I/AppSecurityPermissions( 3448): Ignoring unknown permission:com.google.android.c2dm.permission.C2D_MESSAGE I/ActivityManager( 467): Displayed com.android.packageinstaller/.PackageInstallerActivity: +325ms (total +368ms) I/ActivityManager( 467): START u0 {dat=file:///storage/emulated/0/Download/com.belkin.wemoandroid_24_www.APKdler.com_.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras)} from uid 10062 on display 0 D/Finsky ( 1553): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4 D/Finsky ( 1553): [1] WorkerTask.onPreExecute: Verification Requested for id = 4, data=file:///storage/emulated/0/Download/com.belkin.wemoandroid_24_www.APKdler.com_.apk flags=16 fromVerificationActivity=false I/ActivityManager( 467): Displayed com.android.packageinstaller/.InstallAppProgress: +323ms E/WifiStateMachine( 467): WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=2.74 rxSuccessRate=2.98 targetRoamBSSID=94:10:3e:04:85:52 RSSI=-40 E/WifiStateMachine( 467): WifiStateMachine starting scan for "dgaptwifi"WPA_PSK with 2437 I/wpa_supplicant( 604): wlan0: CTRL-EVENT-SCAN-STARTED I/qtaguid ( 1553): Failed write_ctrl(u 57) res=-1 errno=22 I/qtaguid ( 1553): Untagging socket 57 failed errno=-22 W/NetworkManagementSocketTagger( 1553): untagSocket(57) failed with errno -22 D/Finsky ( 1553): [1] 2.onResponse: Verification id=4 response=0 D/Finsky ( 1553): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4 D/DefContainer( 2627): Copying /storage/emulated/0/Download/com.belkin.wemoandroid_24_www.APKdler.com_.apk to base.apk W/PackageManager( 467): Package com.belkin.wemoandroid attempting to redeclare permission com.google.android.c2dm.permission.RECEIVE already owned by com.google.android.gsf I/art ( 2438): Background sticky concurrent mark sweep GC freed 58179(2MB) AllocSpace objects, 16(354KB) LOS objects, 16% free, 11MB/13MB, paused 2.368ms total 154.242ms I/art ( 467): Background partial concurrent mark sweep GC freed 99531(4MB) AllocSpace objects, 27(4MB) LOS objects, 33% free, 23MB/34MB, paused 2.170ms total 317.169ms I/art ( 467): WaitForGcToComplete blocked for 222.232ms for cause Explicit I/art ( 467): Explicit concurrent mark sweep GC freed 25659(1208KB) AllocSpace objects, 4(261KB) LOS objects, 33% free, 21MB/32MB, paused 1.861ms total 197.718ms D/InstallAppProgress( 3448): Installation error code: -112 I/InstallAppProgress( 3448): Finished installing com.belkin.wemoandroid D/OpenGLRenderer( 3448): endAllStagingAnimators on 0x5ef05468 (RippleDrawable) with handle 0x5f359710

Play Store: D/Finsky ( 1553): [1] DownloadQueueImpl.notifyProgress: com.belkin.wemoandroid: onProgress 0/-1 Status: 192. D/DownloadManager( 607): [164] Starting D/DownloadManager( 607): [164] Finished with status SUCCESS D/Finsky ( 1553): [1] DownloadBroadcastReceiver.onReceive: Intent received at DownloadBroadcastReceiver D/Finsky ( 1553): [1] DownloadQueueImpl.notifyProgress: com.belkin.wemoandroid: onProgress 21128742/21128742 Status: 200. D/Finsky ( 1553): [1] DownloadImpl.setState: com.belkin.wemoandroid from DOWNLOADING to SUCCESS. D/Finsky ( 1553): [1] DownloadQueueImpl.onComplete: com.belkin.wemoandroid: onComplete D/Finsky ( 1553): [1] DownloadQueueImpl.remove: Download com.belkin.wemoandroid removed from DownloadQueue I/installd( 136): free_cache(0) avail 4043370496 D/Finsky ( 1553): [1] InstallerTask.startInstallingGzippedApk: Prepare to unzip com.belkin.wemoandroid from content://downloads/my_downloads/164 D/Finsky ( 1553): [1] 9.onPostExecute: Successfully unpacked gzipped APK to update com.belkin.wemoandroid D/Finsky ( 1553): [1] FastHtmlParser.fromHtml: Doing slow HTML parse due to unexpected tag

Comment #33

Posted on Nov 15, 2014 by Happy Rhino

I am using a nexus 7 and after the system update a game uninstalled and now can't be reinstalled as it says error 505

Comment #34

Posted on Nov 16, 2014 by Happy Kangaroo

save problem with nexus5 in official llolipop

Comment #35

Posted on Nov 16, 2014 by Happy Kangaroo

Comment deleted

Comment #36

Posted on Nov 17, 2014 by Happy Wombat

Hello,

I have the exact same issue with an AIR application : https://play.google.com/store/apps/details?id=air.ugc.fr.ugcdirect&hl=fr_FR

I used to have it before the update, it was removed after the update to lollipop and I can't install it anymore.

Here is the logcat :

W/PackageManager( 715): Package air.ugc.fr.ugcdirect attempting to redeclare permission air.ugc.fr.ugcdirect.permission.C2D_MESSAGE already owned by air.ugc.fr.ugcdirect I/art ( 715): Explicit concurrent mark sweep GC freed 124135(6MB) AllocSpace objects, 23(957KB) LOS objects, 23% free, 51MB/67MB, paused 1.037ms total 96.010ms E/Finsky ( 1033): [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing air.ugc.fr.ugcdirect: INSTALL_FAILED_DUPLICATE_PERMISSION: Package air.ugc.fr.ugcdirect attempting to redeclare permission air.ugc.fr.ugcdirect.permission.C2D_MESSAGE already owned by air.ugc.fr.ugcdirect W/Finsky ( 1033): [1] 4.installFailed: Install failure of air.ugc.fr.ugcdirect: -505 null D/Finsky ( 1033): [1] InstallerTask.cancelCleanup: Cancel running installation of air.ugc.fr.ugcdirect

By the way, I can see that the application is not installed on my device using the adb command :

adb shell pm list packages | grep ugc => empty

While there are two permissions left :

adb shell pm list permissions | grep ugc =>

permission:air.ugc.fr.ugcdirect.permission.MAPS_RECEIVE permission:air.ugc.fr.ugcdirect.permission.C2D_MESSAGE

I guess something went wrong during the update process. Maybe because it's an Adobe Air application ?

Anyway, I tryed to revoke permissions using adb but with no success, I don't find the right command...

Hope this help.

Comment #37

Posted on Nov 17, 2014 by Happy Horse

Same problem occurred on my Nexus 5 which flashed the release version of Android L

Comment #38

Posted on Nov 17, 2014 by Helpful Horse

In our case, we were building an app based on our Library using Google Maps V2. The v2.API_KEY was assigned to the apps namespace. We assigned the MAPS_RECEIVE to our libraries namespace. This worked fine before L and was one less thing for our builders to worry about. Now we realize that we probably should have been assigning the permission & uses-permission name to the apps namespace. With the permissions pointing at our library name space, we get the "-505" when installing more than one of our apps.

Comment #39

Posted on Nov 17, 2014 by Grumpy Panda

I am using a Nexus 7. After installing a system update the game "bingo blitz", was uninstalled. After trying to install it again I get the message saying, " unknown error code during application install:(-505). What can I do to fix this?

Comment #40

Posted on Nov 17, 2014 by Helpful Horse

Comment deleted

Comment #41

Posted on Nov 17, 2014 by Quick Horse

Well my problem is a conflict with Google Services Framework. I can't just uninstall that....

Comment #42

Posted on Nov 17, 2014 by Swift Giraffe

I have just upgraded my Nexus 7 with Lollipop update.

Two of my applications are now missing, shortcut just says that app is uninstalled. I can't see it in app list. When I'm trying to reinstall it from play it gives me that -505 error.

I'm not even sure if I have lost app data for those apps which would make me really sad.

Apps are: https://play.google.com/store/apps/details?id=air.mFiszki.niemiecki.slownictwo.A1 https://play.google.com/store/apps/details?id=air.mFiszki.niemiecki.slownictwo.A2

Logcat:

D/Finsky ( 2826): [1] DownloadImpl.setState: air.mFiszki.niemiecki.slownictwo.A1 from DOWNLOADING to SUCCESS.

D/Finsky ( 2826): [1] DownloadQueueImpl.onComplete: air.mFiszki.niemiecki.slownictwo.A1: onComplete

D/Finsky ( 2826): [1] DownloadQueueImpl.remove: Download air.mFiszki.niemiecki.slownictwo.A1 removed from DownloadQueue

I/installd( 185): free_cache(0) avail 1240416256

I/installd( 185): free_cache(36153458) avail 1240416256

D/ConnectivityService( 540): updateNetworkScore for NetworkAgentInfo [WIFI () - 100] to 56

D/ConnectivityService( 540): rematching NetworkAgentInfo [WIFI () - 100]

D/ConnectivityService( 540): Network NetworkAgentInfo [WIFI () - 100] was already satisfying request 1. No change.

D/ConnectivityService( 540): notifyType AVAILABLE for NetworkAgentInfo [WIFI () - 100]

D/ConnectivityManager.CallbackHandler( 620): CM callback handler got msg 524290

D/Finsky ( 2826): [1] 1.onPostExecute: Committing session 1600990643 for air.mFiszki.niemiecki.slownictwo.A1

D/Finsky ( 2826): [1] 4.installBeginning: Begin install of air.mFiszki.niemiecki.slownictwo.A1

D/Finsky ( 2826): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4

D/Finsky ( 2826): [1] WorkerTask.onPreExecute: Verification Requested for id = 4, data=file:///data/app/vmdl1600990643.tmp flags=18 fromVerificationActivity=false

D/Finsky ( 2826): [325] PackageVerificationService.getPackageInfo: Cannot read archive for file:///data/app/vmdl1600990643.tmp in request id=4

D/PackageManager( 540): /data/app/vmdl1600990643.tmp already staged; skipping copy

D/Finsky ( 2826): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 4

D/PackageManager( 540): Renaming /data/app/vmdl1600990643.tmp to /data/app/air.mFiszki.niemiecki.slownictwo.A1-1

I/PackageManager( 540): Package air.mFiszki.niemiecki.slownictwo.A1 codePath changed from /data/app/air.mFiszki.niemiecki.slownictwo.A1-1.apk to /data/app/air.mFiszki.niemiecki.slownictwo.A1-1; Retaining data and using new

E/installd( 185): Couldn't opendir /data/data/air.mFiszki.niemiecki.slownictwo.A1: No such file or directory

W/PackageManager( 540): Package couldn't be installed in /data/app/air.mFiszki.niemiecki.slownictwo.A1-1

W/PackageManager( 540): com.android.server.pm.PackageManagerException: Package air.mFiszki.niemiecki.slownictwo.A1 signatures do not match the previously installed version; ignoring!

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.verifySignaturesLP(PackageManagerService.java:4426)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:5388)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5160)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:9987)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:10495)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService.access$2300(PackageManagerService.java:231)

W/PackageManager( 540): at com.android.server.pm.PackageManagerService$6.run(PackageManagerService.java:8441)

W/PackageManager( 540): at android.os.Handler.handleCallback(Handler.java:739)

W/PackageManager( 540): at android.os.Handler.dispatchMessage(Handler.java:95)

W/PackageManager( 540): at android.os.Looper.loop(Looper.java:135)

W/PackageManager( 540): at android.os.HandlerThread.run(HandlerThread.java:61)

W/PackageManager( 540): at com.android.server.ServiceThread.run(ServiceThread.java:46)

I/art ( 540): Explicit concurrent mark sweep GC freed 32176(1740KB) AllocSpace objects, 10(136KB) LOS objects, 33% free, 30MB/45MB, paused 1.922ms total 101.318ms

D/Finsky ( 2826): [1] PackageInstallerImpl.cancelSession: Canceling session 1600990643 for air.mFiszki.niemiecki.slownictwo.A1

E/Finsky ( 2826): [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing air.mFiszki.niemiecki.slownictwo.A1: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package couldn't be installed in /data/app/air.mFiszki.niemiecki.slownictwo.A1-1: Package air.mFiszki.niemiecki.slownictwo.A1 signatures do not match the previously installed version; ignoring!

W/Finsky ( 2826): [1] 4.installFailed: Install failure of air.mFiszki.niemiecki.slownictwo.A1: -505 null

D/Finsky ( 2826): [1] InstallerTask.cancelCleanup: Cancel running installation of air.mFiszki.niemiecki.slownictwo.A1

Comment #43

Posted on Nov 18, 2014 by Massive Rabbit

I was having this same issue with the Amazon app when I first reported it. All of a sudden, it worked. They probably updated the app in some way. I'm still on dev preview. If you had this problem in the past, try again and see if it works. Maybe the dev updated the app and the problem went away. Again, maybe.

Comment #44

Posted on Nov 18, 2014 by Happy Cat

I am getting this error 505 after unsuccessfull install of one Adobe AIR app. The app was silently removed during the system update. Build: LRX21O (OTA) on Nexus 5.

Comment #45

Posted on Nov 18, 2014 by Happy Horse

The developers of Bonza (one of the affected apps) have been investigating this problem. They have discovered what is going on. In summary:

° Google says that it is a known issue for apps running Adobe Air on Android 5.0. ° Google is working with Adobe to fix the issue, but there is no time scale. ° If the app was silently removed during the upgrade to Android 5.0, in fact it wasn't removed — it has just become invisible. ° It will probably (not definitely) work if you uninstall the app, which you have to do via ADB (for those sufficiently technically savvy), and then reinstall from the Play Store. However, I don't know if this means that you'll lose all your settings and data for the app.

It's upsetting that Google wouldn't tell us any of this, isn't it?

Well done and thank you to the Bonza developers for the effort that they've taken! Let's hope that Adobe fixes this problem soon.

Comment #46

Posted on Nov 18, 2014 by Happy Wombat

@PaddyLandau : It worked! I uninstalled air.ugc.fr.ugcdirect using adb, I then installed it without a trouble on the store...

The problem is clearly with air apps.

Comment #47

Posted on Nov 18, 2014 by Swift Hippo
  1. Install app: https://play.google.com/store/apps/details?id=com.funtrigger.appinstaller&hl=pl and launch it.
  2. Select your bugged app from list and uninstall.
  3. Now you should install your app in proper way.

Comment #48

Posted on Nov 18, 2014 by Happy Horse

46: Thanks, that's good to know.

47: Thanks, but AppInstaller doesn't find the app in question. :(

Comment #49

Posted on Nov 18, 2014 by Massive Panda

We have issue with our Apps where package name begins with air.. (Apps are not Adobe Air anymore)

Lollipop OTA update kills those apps and leaves a bit of trash about previous installation, preventing Apps from being installed.

Solution is to use Appinstaller to uninstall App. https://play.google.com/store/apps/details?id=com.funtrigger.appinstaller and reinstall.

Comment #50

Posted on Nov 18, 2014 by Happy Panda

I have the same problem with a game (Emperor Four Kingdoms).

Someone knows if app data are lost forever?? :`(

Comment #51

Posted on Nov 18, 2014 by Happy Panda

Added package name:

https://play.google.com/store/apps/details?id=air.com.goodgamestudios.empirefourkingdoms

.. and you are in right, starts with air.com.

Comment #52

Posted on Nov 18, 2014 by Happy Horse

49, #50, #51: See comments #45, #46, #47, #48.

Comment #53

Posted on Nov 18, 2014 by Swift Elephant

Nexus 5 / OTA LRX210 - After uninstalling Chronus and then trying to re-install it through Play store I too got the 505 error. Looking at the logs it referenced INSTALL_FAILED_DUPLICATE_PERMISSION with DashClock. After uninstalling DashClock, Chronus installed. Now can't install DashClock, but don't need both for now:)

Comment #54

Posted on Nov 18, 2014 by Happy Panda

52, If I use Carbon (Helium Backup), is it possible to recover app data??

Comment #55

Posted on Nov 18, 2014 by Massive Rhino

Same error shows up for me while trying to install 'Gallery KitKat:Nexus Gallery' app. Originally I tried to install this app since after the Upgrade to Lollipop my Gallery app was uninstalled and I don't like the Google Photos app. I did some research and seems this error has to do with duplicate permissions and/or duplicate apps. I have tried to look for the original Gallery app in my phone (because it seems that the upgrade does not delete the app just makes it invisible) to delete it but i have not been able to do it (used file manager apps and install apps without any luck).

Comment #56

Posted on Nov 18, 2014 by Happy Kangaroo

The same problem happened to me when trying to download the DashCommand app!

Comment #57

Posted on Nov 18, 2014 by Massive Giraffe

Happy Farm game disappeared, when I tried to reinstall it gave me error 505. And now the play store has stopped working. Keeps giving connection error. My connection is working fine, checked it with other apps

Comment #58

Posted on Nov 18, 2014 by Happy Panda

Someone can probe to create an adb backup of the missed app?? thx

Comment #59

Posted on Nov 18, 2014 by Grumpy Wombat

Had the same problem with one app after 5.0 upgrade. I could not start the app afterwards, reinstallation was not possible due to error -505.

Workaround if you dont want to wait for the app developer (you need adb):

1.) Although the app is not installed, there are still some permissions left anywhere in android. But you can run adb uninstall to uninstall the leftover permissions 2.) Reinstall the app through play store 3.) Profit

Comment #60

Posted on Nov 18, 2014 by Swift Giraffe

I have tried uninstalling with adb using:

adb shell pm uninstall -k air.mFiszki.niemiecki.slownictwo.A1

It uninstalled successfully but then installing from play again fails just as it did in #42. I want to keep my data so I'm not going to try removing "-k" :-(

Any other ideas?

Any update on that google? Will this make into 5.0.1?

Comment #61

Posted on Nov 18, 2014 by Helpful Wombat

(No comment was entered for this change.)

Comment #62

Posted on May 28, 2015 by Helpful Wombat

(No comment was entered for this change.)

Status: PreviousRelease

Labels:
Type-Defect defect-18086422 Restrict-AddIssueComment-Commit