Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android app cannot update from market, after shareduserid added

I added shareduserid to my apps, when trying to update app from google play store I get -504 error.Device log is below. Manifest file is correct and when install from android studio or adb there is no problem but can not update from market. Any ideas?

Copying /data/data/io.crash.air/files/com.xxx.xxx_36fcadf21b0a4ef18ff35b90608b3b1c.apk to base.apk
D/PackageManager(  645): Renaming /data/app/vmdl1037256928.tmp to /data/app/com.xxx.xxx-2
I/ActivityManager(  645): Force stopping com.xxx.xxx appid=10271 user=-1: uninstall pkg
I/PackageManager(  645): Package com.xxx.xxx codePath changed from /data/app/com.xxx.xxx-1 to /data/app/com.xxx.xxx-2; Retaining data and using new
W/PackageManager(  645): Package com.xxx.xxx shared user changed from <nothing> to com.yyy.yyy; replacing with new
W/PackageManager(  645): Package couldn't be installed in /data/app/com.xxx.xxx-2
W/PackageParser(  645): Unknown element under <application>: intent-filter at /data/app/com.xxx.xxx-1/base.apk Binary XML file line #334
D/ActivityManager(  645): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{2732f83e #5724 A=com.xxx.xxx U=0 sz=0}
D/ActivityManager(  645): getTaskThumbnailLocked mainThumbnail is null, TaskRecord{2732f83e #5724 A=com.xxx.xxx U=0 sz=0}
I/PackageManager(  645): Successfully restored package : com.xxx.xxx after failed upgrade
like image 332
nikinci Avatar asked Oct 22 '15 13:10

nikinci


People also ask

What is Android SharedUserId?

SharedUserId is used to share the data,processes etc between two or more applications. It is defined in AndroidManifest. xml like, <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:sharedUserId="android. uid.

Is Android package name case sensitive?

The name may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_'). However, individual package name parts may only start with letters.

Do apps update automatically on Android?

When updates are available, the app updates automatically. To turn off automatic updates, turn off Enable auto update. Tips: When some apps get updated, they require new permissions.

What is manifest in Android studio?

The manifest file describes essential information about your app to the Android build tools, the Android operating system, and Google Play.


1 Answers

If sharedUserId is added or removed from the AndroidManifest, users will not be able to update the application because the OS userid the Android OS is assigning to the application has changed.

Unfortunately for the users, at this point they can only move forward by doing an uninstall and re-install. There are no ways for you to fix this so that they can do an update.

I am really, really sorry this happened to you and your users. I have asked Google Play to add a warning to the Dev Console that alerts developers about this.

Take some cold comfort in the fact that you are not the only one who has had this issue. I've been there, and it sucks.

like image 149
Cory Trese Avatar answered Sep 30 '22 17:09

Cory Trese