# Android 自动填充故障排除

{% hint style="success" %}
对应的[官方文档地址](https://bitwarden.com/help/article/auto-fill-android-troubleshooting/)
{% endhint %}

如果您使用 [Android 自动填充](/docs/password-manager/autofill/autofill-from/autofill-from-android.md)时遇到问题，请首先验证您的 Android 版本是否与您选择的自动填充方法兼容。Bitwarden 支持几种不同的自动填充方法，具体取决于您的 Android 版本：

| 选项            | 要求的版本...       | 要求同时启用...        |
| ------------- | -------------- | ---------------- |
| 自动填充服务        | Android 8+     | -                |
| 内嵌自动填充        | Android 11+    | 自动填充服务，支持内嵌的 IME |
| ~~Draw-Over~~ | ~~Android 6+~~ | ~~无障碍~~          |
| 无障碍           | 所有 Android 版本  | -                |

接下来，确认登录项目保存的 URI 格式是否正确。在 Android 上，Password Manager 使用网站地址（例如 `https://gmail.com`）在网页浏览器中自动填充，以及使用包名称（例如 `com.google.android.gm`）在已安装的应用程序中自动填充。

{% hint style="danger" %}
对于要安装的应用程序，请务必**仅安装并自动填充来自受信任来源**（例如 Google Play Store 或 F-Droid）**的应用程序**，因为恶意应用程序可能会伪造知名应用程序的包名称。[了解更多](/docs/password-manager/autofill/troubleshoot-autofill/forming-uris-for-autofill.md#android)。
{% endhint %}

## 自动填充服务故障排除 <a href="#troubleshooting-the-autofill-service" id="troubleshooting-the-autofill-service"></a>

如果当您的设备聚焦在用户名或密码输入字段时，Bitwarden 自动填充服务叠加层不可见，您的设备可能需要启用特定于设备的设置：

**对于华为/荣耀设备**，请启用 Dropzone：

1. 打开华为/荣耀「优化器」App（也称为「手机管家」）。
2. 点击底部一行中间的 **Dropzone**。
3. 向右滑动切换开关以允许 Dropzone。

**对于 Oppo 和其他设备**，请启用「浮动窗口」：

1. 打开 Android 设置 App。
2. 导航到**隐私/安全**。
3. 找到**浮动窗口**或**应用管理**，然后点击打开。
4. 向右滑动切换开关以允许「浮动窗口」。

## 无障碍服务故障排除 <a href="#troubleshooting-the-accessibility-service" id="troubleshooting-the-accessibility-service"></a>

使用无障碍服务遇到的最常见的问题是，**Android 电池优化**设置会自动关闭服务（如无障碍服务）以保护电池。要解决这个问题，**请关闭针对 Bitwarden 的电池优化**。

如果您持续遇到无障碍服务的问题：

1. 请再次检查您的电池优化设置。如果针对 Bitwarden 的电池优化处于开启状态，请将其关闭。
2. 如果您使用电池保护程序或任务管理器 App，请尝试将其禁用，看看是否会有所改变。如果有，请将 Bitwarden 添加到例外列表中。
3. 检查内置的任务管理器。您需要调出正在运行的 App 视图，然后按住 App 图标或向上滑动 Bitwarden App，然后选择**锁定**。

请注意，如果您曾经强制停止了 Bitwarden App，该服务也会挂起。

{% hint style="success" %}
此网站 <https://dontkillmyapp.com/>，或许可以帮助您确定设备的默认电池优化配置。
{% endhint %}

## ~~Draw-Over 疑难解答~~ <a href="#troubleshooting-draw-over" id="troubleshooting-draw-over"></a>

~~Draw-Over 与 Bitwarden 自动填充功能的交互方式有所不同，具体取决于您所使用的 Android 版本。如果遇到问题，请根据下表进行检查：~~

| 版本             | 描述                                    |
| -------------- | ------------------------------------- |
| ~~Android 5~~  | ~~**不可用**，默认授予权限。~~                   |
| ~~Android 6~~  | ~~**要求**使用无障碍，因为弹出式窗口是唯一可用的选项。~~      |
| ~~Android 7+~~ | ~~**可选**。如果您只想使用自动填充快速操作磁贴而不使用弹出窗口。~~ |

{% hint style="info" %}
如果您仍然无法正常使用 Android 自动填充功能，请[联系我们](https://bitwarden.com/contact)。
{% endhint %}


---

# 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://help.ppgg.in/docs/password-manager/autofill/troubleshoot-autofill/troubleshooting-android-auto-fill.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.
