Skip to content

Excluded apps list looses new lines when content inserted #664

@Anton-V-K

Description

@Anton-V-K

Please answer the following questions for yourself before submitting an issue.

  • I checked the knowledge base and found no answer
  • I checked to make sure that this issue has not already been filed

AdGuard VPN version

2.16

Operating mode

VPN

Which DNS server do you use?

None

DNS protocol

None

Custom DNS

No response

Environment

- OS: Android 11
- Device: Realme 8i

Root access

  • yes, I have it

Issue Details

Steps to reproduce:

  1. Copy the default Excluded apps list to another app and save it as a file
  2. Edit the saved list in another app, and copy the content afterwards
  3. Paste the content into the edit Excluded apps
  4. Click Save

Expected Behavior

The entries for the apps you had added should not use VPN.

Actual Behavior

New lines characters seem to be lost, so everything after the first // is ignored, and the added apps may still use VPN.

Screenshots

Screenshot 1

Additional Information

Here is how the list is stored in the preferences (exported):

    <string name="packages_and_uids_exclusions">com.vivaldi.browser&#10;// Disable for &quot;radio&quot;: https://github.com/AdguardTeam/AdguardForAndroid/issues/1058 1001 // Disable for &quot;system&quot;: https://github.com/AdguardTeam/AdguardForAndroid/issues/2550 1000 // Disable Downloads Manager https://github.com/AdguardTeam/AdguardForAndroid/issues/3355 com.android.providers.downloads com.android.providers.downloads.ui // Realme devices have their own Download Manager https://github.com/AdguardTeam/AdGuardVPNForAndroid/issues/95 com.coloros.providers.downloads.ui // Disable for Android Auto https://github.com/AdguardTeam/AdGuardVPNForAndroid/issues/551 com.google.android.projection.gearhead //////////////////////////////////</string>

The first entry com.vivaldi.browser was added directly in the edit box (so the new line is preserved), the rest was copied from another app (X-plore) to imitate editing the list in another app.
Here is the log fragment:

...
15:47:22.158 [threadmanager-multiple-pool-8-thread-2-2851] ⬜ INFO  VpnServiceExt — Excluding app from VPN: name=com.adguard.vpn; uid=10242
15:47:22.160 [threadmanager-multiple-pool-8-thread-2-2851] ⬜ INFO  VpnServiceExt — Excluding app from VPN: name=com.vivaldi.browser; uid=10252
15:47:22.161 [threadmanager-multiple-pool-8-thread-2-2851] ⬜ INFO  VpnServiceExt — Excluding special app from VPN: name=com.utorrent.client
15:47:22.162 [threadmanager-multiple-pool-8-thread-2-2851] ⬜ INFO  VpnServiceExt — Excluding special app from VPN: name=com.utorrent.client.pro
...

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions