diff options
| author | Mike Lockwood <lockwood@android.com> | 2011-08-29 20:11:07 -0400 |
|---|---|---|
| committer | Mike Lockwood <lockwood@google.com> | 2012-02-10 10:51:19 -0800 |
| commit | b01e8bf57b7492b77e3445db51471edcbadda75e (patch) | |
| tree | efbff9d0094660d195d46322a23ce7bbd1a453ad /core/java/android/content/Context.java | |
| parent | 341ff2b08380fcab0f2313fb4feca732cf70f840 (diff) | |
| download | frameworks_base-b01e8bf57b7492b77e3445db51471edcbadda75e.zip frameworks_base-b01e8bf57b7492b77e3445db51471edcbadda75e.tar.gz frameworks_base-b01e8bf57b7492b77e3445db51471edcbadda75e.tar.bz2 | |
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>
Diffstat (limited to 'core/java/android/content/Context.java')
| -rw-r--r-- | core/java/android/content/Context.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index bfbd0ac..3d4e354 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -1789,6 +1789,17 @@ public abstract class Context { public static final String USB_SERVICE = "usb"; /** + * Use with {@link #getSystemService} to retrieve a {@link + * android.hardware.SerialManager} for access to serial ports. + * + * @see #getSystemService + * @see android.harware.SerialManager + * + * @hide + */ + public static final String SERIAL_SERVICE = "serial"; + + /** * Determine whether the given permission is allowed for a particular * process and user ID running in the system. * |
