Runtime.exec() : Reboot in Android?

后端 未结 5 1126
慢半拍i
慢半拍i 2020-11-28 07:41

I\'m looking for a solution which can be used to reboot a rooted device. I jknow that rebooting a device is very poor design for the user, as stated here, and it\'s not real

5条回答
  •  庸人自扰
    2020-11-28 08:04

    I find I can not do a reboot programatically.

    In addition, I can open a terminal window on my android phone using Terminal Emulator app, type su get the # prompt for root access and then type "#reboot" and I get the response "not permitted!"

    Any suggestions?

    OK, nevermind, I figured it out. On HTC phones the reboot command will not work even with SU root access. Need to invoke BUSYBOX to perform the reboot command.

提交回复
热议问题