Android emulator has its own implementation of a virtual serial port. It always reserves the first two virtual serial ports:
- The first one is used to receive kernel messages. This is done by adding the console=ttyS0 parameter to the kernel command line.
- The second one is used to set up the legacy qemud channel, used on older Android platform revisions. This is done by adding android.qemud=ttyS1 on the kernel command line. The qemud channel is implemented as a Linux daemon process used as a channel between the guest and emulator. In the latest emulator version, a QEMU pipe is used instead of qemud.
The following table defines goldfish serial port registers:
|
Offset
|
Name
|
Abstract
|
|
0x00
|
PUT_CHAR
|
W: Write ... |