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

Show icon if there is white/black list for a function #1654

Closed
an0n981 opened this issue May 12, 2014 · 40 comments
Closed

Show icon if there is white/black list for a function #1654

an0n981 opened this issue May 12, 2014 · 40 comments

Comments

@an0n981
Copy link
Contributor

an0n981 commented May 12, 2014

If an app (in this case com.github.mobile) has Inet/Connect restricted an onDemand enabled and a list of whitelisted IPs, and then the onDemand check is removed (which IMO now means Inet/Connect should be completely restricted), the list of whitelisted IPs are still reachable. Is this a bug or a feature?
If this is a feature, and I need to collect ten +1 for a feature change to be considered, please let me know

@M66B M66B added bug labels May 12, 2014
@M66B
Copy link
Owner

M66B commented May 12, 2014

I consider this as a bug, so no +1's needed.

@M66B M66B changed the title [Bug Report or Feature Request?] Internet/Connect onDemand Whitelists Internet/Connect onDemand Whitelists May 13, 2014
@danielmmmm
Copy link
Contributor

Oh, in that case I misunderstood how the whitelist works.
Do you mean to say that the whitelist only works when onDemand for connect is active?
I thought I could allow connections to some IPs by whitelisting them, then disable onDemand for connect, and thereby allow connections to whitelisted IPs, while rejecting all other IPs without getting a pop-up? Otherwise, apps would always ask to connect to unwanted IPs and one would always have to "deny for 15 seconds".

@an0n981
Copy link
Contributor Author

an0n981 commented May 14, 2014

@danielmmmm you can also blacklist items by clicking whitelist and deny

@danielmmmm
Copy link
Contributor

Oh wow! I must be very ignorant to miss that. Thanks, this is extremely useful :-)

@M66B
Copy link
Owner

M66B commented May 17, 2014

I cannot reproduce this issue, but it could be very well that #1653 also fixed this issue.

@M66B
Copy link
Owner

M66B commented May 17, 2014

Please let me know if this issues still exists in version 2.0.23

@an0n981
Copy link
Contributor Author

an0n981 commented May 17, 2014

Yes issue still exists

@M66B
Copy link
Owner

M66B commented May 17, 2014

Please tell me exactly how I can reproduce this.

@an0n981
Copy link
Contributor Author

an0n981 commented May 17, 2014

Install GitHub (only app I actually tested this with). Restrict Connect onDemand. Allow the GitHib IPs. Then remove the onDemand check (Inet/Connect=Deny). GitHub can still access the previously whitelisted IPs

@M66B
Copy link
Owner

M66B commented May 17, 2014

Okay, then I misunderstood the issue.
This behavior is to be expected.
The IP is still whitelisted/blacklisted.
You can use whitelist management to delete whitelist entries.
(non pro users need to clear all restrictions for the application).

@an0n981
Copy link
Contributor Author

an0n981 commented May 17, 2014

IMHO if I remove the onDemand then white/blacklist should no longer be active, Since I have set Inet/Connect to deny

@M66B
Copy link
Owner

M66B commented May 17, 2014

The white/blacklist is not dependent on on demand restricting being enabled or not.

@M66B M66B added the wontfix label May 17, 2014
@M66B M66B closed this as completed May 17, 2014
@wbedard
Copy link

wbedard commented May 17, 2014

While apparently not a bug, I think that an0n981 is trying to say that is an "error in implementation", which I tend to agree with.

@M66B
Copy link
Owner

M66B commented May 17, 2014

If this is a missing feature or not is debatable. That on demand restricting needs to be enabled to create whitelist entries doesn't necessarily imply that on demand restricting needs to be enabled to apply whitelist entries. Adding this condition will not only make the code more complex (which is at that point already complex enough), but could also affect performance, which are the main reasons I don't want to change this.

@M66B
Copy link
Owner

M66B commented May 17, 2014

Maybe it is an idea to show an icon that there are whitelist entries active instead. Any suggestion for an icon is welcome.

@M66B M66B reopened this May 17, 2014
@an0n981
Copy link
Contributor Author

an0n981 commented May 17, 2014

I don't know where you could put an icon, but what about a toast when an onDemand is unchecked that has white listed items?

@M66B
Copy link
Owner

M66B commented May 17, 2014

I was thinking to display a small icon before the check boxes.
Clicking it would open whitelist management for pro version users.

@wbedard
Copy link

wbedard commented May 17, 2014

[Edited]Retracted post since it wasn't very accurate/good. Will think about the issue a bit more before posting...

@M66B M66B added enhancement and removed bug labels May 18, 2014
@banderos101
Copy link

@M66B

"I was thinking to display a small icon before the check boxes.
Clicking it would open whitelist management for pro version users."

I think that would be a pretty convinient feature for the whitelist/blacklist feature

@M66B
Copy link
Owner

M66B commented May 28, 2014

Does somebody have a proposal of a free to use icon or can somebody create an icon for this purpose?

@an0n981
Copy link
Contributor Author

an0n981 commented May 28, 2014

Should the icon have the same size as the pngs in res/drawable? I will see if I can create one. But it won't be before Friday. Tomorrow is a holiday here :) and I want to get paid for creating an icon.

@M66B
Copy link
Owner

M66B commented May 28, 2014

You mean you want to create an icon during idle time while working I guess ;-)
Make it the same size as the book icon and it will be okay.

@M66B
Copy link
Owner

M66B commented May 29, 2014

The code is finished, so waiting for a holo light and dark icon ...

@M66B M66B changed the title Internet/Connect onDemand Whitelists Show icon if there is white/black list for a function May 29, 2014
@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

Is this related? XPrivacy / res / drawable / whitelist_holo_dark.png

@M66B
Copy link
Owner

M66B commented May 30, 2014

Yes, that is a copy of the info icon I used for testing and needs to be replaced by another icon.
There is a light and dark one for the light and dark theme.

@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

But this is what we are looking at size wise?

@M66B
Copy link
Owner

M66B commented May 30, 2014

Yes, that is why I copied the info icon.
Same size, type and colors to keep it consistent.
I am curious what symbol you are coming up with ;-)

@M66B
Copy link
Owner

M66B commented May 30, 2014

BTW, I have edited your comment, since it contained your e-mail address.

@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

appreciate that 👍

@M66B
Copy link
Owner

M66B commented May 30, 2014

That seems to happen if you reply to a GitHub notification (which I never do).
Maybe it can be changed with a GitHub setting.

M66B pushed a commit that referenced this issue May 30, 2014
@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

Since I couldn't decide on one really cool icon, I created a few different icons. Feel free to chose which one to use. Or maybe someone else has an even better idea
https://mega.co.nz/#!M54wnbaL!UIQrFdtBO-TTVKWH-MPa5CcBbWRdEVHwDHAsfy_l87o

@M66B
Copy link
Owner

M66B commented May 30, 2014

I have chosen for number six, test version: http://www.xprivacy.eu/XPrivacy_2.0.26-2.apk

@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

Very nice! It even opens directly to the proper list.

@M66B
Copy link
Owner

M66B commented May 30, 2014

Yes, I have made that as well for the convenience of everybody.
Thanks for the icons.

@M66B M66B closed this as completed May 30, 2014
@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

It even knows when to show and when not 👍

@M66B
Copy link
Owner

M66B commented May 30, 2014

Wasn't that the whole point? ;-)

@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

I was expecting an icon that indicates whether or not white lists are possible. I did not envision something so awesome

@M66B
Copy link
Owner

M66B commented May 30, 2014

I don't like half work ...

@M66B
Copy link
Owner

M66B commented May 30, 2014

Sometimes I think it is easier to chat, if you feel the same: GTalk: marcel ... faircode.eu
Replace ... by an at sign.

@an0n981
Copy link
Contributor Author

an0n981 commented May 30, 2014

I will ping you

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

No branches or pull requests

5 participants