AdguardTeam / AdguardTeam/AdguardForAndroid
Support "Allow apps to bypass VPN" functionality
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 1.9k
- Forks
- 121
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
### Issue Details
### Current Behavior:
- AdGuard’s VPN routing is solely controlled by app package names.
- No option exists for apps to dynamically bypass the VPN, even if they support it (e.g., for latency-sensitive or battery-critical traffic).
### Problems This Solves:
1. Google FCM Push Notifications:
Bypassing the VPN for FCM reduces battery drain and improves reliability while retaining ad/tracking filtering for other traffic.
1. Game Streaming/P2P Apps:
Enables stable low-latency connections without requiring users to disable the VPN entirely.
### Documentation References
- [Android VPN Bypass Guide](https://developer.android.com/develop/connectivity/vpn#bypass_vpn )
- `VpnService.Builder.allowBypass()`: [API Spec](https://developer.android.com/reference/android/net/VpnService.Builder#allowBypass() )
### Proposed solution
### Implementation:
- Call `VpnService.Builder.allowBypass()` when establishing the VPN interface.
### User Control:
- Add a toggle in AdGuard’s settings (e.g., "Allow apps to bypass VPN").
- Default: **Disabled** (maintains current behavior unless explicitly enabled).
### Backward Compatibility:
- No impact on existing per-app routing rules (package-name-based filtering remains intact).
### Alternative solution
_No response_
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.