-
Notifications
You must be signed in to change notification settings - Fork 527
Multi users support #357
Comments
See the FAQ about multi-user support. |
Hello, with android 4.3 android added additional support for multi user with example of a game that is user aware and remove the possibility to buy new levels on the said games when a restricted user runs it. Plus since the owner user have root most of the time, it's possible to use roots rights to look at XPrivacy settings for other users than the current one. |
I am fully aware of this, since I have already updated XPrivacy for Android 4.3. |
Okay so no plan to support this i guess. Could be a nice feature. Thanks for reading. |
Multi-user support will work the exact same way as multi-user support works for Android. |
Can I logon to primary user, and config the restriction user settings? What happen, if I remove some app inet permission (gid 3003) with primary user, and then logon to restriction user to enable this app inet permission? When I use iptables, I can config any uid. Thank you. |
@johnwmail could you please provide some screenshots? |
Unn. maybe I misunderstand how XPrivacy work, or my bad english. |
OK, I upload the pic to "http://postimg.org/image/d3jiivzkt/" I config AndFTP network permission with restriction user(uid 1110108), I config AndFTP with primary user(uid 10108) WITH network permission, Thanks. |
The reason I asked for screenshots is that I don't have devices that support multiple users.
|
BTW, if you want to prevent internet access, you will have to restrict the internet category, not the network category and restart the application (or reboot your device). Also, make sure you have 'inet' in the internet category restricted. |
HI, the screenshots which I uploaded show you, I already restrict the internet category with 'inet' item. Sorry, can you tell me the debug procedure? <-- maybe it should add to FAQ (debug procedure) Anyway, here is what I did. Thank you. |
Running through grep '10108/' 1110108 is only asking for identification/SERIAL All of those requests are pretty close together towards the end of the log. |
Yes, I saw it (grep 10108 | grep -v 1110108) I/XPrivacy( 642): Load fallback restrictions uid=10108/10108 1 ms Why will that? any idea? Thank you. |
@johnwmail thanks for the logcat! I was able to pinpoint the problem. Could you please try if this version restricts internet (inet) and storage (media and sdcard) correctly on your device? http://d-h.st/pJg |
Hi, the new version(1.2) does not fix this issues, AndFTP still can make connection. |
The fix is working, but nothing is restricted for 1110108. |
Yes, I already did it (restricted inet for 1110108). maybe XPrivacy only/will use the primary user (10108) restriction setting for secondary user. |
internet and storage are not restricted (!restricted) for 1110108. |
Don't forget to restart the app (kill) or reboot your device. |
OMG, why you don't trust me already did it? |
@johnwmail it isn't that I trust you ;-) Can you please post a listing of /data/data/biz.bokhorst.xprivacy/shared_prefs And the contents of:
|
This is the relevant part of the log file:
The settings are loaded for the correct uid 1110108. |
If the settings file load failed, then this would have been logged. /data/data/biz.bokhorst.xprivacy/shared_prefs/biz.bokhorst.xprivacy.provider.1110108.xml |
|
http://pastebin.com/rHTrkgr8 <-- 10108 http://pastebin.com/xvycsqUe <-- 1110108 http://pastebin.com/mzXWEq3k 〈-- diff -u 10108 1110108 Secondary user directory is: /data/user/11/some-apps Thanks all. |
The settings file for 1110108 confirms that internet should be restricted.
However, the logcat says something else. Can you please execute:
and post the output? |
I also like to see the file permissions of the found files. |
root@grouper:/ # find / |grep 10108 root@grouper:/ # ls -l /data/data/biz.bokhorst.xprivacy/shared_prefs/biz.bokhorst.xprivacy.provider.10108.xml Thanks. |
It took quite some research, but this version should provide working multi-user support: http://d-h.st/33y
and again the file permissions. At least three minutes after boot:
Thanks for your patience! |
When apply rules to secondary user, xprivacy forceclose. |
That is too bad. |
logcat "http://pastebin.com/SJaQKFv3" |
root@grouper:/sdcard/tmp # ps |grep xpri root@grouper:/sdcard/tmp # find / -name '10108' | xargs ls -l |
root@grouper:/sdcard/tmp # find / |grep 10108 |
I managed to enabled multi-user on my phone using these instructions: Thanks @jpeg729 ! |
Switching users (normally done on the lock screen, but this doesn't work on phones):
|
Since I got multi-user support enabled on my device the chance is a lot bigger this test version will work for you: http://d-h.st/elS |
Still not work, this version just like the normal version, no force close, but the inet restriction not work on secondary user. |
The logcat seems to be removed ... |
logcat: http://pastebin.com/Rwf1rEZw root@grouper:/sdcard/tmp # ps |grep xpri root@grouper:/sdcard/tmp # find / -name '10108' | xargs ls -l |
I should work now, really ;-) |
Yeah, this one work with multi user now. |
Thanks for reporting back! |
Xprivacy could get an extended multi users support :
The owner (admin) could force a rule on other users (for example, blocking localisation info for facebook for every users)
The owner (admin) could force a default state for a permission (admin could force block localisation by default for every users)
The owner (admin) could apply rules on apps other user have but admin don't.
Non admin users could check or uncheck whatever it want and have it applied, but if an admin checked something it would apply even if the user uncheck it, the user can know it becaus the checkmark would be grey instaed of empty when uncheking.
On the other side, i don't think the admin should be able to force uncheck an option but the options that can make an app force close (remove internet/storage permission)
The text was updated successfully, but these errors were encountered: