[Android] Despaired story with App UserId and SharedUserId

The UID (UserId) of the Android application was not unique (´ ・ ω ・ `) ...

[Android Developers System Permission Quote] Normally, you can't run two package codes in the same process, you have to run them as different Linux users. You can assign the same user ID to multiple packages by using the sharedUserId attribute in the per-package manifest tag in AndroidManifest.xml. https://developer.android.com/guide/topics/security/permissions.html?hl=JA

・ ・ ・ (´ ・ ω ・ `) Isn't it dangerous? Due to this specification, each application information is managed using the UID as a key ...

For example App 1 UID = 10001 App 2 UID = 10002 App 3 UID = 10003 ← SharedUserId App 4 UID = 10003 ← SharedUserId

In this case, app 3 and app 4 refer to the same app information, so it's not good. Let's manage by application ID. Basically it seems that application ID = package name, see Developpers for details ** * Again, let's use the application ID! !! ** </ font>

Recommended Posts

[Android] Despaired story with App UserId and SharedUserId
Import device images with Android app
USB serial communication with Android app (usb-serial-for-android)
Face recognition app with OpenCV + Android Studio
I made a rock-paper-scissors app with android
Get YouTube video information with Retrofit and keep it in the Android app.
I'm making an Android app and I'm stuck with errors and how to solve it
Android app: Try to summarize events and listeners
The story of tuning android apps with libGDX
Vibrate the wristband device with Bluetooth from the Android app
Face recognition app made with Amazon Rekognition and Java