Re: Serial Manager API

874 views
Skip to first unread message

Christopher Tate

unread,
Feb 19, 2013, 5:50:41 PM2/19/13
to android-...@googlegroups.com
If it is not in the SDK as published, then it is not public API and can be expected to vanish or change arbitrarily in the future.

--
christopher tate
android framework engineer



On Tue, Feb 19, 2013 at 2:11 PM, Matt Reimer <mre...@sdgsystems.com> wrote:
I see the commit below (in 4.1 and later) implements support for a new SerialManager API. But I see no mention of it on developer.android.com.

Is this a supported API?

Matt

commit b01e8bf57b7492b77e3445db51471edcbadda75e
Author: Mike Lockwood <xx...@android.com>
Date:   Mon Aug 29 20:11:07 2011 -0400

    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 <xx...@android.com>

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Prabhaharan Rajamanickam

unread,
Sep 2, 2014, 2:31:44 AM9/2/14
to android-...@googlegroups.com, ct...@google.com
Hi Chris,

Can you please let me know where I can find serial manager API's? I want to write an app which communicates through serial port.
Any web link will be helpful.

thanks and regards,
Prabha.

Christopher Tate

unread,
Sep 2, 2014, 5:21:18 PM9/2/14
to Prabhaharan Rajamanickam, android-...@googlegroups.com
There is no public serial API.  The commit that Matt Reiner mentioned is not guaranteed to be present or function as desired on any Android device.

--
christopher tate
android framework engineer

Reply all
Reply to author
Forward
0 new messages