I learned for every app I installed on my Android, a new user is created. And the data for this app is stored in /data/data/app folder with the only access permission to the user that is created for the app. Then how can I access the data when I run the app as me (another user) . I want to be able to replicate the same behavior when I install apps on my Linux machine.
Asked
Active
Viewed 237 times
/data/app
, data is stored to/data/data
. You can't do that exactly on Linux machine because there human users are isolated, not programs. So every human user gets a unique UID but all apps/programs run by that user have same UID (unless you explicitly run them with different UID). See some related details in this answer: https://android.stackexchange.com/a/213921/218526 – Irfan Latif Mar 01 '20 at 09:23cups
operate under a separate user and group. If that's the case, this question might be off-topic. – Grimoire Mar 04 '20 at 02:48