Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upFirewall temporary allowance notification is not displayed #966
Comments
This comment has been minimized.
This comment has been minimized.
@vozersky can you reproduce it with Nougat? |
This comment has been minimized.
This comment has been minimized.
@ameshkov yes, same story with Nougat |
This comment has been minimized.
This comment has been minimized.
@ameshkov @Revertron @nkartyshov Looks like it became a common issue for all devices with Android 7. |
This comment has been minimized.
This comment has been minimized.
This problem is not solve now. Android 7 restrict access to folder /proc for other processes, but solve this problem help use UsageStatsManager. Information about UsageStatsManager: https://developer.android.com/reference/android/app/usage/UsageStatsManager.html. |
This comment has been minimized.
This comment has been minimized.
Delayed to v3.0 as this UsageStatsManager integration will take quite some time, and I'd like v2.9 to be released as soon as possible. |
This comment has been minimized.
This comment has been minimized.
more complains about the bug: id 583184 |
This comment has been minimized.
This comment has been minimized.
Same issue on Android 7.1.1. |
This comment has been minimized.
This comment has been minimized.
Great to see you're working on fixing this issue. The notification feature was great, hope it'll be back in the future. Good luck. |
This comment has been minimized.
This comment has been minimized.
Here too, MIUI 8.5 on Android 7.0: 1589286 |
This comment has been minimized.
This comment has been minimized.
Done |
Reproduced on Samsung s7
Could be a foreground detection issue.
Here's what we should do
In order to detect if the app is in foreground or not, we should be using the UsageStatsManager: https://developer.android.com/reference/android/app/usage/UsageStatsManager.html
The only question is when should we ask for the necessary permissions. I suggest doing it every time user decides to block network access for some app (or a list of apps via the batch action).
More info
queryEvents
can be slow, we have to test it.https://github.com/ricvalerio/foregroundappchecker
https://medium.com/@quiro91/show-app-usage-with-usagestatsmanager-d47294537dab