Watchdog based on notification monitoring permissions (for rooted devices only)
Issue Details
When using automatic proxy mode, to ensure network speed, watchdog mode must be enabled or the application must be kept in the foreground.
Proposed solution
Add a new keep-alive feature.For instance, run as a foreground service.
Alternative solution
No response
@ldaurcvvrk Hi! Could you please give us some details as to what kind of issues you are facing to ask about the new keep-alive feature?
You could try implementing a keep-alive mechanism similar to "Notification Filter Box" that utilizes notification monitoring permissions (Android's NotificationListenerService). This approach maintains app persistence through system notification channels rather than frequent polling checks, which might be more resource-efficient.
@ldaurcvvrk @Versty
Оригинал на русском языке/The original is in Russian:
Здравствуйте! Добавлю своё замечание и мнение. Существующий функционал Watchdog не следует удалять и/или изменять, он реально бывает полезен и нужен в некоторых ситуациях и/или на некоторых устройствах уже именно в том виде в котором он есть сейчас. И уж тем более не следует вносить такие изменения чтобы после это этот функционал работал только при наличии root на устройстве. Поскольку всё же у большинства пользователей на большинстве устройств root нет и кроме того соответственно большинство пользователей используют всё же в AdGuard режим фильтрации трафика через "локальныйVPN" от AdGuard а не в режиме прокси. В крайнем случае можно тогда добавить ещё какую-то отдельную опцию которая будет тогда доступна для включения и будет работать только на устройствах с root. Но чтобы тогда при этом и имеющаяся старая опция Watchdog оставалась и по прежнему не требовала бы обязательного наличия root на устройстве.
Если что прошу меня извинить, поскольку я не знаю английского языка а для написания и чтения таких сообщений я использую online-переводчик.
С уважением NUser2018.
На английском языке (через online-переводчик)/In English (via an online translator):
Hello! I will add my comment and opinion. The existing Watchdog functionality should not be deleted and/or changed, it can be really useful and necessary in some situations and/or on some devices exactly as it is now. And even more so, you should not make such changes so that after that this functionality only works if you have root on the device. Since most users do not have root on most devices, and moreover, accordingly, most users still use the traffic filtering mode in AdGuard via the "LOCALVPN" from AdGuard and not in proxy mode. As a last resort, you can then add some other separate option that will then be available for activation and will only work on devices with root. But then, at the same time, the existing old Watchdog option would remain and still would not require the mandatory presence of root on the device.
If anything, please excuse me, because I do not speak English and I use an online translator to write and read such messages.
With respect NUser2018.
@ldaurcvvrk Thank you for the detailed explanation. Let's keep this feature request open for other users to vote on by putting the 👍 emoji on the issue.