2 Commits

Author SHA1 Message Date
Mike Lockwood
80248d44b5 SerialManager: Only allow opening files that are whitelisted serial port devices
Bug: 7367956

Change-Id: I82fd8d2694dda89332497d9eded5445a0262e12b
Signed-off-by: Mike Lockwood <lockwood@google.com>
2012-10-31 12:41:14 -07:00
Mike Lockwood
b01e8bf57b New Serial Manager API:
SerialManager: provides access to serial ports
SerialPort: for reading and writing data to and from serial ports

IO with both array based and direct ByteBuffers is supported.

Accessing serial ports requires android.permission.SERIAL_PORT permission

Each platform must configure list of supported serial ports in the
config_serialPorts resource overlay
(this is needed to prevent apps from accidentally accessing the bluetooth
or other system UARTs).

In addition, the platform uevent.rc file must set the owner to the
/dev/tty* files to "system" so the framework can access the port.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2012-02-10 10:51:19 -08:00