android-things

Powering off Android Things

这一生的挚爱 提交于 2019-11-27 02:30:20
问题 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 . But in Android Things , I don't see a way to shut down the device. If it is no problem, I'd love to just cut the power of my Raspberry Pi for this, but is that acceptable? Could it corrupt the SD-card? 回答1: 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

UART peripherals on Android Things for Raspberry Pi 3

偶尔善良 提交于 2019-11-26 17:04:12
问题 How do I use UART peripherals on Android Things for Raspberry Pi 3? It seems that by default it is assigned the linux console. 回答1: By default the UART port is mapped to the linux console, in order to prevent the kernel message from messing around with your peripheral. You can disable the console by mounting the boot partition from the sdcard on your host computer using: mount /dev/sdX1 /mnt/disk where sdX is replaced with your sdcard reader device name (running dmesg after inserting your

Android Things: Connect to Serial Debug Console

删除回忆录丶 提交于 2019-11-26 08:57:08
问题 I\'ve been trying to connect to the serial console of a Raspberry Pi 3 with Android Things using USB to TTL cable from my Linux ( Ubuntu ) machine. Despite I connected the cable as per the documentation, all I get when executing the minicom command is the following with no chance to type in any character . So I neither can see any kernel messages nor shell into the device. What am I missing? 回答1: Linux ( Ubuntu ) What's in? GNU Screen Minicom minicom one-line-command (short answer) minicom UI