AdguardTeam / AdguardTeam/AdguardForAndroid

Support "Allow apps to bypass VPN" functionality

オープン
#5,723 コメント 6 件 リアクション 11 件 担当者 0 名 GitHub で見る
Feature request Priority: P4 TechAudit Voting
主要言語
言語のデータがありません
スター
1.9k
フォーク
121
PR マージ指標
30日以内にマージされた PR はありません

説明

### 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_

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。