AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.22k stars 86 forks source link

Add AdGuard to the list of Device administration apps in system settings #5320

Open Benson2333 opened 1 month ago

Benson2333 commented 1 month ago

Issue Details

AdGuard is unable to autostart and run in a background for a long time on MIUI 13+ and some versions of HyperOS, due to powers saving option for AdGuard application can not be set to "Unlimited power usage".

Original text (Chinese) adguard无法无限制使用电源,后台运行收到干扰。

Proposed solution

Consider including AdGuard application to the list of "Admin apps" in the system settings. Link to related Android docs

Original text Similar to Microsoft Authentiactor, the “admin app” is opened. The same authority, undisturbed.

Alternative solution

Ignore the system prompts, force running, similar to "ad background process".

Versty commented 1 month ago

@Benson2333 Could you please provide more details on Proposed solution? Also, it would be useful to know the version of MIUI or HyperOS on your device where you are experiencing the issue.

Benson2333 commented 1 month ago
ENG version Hi, I wonder if you are aware of the Enterprise Configuration Policy in Windows? Or, ever used Google family link? Or “Settings - General - VPN & Device Management - Configuration Profile” in Apple devices? Or the Microsoft Intune corporate portal? They all involve “Device Management”, “Configuration Policies”. That's what I'm trying to say, because there are whitelisted/blacklisted apps in MIUI China that can only be counteracted by a policy with the same level of permissions. For example, Dr.web for android, which I have been using, is always banned by MIUI when I turn off the “Device Management” permission, but it runs smoothly when I turn it on.

你好,不知道你是否了解Windows系统中的企业配置策略? 或者,有没有使用过Google family link? 或者说,苹果设备中的“设置-通用-VPN与设备管理-配置描述文件”? 再者说,Microsoft Intune公司门户?

它们都涉及“设备管理”、“配置策略”。 这也是我想说的,因为MIUI China存在白名单/黑名单应用程序,只能用与之同级别权限的策略去抵消影响。

比如说,我一直在使用的Dr.web for android,在关闭“设备管理”这项权限后,总是被MIUI禁止后台,但是开启该权限,就可以流畅运行。 20240515_200211

Benson2333 commented 1 month ago
ENG version Of course, this does not necessarily mean that users are required to use the permission. For normal use of the system is not affected, users can choose not to open. For users whose background operation is affected, they can selectively turn it on according to their needs. In other words, for this permission, the benefits of development outweigh the disadvantages, the difference lies in the user's choice to open or not.

当然,这并不代表一定要求用户使用该权限。 对于正常使用不受影响的系统,用户可以选择不开启。 对于后台运行受到影响的用户,可以根据需要选择性开启。 也就是说,对于这项权限,开发的好处大于弊端,区别在于用户选择开启与否。

Benson2333 commented 1 month ago

Thank you for your favorable reply! This was truly beneficial to me, and to some extent, it was effective for all of China's custom Android systems. The introduction of the device management option is anticipated to resolve these issues for the majority of Chinese users. I believe the reason why system advertisements are prohibited is because the priority of ad-blocking software is not equivalent to that of ad placement programs. For instance, Adguard can filter advertisements when the program starts, but it frequently fails to intercept small pop-up advertisements. This may be the result of exploiting the gap between Adguard's operations. This situation is insurmountable, as China once stated, "Only 360 Security Center can defeat 360 Security Center, and we can no longer adhere to the gentleman's agreement on advertising software." The relationship between Adguard and the ad placement program is no less so.

Versty commented 3 weeks ago

@Benson2333 We discussed this feature with the development team and decided to leave it up to a user vote.

More ‘+1’ emoji under your thread means more users want this feature to be added as well.