I have a small screen attached to my Raspberry Pi and according to the documentation for the screen:
Write the image to a TF card and append the following lines to the config.txt file which is located in the root of your TF card:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
You must make sure that there are no spaces on either side of the equal sign.
But I can't do this on the Android Things drive, as the disk image is not readable
The original answer was found HERE, and my saviour gave his answer HERE
Create a mounting position:
mkdir ~/mnt/sd
Mount the sd card:
sudo mount -t msdos /dev/disk2s1 ~/mnt/sd
Make changes to the config.txt, in my case:
max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
To unmount:
sudo umount ~/mnt/sd/