# Android Background Permission Workarounds

**URL:** <https://forum.avicennaresearch.com/t/android-background-permission-workarounds/1248>\
**Category:** Reference\
**Created:** [June 16, 2025, 9:18am UTC](https://forum.avicennaresearch.com/t/android-background-permission-workarounds/1248 "2025-06-16T09:18:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mojtaba](https://forum.avicennaresearch.com/letter_avatar_proxy/v4/letter/m/e56c9b/32.png) [@mojtaba](https://forum.avicennaresearch.com/u/mojtaba)\
**Post date:** [June 16, 2025, 9:18am UTC](https://forum.avicennaresearch.com/t/android-background-permission-workarounds/1248/1 "2025-06-16T09:18:57Z")

</div>

This guide provides instructions on how to configure various Android devices to allow the Avicenna app to run reliably in the background.  
Each device manufacturer has custom battery optimization and permission settings that may interfere with background app activity. Follow the instructions below for your specific device.

## Xiaomi Devices

### MIUI 10 (Android 6.0-9.0)

**1. Enable Autostart**

1. Go to **Settings** → **Manage Apps** , and select **Avicenna**.
2. Enable **Autostart**.

> [!note]  
> For older models: Open the **Security** app → **Permissions** , and enable **Autostart** for **Avicenna**.

**2. Allow Background Permissions**

1. Go to **Settings** → **Manage Apps** , and select **Avicenna**.
2. Tap **Permissions** , and enable **Start in background**.

### MIUI 11 (Android 7.0-10.0)

**1. Enable Autostart**

1. Go to **Phone Settings** → **Apps** → **Manage apps** , and select **Avicenna**.
2. Enable **Autostart** and confirm if prompted.

**2. Background Settings**

1. Go to **Settings** → **Additional settings** → **Battery & performance** → **Manage apps battery usage**.
2. Under **Saving power in the background** , tap **Choose apps** , and select **Avicenna**.
3. Under **Background settings** , select **No restrictions**.

### MIUI 12 (Android 9.0 – 11.0)

**1. Enable Autostart**

- **Option 1:** Open the **Security** app → **Permissions (or Manage Apps)** → **Autostart**. Enable **Autostart** for **Avicenna**.
- **Option 2:** Go to **Settings** → **Apps** → **Manage apps** → select **Avicenna** → enable **Autostart**.

**2. Auto-Remove Permissions**

1. Go to **Settings** → **Apps**.
2. Choose **Avicenna** → **App info**.
3. Go to **Permissions**.
4. Disable the option **Remove permissions if an app isn’t used**.

### MIUI \> 12

**1. Autostart**

- Open the **Security** App.

- Tap **Permissions**.

- Tap **Autostart**.

- Enable **Autostart** for the **Avicenna** app.

**2. Background Restriction**

- Go to **Phone Settings**.

- Tap **Battery & performance**.

- Tap **Manage apps battery usage**.

- Tap **Choose apps**.

- Select the **Avicenna** app.

- Under **Background Settings** , tap **No restrictions**.

## OnePlus Devices

1. Go to **Settings**.
2. Tap **Advanced**.
3. Tap **Recent app management**.
4. Select **Normal clear** (This clears the task list and cache but should not clear background processes).

## Huawei Devices

### Android 7.x, 8.x

1. Open the **Phone Manager** app.
2. Swipe left and tap **Lock screen cleanup**.
3. Ensure **Avicenna** is set to **Don’t close**.

### Android 9.x and above

- Go to **Settings**.

- Tap **Battery**.

- Find the **Avicenna** app in the list.

- Disable **Manage Automatically** for **Avicenna**.

- In the prompt that appears, ensure **Auto-launch** , **Secondary launch** , and **Run in background** are all enabled.

### Protected Apps (e.g., Huawei Mate 8)

- Go to **Settings** → **Advanced Settings** → **Battery Manager** → **Protected apps**.
- Enable **Avicenna** as a protected app.

## Oppo Devices

### Android 9

1. Go to **Phone Settings** → **App Management**.
2. Select **Avicenna**.
3. Enable **Allow Auto Startup**.
4. Tap **Power Saver** and select **Allow Background Running**.

#### For Oppo devices with a Security Center:

1. Go to **Phone Settings** → **Security Center** → **Privacy Permissions** → **Startup manager**.
2. Choose **Avicenna** , and allow the app to run in the background.

#### On some Oppo devices (e.g., R9, R11, A37f):

1. Go to **Phone Settings** → **Battery** → **Others**.
2. Find **Avicenna** in the list, and disable all battery-saving settings for it.

#### On some other Oppo devices:

1. Go to **Phone Settings** → **Battery and storage** → **Battery manager**.
2. Go to **Power consumption details** → **Optimize for excessive power consumption**.
3. Find **Avicenna** in the list, and disable the optimization switch.

### Android 10

**1. Background Mode**

1. Go to **Personalized/Personal energy saving** settings for the **Avicenna** app.
2. Configure the following:
  - **Running in background** : Allow / Enable
  - **Prohibit running in background** : Disable
  - **Intelligently restrict running in background** : Disable

**2. Auto Start**

- **Path 1** : Go to **Apps** → **Security Center** → **Privacy Permissions** → **Auto-run management** → enable **Avicenna**.
- **Path 2** : Go to **Phone Settings** → **Application Management** → **Running tab** → enable **Avicenna**.
- **Path 3** : Go to **Phone Settings** → **App Management** → **Startup Management** → choose **Allow Auto Startup**.

### Android 11

**1. Background Mode & Auto Start**

1. Go to **Phone Settings** → **App management**.
2. Select **Avicenna**.
3. Tap **Data usage details**.
4. Enable **Background data**.
5. Go back to the **Avicenna** app settings page.
6. Tap **Battery usage** and ensure the following are enabled:
  - **Allow foreground activity** : Enable
  - **Allow background activity** : Enable
  - **Allow auto launch** : Enable

**2. Disable Auto-Remove Permissions**

1. Go to **Phone Settings** → **Avicenna** app settings.
2. Disable **Remove permissions when app is not used**.

### Android 12

**1. Background Mode**

1. Go to **Phone Settings** → **Battery**.
2. Tap **Save power** (or similar battery saving mode).
3. Enable the **Background activity** option for **Avicenna** (or ensure general background activity is not restricted).

**2. Auto Start**

1. Go to **Phone Settings** → **Apps** → **Auto launch**.
2. Choose **Avicenna** and enable the switch.

**3. Disable Auto-Remove Permissions**

1. Go to **Phone Settings** → **Apps** → choose **Avicenna**.
2. Disable **Remove permissions if app is unused**.
3. Go to **Permissions** → disable the option **Remove permissions and free up space**.

### Android 13

**1. Background Mode & Auto Start**

1. Go to **Phone Settings** → **Apps** → choose **Avicenna**.
2. Tap **Battery consumption (or Battery usage)**.
3. Ensure the following are enabled:
  - **Allow foreground activity** : Enable
  - **Allow background activity** : Enable
  - **Allow automatic start** (or **Allow auto launch** ): Enable

**2. Disable App Pausing**

1. Go to **Phone Settings** → **Apps** → choose **Avicenna**.
2. Disable **Pause app activity when not in use** (or similar).

**3. Disable Auto-Remove Permissions**

1. Go to **Phone Settings** → **Apps** → choose **Avicenna**.
2. Go to **Permissions**.
3. Disable the **Remove permissions and free up space** option.

### Newer Android versions (General Oppo)

**1. Background Mode**

1. Go to **Phone Settings** → **App Management** → choose **Avicenna**.
2. Tap **Power consumption protection (or similar)**.
3. Select **Allow Background Running**.

**2. Lock the App in Recents**

1. Open the recent apps view (usually by swiping up from the bottom or tapping a dedicated button).
2. Find the **Avicenna** app preview.
3. Pull down on the **Avicenna** app preview (or tap a menu icon associated with it).
4. Tap the lock icon that appears. This prevents the system from closing the app when clearing recent apps.

## Samsung Devices

### Android 13, 14, 15, and 16 (One UI 5, 6, 6.1, and 7)

**1. Background Usage Limits**

1. Go to **Settings** → **Battery and device care** → **Battery**.
2. Tap **Background usage limits**.
3. Disable **Put unused apps to sleep**.
4. Open **Sleeping apps** , and remove **Avicenna** if it appears in the list.
5. Open **Deep sleeping apps** , and remove **Avicenna** if it appears in the list.
6. Open **Never sleeping apps** , tap the **+** sign, and add **Avicenna**.

**2. Disable Auto-Remove Permissions**

1. Go to **Settings** → **Apps** , and select **Avicenna**.
2. Tap **Permissions**.
3. Disable **Remove permissions if app isn’t used**.

### Android 12

**1. Background Usage Limits**

1. Go to **Settings** → **Battery and device care** → **Battery** → **Background usage limits**.
2. Disable **Put unused apps to sleep**.
3. Make sure **Avicenna** is not listed under **Sleeping apps** or **Deep sleeping apps**.

**2. Disable Auto-Remove Permissions**

1. Go to **Settings** → **Apps** , and select **Avicenna**.
2. Tap **Permissions**.
3. Disable **Remove permissions if app isn’t used**.

### Android 11

**1. Disable Auto-Remove Permissions**

1. Go to **Settings** → **Apps** , and select **Avicenna**.
2. Tap **Permissions**.
3. Disable **Remove permissions if app isn’t used**.

---

_[View the full topic](https://forum.avicennaresearch.com/t/android-background-permission-workarounds/1248)._
