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

Unblock for 10 Min #390

Closed
smexyy opened this issue Dec 25, 2023 · 10 comments
Closed

Unblock for 10 Min #390

smexyy opened this issue Dec 25, 2023 · 10 comments
Labels
bug Something isn't working
Milestone

Comments

@smexyy
Copy link

smexyy commented Dec 25, 2023

Hello, when trying to ublock the app for some time for example 10 Min, it keeps allowed and not auto blocked after the the duration end.

Screenshot_20231225-143308~4

Phone Info: - Pixel 6a - android 14
Pcap version - 1.6.9

Note: this happen in this phone not my other phone.

@emanuele-f
Copy link
Owner

Hello, is the hourglass icon still displayed after the 10 minutes pass? Does the same happen with other apps like chrome?

@smexyy
Copy link
Author

smexyy commented Dec 25, 2023

  • Yes still displayed after the 10 M ,1H ,8 H.
  • Yes For any/other apps
  • And the connection keep open and I have to manually block it.

@emanuele-f emanuele-f added this to the 1.7.0 milestone Dec 25, 2023
@emanuele-f
Copy link
Owner

emanuele-f commented Dec 25, 2023

@smexyy in the screenshot above, I can see the checkmark icon ✅, which indicates that the firewall is working in whitelist mode (block everything except the whitelisted apps) and that whatsapp is whitelisted, so this is why the app is unblocked even if the grace period has ended.
The bug to fix here is that PCAPdroid allows you to temporary unblock an app which is already whitelisted.

Edit: actually block rules co-exist with whitelist rules, as explained in the whitelist help dialog, so this is not the case

emanuele-f added a commit that referenced this issue Dec 25, 2023
@emanuele-f
Copy link
Owner

I've tested this on Android 14 and could not reproduce it. Please try with this beta APK and post here the App log, which you can find in the left drawer of PCAPdroid

2023-12-25_18-34

@smexyy
Copy link
Author

smexyy commented Dec 25, 2023

@smexyy in the screenshot above, I can see the checkmark icon ✅, which indicates that the firewall is working in whitelist mode (block everything except the whitelisted apps) and that whatsapp is whitelisted, so this is why the app is unblocked even if the grace period has ended. The bug to fix here is that PCAPdroid allows you to temporary unblock an app which is already whitelisted.

Edit: actually block rules co-exist with whitelist rules, as explained in the whitelist help dialog, so this is not the case

I add some apps in whilelist and add the same apps in blocklist, and when I need to allow connection, I allow the app for 10 Min use and it will auto block again after grace period end. this issue happen only with my pixel 6a not my other phone which is the same setup.

@emanuele-f
Copy link
Owner

I see, I will need the log to investigate further

@smexyy
Copy link
Author

smexyy commented Jan 2, 2024

Hello, is the hourglass icon still displayed after the 10 minutes pass? Does the same happen with other apps like chrome?

I tested now and seems not all apps, it random apps. after 10 min it takes some time to revert back to block sign again.

@anpic
Copy link

anpic commented Jan 5, 2024

I tested now and seems not all apps, it random apps

I think it's not about PCAPdroid. Although PCAPdroid has strange global permissive rules. But in the worst case they will only lead to DNS leaks.
And here something is probably interfering with the firewall. Try to turn on Always-on VPN and Block connections without VPN for PCAPdroid in VPN system settings.
It would be useful to look at all PCAPdroid settings in general. But this requires the feature of exporting them but Emanuele denies the need for this feature :(

@emanuele-f
Copy link
Owner

I tested now and seems not all apps, it random apps. after 10 min it takes some time to revert back to block sign again.

@smexyy please provide the app log as explained in #390 (comment), it's necessary to proceed with the troubleshooting

@emanuele-f emanuele-f removed this from the 1.7.0 milestone Jan 12, 2024
@smexyy smexyy closed this as completed Jan 16, 2024
@emanuele-f emanuele-f reopened this Feb 7, 2024
@emanuele-f emanuele-f added bug Something isn't working and removed to be confirmed labels Feb 7, 2024
@emanuele-f emanuele-f modified the milestones: 1.8.0, 1.7.0 Feb 7, 2024
@emanuele-f
Copy link
Owner

I reproduced this. The bug occurs when the device enters deep sleep, as https://developer.android.com/reference/android/os/SystemClock#uptimeMillis() does not count time spent sleeping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants