Quantcast
Channel: Active questions tagged adb - Android Enthusiasts Stack Exchange
Viewing all articles
Browse latest Browse all 357

How to access /storage/emulated/10 (multi-users env) in adb shell on Android 9+ without root access?

$
0
0

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

Viewing all articles
Browse latest Browse all 357

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>