Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

On demand restriction popup UID inaccurate on multi-user environment #1561

Closed
Magissia opened this issue Mar 15, 2014 · 13 comments
Closed

On demand restriction popup UID inaccurate on multi-user environment #1561

Magissia opened this issue Mar 15, 2014 · 13 comments
Labels

Comments

@Magissia
Copy link

Hello, when a restricted user have on demand activated for an app, the UID shown is the UID of this app for the first user (10K range) and not the UID of the current user's range (1010K if second user).

The rule get correctly applied to the current user tough.

@M66B M66B added the question label Mar 15, 2014
@M66B
Copy link
Owner

M66B commented Mar 15, 2014

It is impossible that the restriction and the application info do not match, since the uid of the restriction is used to fetch the application info.
https://github.com/M66B/XPrivacy/blob/master/src/biz/bokhorst/xprivacy/PrivacyService.java#L1238

@M66B M66B closed this as completed Mar 15, 2014
@Magissia
Copy link
Author

Hello, it was not a question it was an actual bug report, it is not possible the second user have an app in the 10K range UID and i did get the popup with the app to restrict showing owner's UID and not current user's UID.

While the UID shown on the pop up is in the 10K range, the app restricted from the answer is in the 1010K range.

Looking at what the XPrivacy GUI gives, the correct UID is shown, this problem happens only on the popup. Can record a video with the problem showing up using calc app if it please you.

@M66B
Copy link
Owner

M66B commented Mar 15, 2014

I have double checked the sources and the uid cannot be wrong.
Can you post a screenshot of the main usage data?

@Magissia
Copy link
Author

From wich user view ?

@M66B
Copy link
Owner

M66B commented Mar 15, 2014

Doesn't matter

@Magissia
Copy link
Author

http://imgur.com/tF2REkH

Took from restricted user view.

Calculator usge from restricted user not visible in the list while it is restricted with "on demand" for everything.

@M66B
Copy link
Owner

M66B commented Mar 15, 2014

Which uid and which restriction do I have to look at?

@Magissia
Copy link
Author

Any restriction, UID 1010023 (Looking at the usage logs on my side, it seems it didn't even got logged at all ... as i don't see anything logged for the calc while it ask for inet and SERIAL)

@M66B
Copy link
Owner

M66B commented Mar 15, 2014

I don't see any restriction for that uid, maybe it is further in the list.

@Magissia
Copy link
Author

i checked the whole list and the UID doesn't show anywhere. Will retry with block instead of on demand.

@Magissia
Copy link
Author

http://imgur.com/hBFcdIE

Okay, app UID 1010074 got something blocked. On the on demand popup, it was shown 10074.
Note that 10074 is frozen on Owner account, only restricted user have it unfozen.

@M66B M66B reopened this Mar 15, 2014
@M66B
Copy link
Owner

M66B commented Mar 15, 2014

I was able to reproduce this issue.
In fact this can be considered an inconsistency in Android.
I have done a simple workaround to fix this problem.

@M66B M66B closed this as completed in 63bdf5e Mar 15, 2014
@Magissia
Copy link
Author

Thanks

M66B pushed a commit that referenced this issue Mar 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants