> For the complete documentation index, see [llms.txt](https://docs.bird.com/toky-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/toky-en/integrationstokyapp/xiaomi-control-background-running-in-miui.md).

# Xiaomi - Control Background Running in MIUI

#### MIUI Autostart

* Open Settings
* Go to Permissions
* Go to Autostart
* Enable desired apps

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

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

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

#### Lock Apps in Recent

* Go to Recent
* Tap and hold on the app
* Tap on the lock icon
* The app is now locked

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

#### App Battery Saver

* Go to Settings
* Battery & performance
* Choose apps
* Select apps and set “No restrictions”

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

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

#### Enable show in Lock Screen

* Go to Settings
* Permissions
* Other Permissions
* Select Toky
* Accept all permissions included Show on Lock Screen

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

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

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.bird.com/toky-en/integrationstokyapp/xiaomi-control-background-running-in-miui.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
