Manifest & Permissions

Android Autostart Permission: OEM Settings Are Not a Portable API

“Autostart permission” usually refers to a manufacturer-specific device setting, not one portable Android permission that every app can request. Treat it as an environment-specific support issue, not the foundation of a background architecture.

By Updated 2 min read

Distinguish three different events

An app starting after device boot, a scheduled task resuming and an OEM allowing background activity are related but not identical. Android provides documented background and boot-related mechanisms, while manufacturers may add their own controls and restrictions.

The platform background-work guidance is the reliable starting point. A hardcoded intent to one manufacturer's settings screen can disappear or behave differently on another model or software version.

Build without assuming a permanent process

Use WorkManager for eligible persistent work and keep tasks idempotent. Persist business state rather than relying on an in-memory service to survive indefinitely. If a task is interrupted, the app should know whether it can safely retry.

For time-sensitive features, choose the documented API that matches the use case and test its restrictions. Do not present a vague “enable autostart” instruction as a substitute for implementing the correct scheduling model.

Make support diagnostics specific

Diagnostic field Why to collect it
Manufacturer and model Identifies OEM-specific behavior
Android and software version Settings can change between updates
Target SDK and app version Platform restrictions depend on the build
Feature and timing Separates scheduling delay from a failed task
Battery and background settings Helps reproduce the observed environment

Avoid collecting unnecessary personal device data. A concise, user-visible diagnostic report is better than uploading unrestricted system logs.

Do not force a settings loop

If you provide manufacturer-specific help, label it as optional guidance for that tested device family. Handle missing settings activities and let users decline. Never claim that a setting guarantees exact execution or permanently disables all platform restrictions.

Review the app's own declarations

APKLint can help inspect receivers and service-related manifest entries. It cannot modify OEM settings or verify that a background task ran on a user's device. The strongest fix is resilient scheduling and state recovery, with device-specific help only where evidence shows it is needed.

Sources and further reading

  1. Android Developers: Background work overview
  2. Android Developers: WorkManager

Reference review: 22 September 2026. Examples illustrate the workflow; check your installed versions, release artifact and account-specific Console requirements before applying them. This guide is not a claim that APKLint executed your project or verified your private account.

APKLint

Android inspection tools and practical release guides. About APKLint · Report a correction