[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