adbfs-rootless
adbfs-rootless copied to clipboard
Mobile phone with two user
I have a Mobilephone with two user. Even I'm not logged in with the Main User (0) I'm not able to access the data from this user (10). I could only find the data from the main user.
To be able to open the user directory
- the symlink
/sdcard
point tostorage/self/primary
- the symlink
/storage/self/primary
points to./../mnt/user/0/primary
- the directory
./../mnt/user/0
seems empty but you are able to open the hidden directory primary if you add it to the address-bar - this do not work for
./../mnt/user/10/primary
which should be the directory of the second User.
Ideas
- Please check if you could make
./../mnt/user/10/primary
available - If possible do not hide the
primary
directory - As seen in Android "GhostCommander": May made the content of the
/data/
directory visible. In/data/user
should be a directory per User which allow access the Data from the other User.
For me, the directory (mountpoint)/mnt/user/10/primary
actually works fine. It's the directory 10 which doesn't: it doesn't show any content, but cd primary
works, just like you report for /mnt/user/0
. However, I don't actually have multiple users - my "second user" is work profile.
I don't think adbfs is hiding anything itself: it likely just reports what the phone is hiding. See adb shell ls /mnt/user/0
versus adb shell ls /mnt/user/0/primary
.
You may need to ensure both users are running - see result of adb shell pm list users
.
Hi @hkmaly, even user 10 is running and I open the directory (mountpoint)/mnt/user/10/primary
manually, the directory seems empty. If I do a adb shell ls /mnt/user/10/primary
I get
ls: /mnt/user/10/primary: Permission denied
My phon has lineageOS
And adb shell pm list users
reports?
My point was that you may need to solve the problem on lineageOS side and not in adbfs. I don't have any experience with lineageOS, but these two questions might provide some hints: https://android.stackexchange.com/questions/216968/missing-manage-root-accesses-under-developer-options-in-lineageos-16 https://android.stackexchange.com/questions/213116/why-adb-root-does-nothing/213429
UserInfo{0:Owner:13} running
UserInfo{10:USER:10} running
UserInfo{11:Workingprofile:30} running *
* I play around with the app shelter at moment