# ADB指令

## ADB开关

**X3pro眼镜**os 25.8.13以上的版本，增加ADB开关，可通过以下操作开启

* 在如图页面【眼镜设置】-【通用】页面中，滑动到最左边并触发 10 次撞墙效果后，开启/关闭 adb 模式

{% columns %}
{% column %}

<figure><img src="/files/ubHdYq0AKcgXczhwZX82" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}

<figure><img src="/files/IFgNgSxlVWcoNaYRIT7N" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

其他问题：[X3Pro adb无法识别解决方法](/rayneo-devdoc/chang-jian-wen-ti/faq/x3pro-adb-wu-fa-shi-bie-jie-jue-fang-fa.md)

**X2** 需开启adb安装指令才可安装apk：<mark style="color:red;">adb shell settings put global mercury\_install\_allowed 1</mark>

ps：使用webadb（网站）安装无须开启

## ADB指令

| **名称**                                            | **指令**                                                                                    |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| <mark style="color:red;">开启adb安装权限（for x2）</mark> | <mark style="color:red;">adb shell settings put global mercury\_install\_allowed 1</mark> |
| 安装应用                                              | adb install xxx/xxx.apk                                                                   |
| 调起setting                                         | adb shell am start -n com.android.settings/.Settings                                      |
| 启动应用                                              | adb shell am start XXX.package.name                                                       |
| 查询CPU相关占用                                         | adb shell top                                                                             |
| 查询内存                                              | adb shell dumpsys meminfo                                                                 |
| 关机                                                | adb reboot -p                                                                             |
| 重启                                                | adb reboot                                                                                |
| 卸载应用                                              | adb uninstall XXX.package.name                                                            |
| 查询三方apk包名                                         | adb shell pm list package -3                                                              |

\ <br>


---

# 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://rayneo.gitbook.io/rayneo-devdoc/chang-jian-wen-ti/adb-tiao-shi/adb-zhi-ling.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.
