emanuele-f / PCAPdroid

No-root network monitor, firewall and PCAP dumper for Android
https://emanuele-f.github.io/PCAPdroid
GNU General Public License v3.0
2.41k stars 285 forks source link

Ability to reset the monitoring data without restarting the capture #375

Open anpic opened 11 months ago

anpic commented 11 months ago

Please add a button or menu item to clear the connection log at any time

emanuele-f commented 11 months ago

Do you mean the list in the Connections tab?

anpic commented 11 months ago

Do you mean the list in the Connections tab?

Yeap :)

anpic commented 11 months ago

Currently the list is cleared only after PCAPdroid restarting. Which is not always possible. Especially if the PCAPdroid is added to Always-on VPN.

anpic commented 11 months ago

It would be even better to add the option to delete for each item in the list via the context menu or top panel. And even allow to select several as for the firewall blocklist and whitelist items.

emanuele-f commented 11 months ago

I agree on adding the ability to reset the app state without restarting it. The other option to remove individual connections seems overcomplicate to me.

anpic commented 11 months ago

seems overcomplicate to me.

You underestimate yourself ;) Already your firewall is probably the best. But without the possibility of flexible configuration, it's very difficult to use in complex scenarios. It may be worth considering the possibility of customization through importing configs for example, in the JSON format. Even enough through intents. Without UI changes.

emanuele-f commented 11 months ago

You underestimate yourself ;)

Ahaha, I mean it can be complicate also for the user to have this grade of configurability. For the time being, the simplicity of a single global list it's better from my point of view, both for code complexity and user experience

emanuele-f commented 11 months ago

It may be worth considering the possibility of customization through importing configs for example, in the JSON format

Yes, but in part this is meant not to be simple. If people start using the app as an adblock, it could be removed from the store

anpic commented 11 months ago

and user experience

If you start conducting surveys then you will learn a lot about the needs of users ;)

it could be removed from the store

https://play.google.com/store/apps/details?id=app.greyshirts.firewall https://play.google.com/store/apps/details?id=eu.faircode.netguard https://play.google.com/store/apps/details?id=com.celzero.bravedns and etc Then it's time to remove them long ago ;)

emanuele-f commented 11 months ago

https://play.google.com/store/apps/details?id=eu.faircode.netguard

At least for Netguard, I know for sure that you can't do that in the google play version https://github.com/M66B/NetGuard/blob/master/ADBLOCKING.md

anpic commented 11 months ago

At least for Netguard, I know for sure that you can't do that in the google play version

It's just not necessary to loudly declare that you are adding to block ads ;) Moreover, no one forbids adding in the form of plugins and configs. It all depends on the desire to realize or lack of it ;)