spion / adbfs-rootless

Mount Android phones on Linux with adb. No root required.
Other
890 stars 73 forks source link

Mobile phone with two user #42

Open Mannshoch opened 5 years ago

Mannshoch commented 5 years ago

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

Ideas

hkmaly commented 4 years ago

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.

Mannshoch commented 4 years ago

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

hkmaly commented 4 years ago

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

Mannshoch commented 4 years ago
UserInfo{0:Owner:13} running
    UserInfo{10:USER:10} running
    UserInfo{11:Workingprofile:30} running *

* I play around with the app shelter at moment