I'm trying to create a single-use devices (kiosk app) and follow tutorial below: https://codelabs.developers.google.com/codelabs/cosu/index.html?index=..%2F..%2Findex#0
The code works very normal, except that "reboot" case. Every after reboot, it fails to lock the app, keep fall into "LOCK_TASK_EXITING" every after rebooting.
07-05 15:45:14.583 785 802 V ActivityManager: Broadcast: Intent { act=android.app.action.LOCK_TASK_ENTERING flg=0x10 cmp=com.google.codelabs.cosu/.DeviceAdminReceiver (has extras) } ordered=false userid=0 callerApp=ProcessRecord{6438256 785:system/1000}
07-05 15:45:14.584 785 802 V ActivityManager: Broadcast: Intent { act=android.app.action.LOCK_TASK_EXITING flg=0x10 cmp=com.google.codelabs.cosu/.DeviceAdminReceiver } ordered=false userid=0 callerApp=ProcessRecord{6438256 785:system/1000}