How to check if an Android device can be rebooted programmatically?

374 Views Asked by At

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?

1

There are 1 best solutions below

0
Kaung Khant Kyaw On

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.