Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile phone with two user #42

Open
Mannshoch opened this issue Aug 19, 2019 · 4 comments
Open

Mobile phone with two user #42

Mannshoch opened this issue Aug 19, 2019 · 4 comments

Comments

@Mannshoch
Copy link

Mannshoch commented Aug 19, 2019

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 to storage/self/primary
  • the symlink /storage/self/primarypoints 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.
@hkmaly
Copy link

hkmaly commented Dec 26, 2019

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
Copy link
Author

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
Copy link

hkmaly commented Jul 21, 2020

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
Copy link
Author

UserInfo{0:Owner:13} running
	UserInfo{10:USER:10} running
	UserInfo{11:Workingprofile:30} running *

* I play around with the app shelter at moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants