I have two Android system users configured.
$ pm list usersUsers: UserInfo{0:Owner:13} running UserInfo{10:security space:13} running UserInfo{999:XSpace:800010} running
When the mobile is running at Android 8.1, I can access the secondary user's space /storage/emulated/10
easily in adb shell
.
But after I upgrade to Android 9, I can no longer do it:
$ ls /storage/emulated/10ls: /storage/emulated/10: Permission denied
Any ideas how I can access my second user's space in adb shell
?
Btw, my /sdcard/
always points to the first user's space /storage/emulated/0
at adb shell
regardless what my current user is at mobile UI. The adb shell
connection remains the same when I switch users at mobile UI too.
When I switch users at mobile UI level, my adb connection remains the same. And I do see the current user changes with the following command:
$ dumpsys activity | grep mCurrentUser mCurrentUser=0$ dumpsys activity | grep mCurrentUser mCurrentUser=10