diff --git a/android/android-tester.c b/android/android-tester.c
index 5e60397..a259b56 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
const void *test_data;
pid_t bluetoothd_pid;
+ struct hw_device_t *device;
const bt_interface_t *if_bluetooth;
const btsock_interface_t *if_sock;
return;
}
+ data->device = device;
+
data->if_bluetooth = ((bluetooth_device_t *)
device)->get_bluetooth_interface();
if (!data->if_bluetooth) {
data->if_bluetooth = NULL;
}
+ data->device->close(data->device);
+
if (data->bluetoothd_pid)
waitpid(data->bluetoothd_pid, NULL, 0);