简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM