RootcanalUtils.RootcanalController

public static class RootcanalUtils.RootcanalController
extends Object implements AutoCloseable

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


Résumé

Méthodes publiques

void close()
RootcanalUtils.HciDevice createHciDevice()

Créez un appareil HCI en vous connectant au socket HCI de rootcanal.

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

Envoyer une commande au canal de test rootcanal.

Méthodes publiques

fermer

public void close ()

Génère
IOException

createHciDevice

public RootcanalUtils.HciDevice createHciDevice ()

Créez un appareil HCI en vous connectant au socket HCI de rootcanal.

Renvoie
RootcanalUtils.HciDevice Objet HciDevice qui permet d'envoyer/de recevoir des données à partir du port HCI

Génère
DeviceNotAvailableException
IOException
InterruptedException

sendTestChannelCommand

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

Envoyer une commande au canal de test rootcanal.

Envoi de la commande "help" pour obtenir la liste des commandes acceptées par Rootcanal.

Paramètres
cmd String: commande à envoyer

args String: arguments de la commande

Renvoie
String Chaîne de réponse de rootcanal

Génère
IOException
InterruptedException