I have an android application which lists installed and system applications separately. When the user tries to reboot the device from my application it will open my application instead of default home launcher.
But when the device is rebooted to 'safe mode'
all logic crashes .ie, the device rebooted to my application in safe mode but it does not list any installed applications and stops its working.
Is it possible to make my application work in
'Safe mode'
also?Is there any way to prevent the device from going to
'safe mode'
while running my application like using aRECEIVE_BOOT_COMPLETED
broadcastreceiver?What is device admin applications? Is it helpfull in this situation?
Is it possible to detect safe mode programmatically?
Thanks in advance
BroadcastReceiver
and check yourself. – Farahfarand