RootcanalUtils.RootcanalController

public static class RootcanalUtils.RootcanalController
extends Object implements AutoCloseable

java.lang.Oggetto
com.android.sts.common.RootcanalUtils.RootcanalController


Riepilogo

Metodi pubblici

void close ()
RootcanalUtils.HciDevice createHciDevice ()

Crea un nuovo dispositivo HCI connettendoti al socket HCI di rootcanal.

String sendTestChannelCommand (String cmd, String... args)

Invia un comando al canale di prova rootcanal.

Metodi pubblici

chiudere

public void close ()

Getta
IOException

createHciDevice

public RootcanalUtils.HciDevice createHciDevice ()

Crea un nuovo dispositivo HCI connettendoti al socket HCI di rootcanal.

ritorna
RootcanalUtils.HciDevice Oggetto HciDevice che consente l'invio/la ricezione dalla porta HCI

Getta
DeviceNotAvailableException
IOException
InterruptedException

sendTestChannelCommand

public String sendTestChannelCommand (String cmd, 
                String... args)

Invia un comando al canale di prova rootcanal.

Invia il comando "help" per l'elenco dei comandi accettati da Rootcanal.

Parametri
cmd String : comando da inviare

args String : argomenti per il comando

ritorna
String Stringa di risposta da rootcanal

Getta
IOException
InterruptedException