Android: I changed sharedUserId on an already released application, and some of my users cannot update. What should I do now?

My was used to make Android apps for the Android browser add pronunciation for Chinese text. Depending on which pronunciation of the area you want (for example, Mandarin Pinyin, Cantonese Sidney Lau, Wenzhou ...) and to save space on older Android phones, we provide various types of pronunciation assistance, we release each help as a separate application, since most users will not need more than one. But at the beginning of March 2018, by a popular request, I added the Bookmarks function and stupidly put an attribute android:sharedUserIdin my tag AndroidManifest.xml <manifestto allow different versions of the application to share their bookmarks for those few β€œcapacities” users who switch between different types of pronunciation support.

But we already had about 5,000 users, and some (but not all) users began to report that they were now unable to update the application. Of course, Android did its usual thing and simply told them that there was a problem without providing technical information that could let me know what I did wrong, so I just answered the reports saying to try to remove and reinstall or clear the application data Play Store, and it was 5 weeks before I finally met someone in person whose old Samsung Galaxy S2 (Android 4.1) was not updated, and I was able to connect it to my dev unit and watch the logs adband saw it :

04-04 21:54:58.653: W/PackageManager(2127): Package org.ucam.ssb22.pinyinwol shared user changed from <nothing> to org.ucam.ssb22.annogen; replacing with new
04-04 21:54:58.708: I/BootTime(2127): Fail Safe scanning for:/mnt/asec/org.ucam.ssb22.pinyinwol-1/pkg.apk
04-04 21:54:58.708: W/PackageManager(2127): Package couldn't be installed in /mnt/asec/org.ucam.ssb22.pinyinwol-2/pkg.apk

: sharedUserId , , INSTALL_FAILED_UID_CHANGED ( ; , Android).

sharedUserId , 5 , , , Android, sharedUserId .

Play Store, - , , ". ( " , ".) , , AndroidManifest Play Store. , , , , , , , , , .

, , , sharedUserId, sharedUserId, , , . , , ( - , sharedUserId), . , - , , .

+4
1

:

  • sharedUserId , (), 7 , , , t , () 14 , , , .

  • sharedUserId, , , , .

  • sharedUserId, .

, , () , sharedUserId, 3 , 1 ( ), () pre-sharedUserId, 2 , 3 , (c) , post- sharedUserId, 1 3, " " 2 , 1.

, 3 , , .

0

Source: https://habr.com/ru/post/1695909/


All Articles