Powering off Android Things

后端 未结 3 1950
无人及你
无人及你 2020-12-05 17:05

Usually, to power down an Android device, you do this via the power button of course.

You can also do adb shell and reboot -p.

3条回答
  •  攒了一身酷
    2020-12-05 18:04

    Android (and by extension, Android Things) should have no problem with a sudden loss of power. The core operating system is housed in read-only partitions on the file system, so there is no risk of corrupting the OS from a failed in-flight write.

    Also, reboot -p should still work if you wanted to use that in testing or development. Going even farther with it, you could connect a Gpio with an InputDriver that emits KEYCODE_POWER to add your own power button back to the system if you felt you needed it.

提交回复
热议问题