I am using a Android device having custom ROM and need to reboot that device. I am able to reboot the device from hardware side, but I want to programmatically check if the device can be rebooted.
Is there any way to do that?
I am using a Android device having custom ROM and need to reboot that device. I am able to reboot the device from hardware side, but I want to programmatically check if the device can be rebooted.
Is there any way to do that?
Check the device is rooted or not.
If the device is rooted, then request root permission and you can reboot the device.
Here is how to check root access is available or not.