Android Background Permission Workarounds

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 SettingsManage 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 SettingsManage 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 SettingsAppsManage apps, and select Avicenna.
  2. Enable Autostart and confirm if prompted.

2. Background Settings

  1. Go to SettingsAdditional settingsBattery & performanceManage 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 SettingsAppsManage apps → select Avicenna → enable Autostart.

2. Auto-Remove Permissions

  1. Go to SettingsApps.
  2. Choose AvicennaApp info.
  3. Go to Permissions.
  4. Disable the option Remove permissions if an app isn’t used.

MIUI > 12

1. Autostart

2. Background Restriction

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

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

  • Go to SettingsAdvanced SettingsBattery ManagerProtected apps.
  • Enable Avicenna as a protected app.

Oppo Devices

Android 9

  1. Go to Phone SettingsApp 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 SettingsSecurity CenterPrivacy PermissionsStartup 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 SettingsBatteryOthers.
  2. Find Avicenna in the list, and disable all battery-saving settings for it.

On some other Oppo devices:

  1. Go to Phone SettingsBattery and storageBattery manager.
  2. Go to Power consumption detailsOptimize 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 AppsSecurity CenterPrivacy PermissionsAuto-run management → enable Avicenna.
  • Path 2: Go to Phone SettingsApplication ManagementRunning tab → enable Avicenna.
  • Path 3: Go to Phone SettingsApp ManagementStartup Management → choose Allow Auto Startup.

Android 11

1. Background Mode & Auto Start

  1. Go to Phone SettingsApp 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 SettingsAvicenna app settings.
  2. Disable Remove permissions when app is not used.

Android 12

1. Background Mode

  1. Go to Phone SettingsBattery.
  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 SettingsAppsAuto launch.
  2. Choose Avicenna and enable the switch.

3. Disable Auto-Remove Permissions

  1. Go to Phone SettingsApps → 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 SettingsApps → 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 SettingsApps → choose Avicenna.
  2. Disable Pause app activity when not in use (or similar).

3. Disable Auto-Remove Permissions

  1. Go to Phone SettingsApps → 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 SettingsApp 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.