# 设备监控

在开发期间需要严格控制功耗问题，我们提供了监控方式，以方便开发者调试。该APK自身也会产生功耗，基本在70-100mA之间。

#### 安装监控APK

{% file src="/files/RV4262EBRGKXfS7MO2hn" %}

#### 赋予顶层权限

进入设置： [ADB指令](/rayneo-devdoc/chang-jian-wen-ti/adb-tiao-shi/adb-zhi-ling.md)

找到systemtools->高级->显示在其他应用的上层 开启该选项

<figure><img src="/files/MBQVFki6qEFAhY9CxxPX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aIi9srDMrylwCNHjBqWY" alt=""><figcaption></figcaption></figure>

#### Unity调用API开启

可翻阅API文档：[SystemMonitoring（设备监控）](/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid/ying-yong-she-bei-jian-kong.md)

<figure><img src="/files/cmUswWzU82E2BtjmAKKB" alt=""><figcaption></figcaption></figure>

#### ADB调用开启

* 开启：
  * adb shell am start-foreground-service -n com.ffalcon.rayneo.systemwindows/.FloatingButtonService --el type {X}

> 注：{X}中的值需要翻阅 [SystemMonitoring（设备监控）](/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid/ying-yong-she-bei-jian-kong.md) 中的SystemMonitoringInfoType定义的值

<br>

* 关闭：adb shell am force-stop com.ffalcon.rayneo.systemwindows

<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/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/platformandroid/she-bei-jian-kong.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.
