I have an application which runs a service continuously in the background even after restarting the device for this, I have used below receivers,
<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />
<action android:name="com.htc.intent.action.QUICKBOOT_POWERON" />
<action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
It was working fine till Android Oreo But in Android Pie, Service is not getting started until Phone is unlocked.
to start service after restart phone needs to be unlocked.
What is the solution to start service without unlocking the phone after the restart