RootcanalUtils.RootcanalController

public static class RootcanalUtils.RootcanalController
extends Object implements AutoCloseable

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


Sommaire

Méthodes publiques

void close ()
RootcanalUtils.HciDevice createHciDevice ()

Créez un nouveau périphérique HCI en vous connectant à la prise HCI de rootcanal.

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

Envoyez une commande au canal de test rootcanal.

Méthodes publiques

proche

public void close ()

Lance
IOException

createHciDevice

public RootcanalUtils.HciDevice createHciDevice ()

Créez un nouveau périphérique HCI en vous connectant à la prise HCI de rootcanal.

Retour
RootcanalUtils.HciDevice Objet HciDevice qui permet d'envoyer/recevoir depuis le port HCI

Lance
DeviceNotAvailableException
IOException
InterruptedException

sendTestChannelCommand

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

Envoyez une commande au canal de test rootcanal.

Envoyez la commande `help` pour la liste des commandes acceptées de Rootcanal.

Paramètres
cmd String : commande à envoyer

args String : arguments de la commande

Retour
String Chaîne de réponse de rootcanal

Lance
IOException
InterruptedException