java - Android BOOT_COMPLETE not triggering (Shell does) -
i trying start service when phone boots up, , works shell command "adb shell broadcast -a android.intent.action.boot_completed -n com.example.adrian.wifi/.receiver" when restart phone nothing happens. manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.adrian.wifi" > <uses-permission android:name="android.permission.access_wifi_state" /> <uses-permission android:name="android.permission.change_wifi_state" /> <uses-permission android:name="android.permission.receive_boot_completed" /> <application android:allowbackup="true" android:icon="@mipmap/ic_launcher" > <service android:name=".wifi" android:enabled="true" android:exported="true" > </service> <receiver android:name=".receiver" android:enabled="t...