# Android

Android 支持按 Wi-Fi 设置代理。**短板**：HTTP 代理的原生认证受限——新 Android 会让应用自己弹凭证框，不识别系统代理认证的应用会失败。

## 按 Wi-Fi 配代理（Android 10+）

1. **设置 → Wi-Fi → {你的网络} → 修改网络 → 高级选项**。
2. 代理：**手动**。
3. 主机名：`gate.helodata.io`（或 ISP IP）。
4. 端口：`7777`。
5. 绕过：`localhost,127.0.0.1`。
6. **保存**。

\[screenshot: Android Wi-Fi 代理表单]

Android **没有**代理认证字段——凭证由第一个发起认证请求的应用弹框输入。

## 系统级代理不够时

自带网络栈的应用（许多游戏、部分社交 App）完全忽略 Wi-Fi 代理。这类用：

* **Drony**（免费 VPN 形态应用，拦截流量并通过代理转发）— 免 root，支持认证
* **NetGuard** 或 **Tasker + AutoTools** 做按应用规则
* **已 root + ProxyDroid** 实现真正的带认证全局代理

这些工具配置：

| 字段  | 值                                    |
| --- | ------------------------------------ |
| 类型  | HTTP 或 SOCKS5                        |
| 主机  | `gate.helodata.io`（或 ISP IP）         |
| 端口  | `7777`                               |
| 用户名 | 完整代理用户名（网关）或 `helo_s1a2b3c4d5e`（ISP） |
| 密码  | 子账号密码                                |

## ADB 调试

```bash
adb shell settings put global http_proxy "gate.helodata.io:7777"
```

清除：

```bash
adb shell settings put global http_proxy :0
```

## 验证

在设备浏览器访问 `https://ipv4.icanhazip.com`。

## 常见陷阱

* **App 忽略系统代理** — 自带 SSL pin 或自研 HTTP 栈的应用常见，请用 Drony 或 root 方案。
* **Android Chrome HTTPS 目标失败** — 多为强制门户或 DNS 问题，`chrome://net-internals/#proxy` 排查。
* **按网络隔离** — 切到移动数据代理失效，每个 Wi-Fi 都需配置。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.helodata.com/helodata-zh/ji-cheng-zhi-nan/yi-dong-duan/android.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
