Shareduserid: Safe To Change When App Is Already In Market?
Solution 1:
And to answer my own question again:
No, it's not safe. Since updating an app via Android Market will not remove the database and preference files, the new version will not be able to read or write these files (since they were created under a different Linux user ID), and the app will crash after the update. You would have to ask your users to completely uninstall and reinstall the app, which is certainly not recommended.
As a general rule I conclude from this:
Whenever you start out developing a new app, make sure to set a manual android:process
and android:sharedUserId
attribute! It doesn't hurt in case you don't need it, but it gives you full control over which apps have access to this app's private resources.
Solution 2:
No solution as of now, but starring at registered issues might get Google to fix this:
Post a Comment for "Shareduserid: Safe To Change When App Is Already In Market?"