AdguardTeam / AdguardTeam/AdguardForAndroid

Support "Allow apps to bypass VPN" functionality

Đang mở
#5,723 6 bình luận 11 reaction 0 người được giao Xem trên GitHub
Feature request Priority: P4 TechAudit Voting
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
1.9k
Fork
121
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.