Please answer the following questions for yourself before submitting an issue.
AdGuard version
4.14.0 (42218007)
Environment
- OS: Android 16 / ColorOS V16.1.0 (build PGKM10_16.0.10.501(CN01))
- Device: OnePlus PGKM10 (not a Samsung device)
- Root: KernelSU
Issue Details
There is not a single Samsung component on this device: adb shell pm list packages | grep -i samsung returns an empty output.
Still, SamsungPayService (com.adguard.android/.service.SamsungPayService) keeps being started in the background:
- It shows up in the AdGuard services list in a service-management tool.
- In App Manager's process view, the AdGuard process showed 3 running services: ProtectionStateForegroundService (running 00:43), LocalVpnService (00:09) and SamsungPayService (running 00:20); the AdGuard process was using ~476 MB of RAM.
- According to
dumpsys activity services com.adguard.android, during my monitoring most of the time only ProtectionStateForegroundService and LocalVpnService are present, while SamsungPayService appears from time to time (e.g. after the protection is (re)started) - the 'detect Samsung Pay' logic keeps launching on hardware where Samsung Pay can never exist.
The app provides no way to disable this service; the only workaround I found was to disable the service component at the OS level - currently dumpsys package com.adguard.android lists com.adguard.android.service.SamsungPayService among disabledComponents.
In #4807 it was answered that the service is launched with the app to detect Samsung Pay presence and that it uses an insignificant amount of resources. On a non-Samsung device, however, this detection can never succeed: it is a permanently useless component of an always-on VPN app, and it is confusing for users to see a Samsung-related process running on a phone that has nothing to do with Samsung.
Expected Behavior
SamsungPayService should not be (re)started on devices without Samsung components. Any of the following would solve it:
- Skip the Samsung Pay detection on non-Samsung devices (e.g. check Build.MANUFACTURER or the presence of com.samsung.* packages before starting the service).
- After the first check shows that Samsung Pay is not installed, stop the service and do not (re)start it.
- Respect the system-level disabled state of the component.
- Provide a low-level setting to turn this service off completely.
Actual Behavior
On a non-Samsung device with no Samsung components, SamsungPayService keeps being started in the background and shows up among running services, consuming the resources of an always-on app; there is no supported way to get rid of it from the app itself.
Steps to Reproduce
- Use a non-Samsung device without any Samsung components.
- Install AdGuard 4.14.0 and enable protection.
- Watch the services of com.adguard.android (e.g. App Manager process view, or
dumpsys activity services com.adguard.android): SamsungPayService is started from time to time and appears among the running services.
Please answer the following questions for yourself before submitting an issue.
AdGuard version
4.14.0 (42218007)
Environment
Issue Details
There is not a single Samsung component on this device:
adb shell pm list packages | grep -i samsungreturns an empty output.Still,
SamsungPayService(com.adguard.android/.service.SamsungPayService) keeps being started in the background:dumpsys activity services com.adguard.android, during my monitoring most of the time only ProtectionStateForegroundService and LocalVpnService are present, while SamsungPayService appears from time to time (e.g. after the protection is (re)started) - the 'detect Samsung Pay' logic keeps launching on hardware where Samsung Pay can never exist.The app provides no way to disable this service; the only workaround I found was to disable the service component at the OS level - currently
dumpsys package com.adguard.androidlists com.adguard.android.service.SamsungPayService among disabledComponents.In #4807 it was answered that the service is launched with the app to detect Samsung Pay presence and that it uses an insignificant amount of resources. On a non-Samsung device, however, this detection can never succeed: it is a permanently useless component of an always-on VPN app, and it is confusing for users to see a Samsung-related process running on a phone that has nothing to do with Samsung.
Expected Behavior
SamsungPayService should not be (re)started on devices without Samsung components. Any of the following would solve it:
Actual Behavior
On a non-Samsung device with no Samsung components, SamsungPayService keeps being started in the background and shows up among running services, consuming the resources of an always-on app; there is no supported way to get rid of it from the app itself.
Steps to Reproduce
dumpsys activity services com.adguard.android): SamsungPayService is started from time to time and appears among the running services.