diff --git a/android/bluetooth.c b/android/bluetooth.c
index 2a7c0e6..7a203af 100644
--- a/android/bluetooth.c
+++ b/android/bluetooth.c
return adapter.name;
}
+bool bt_device_is_bonded(const bdaddr_t *bdaddr)
+{
+ if (g_slist_find_custom(bonded_devices, bdaddr, device_match))
+ return true;
+
+ return false;
+}
+
static bool rssi_above_threshold(int old, int new)
{
/* only 8 dBm or more */
diff --git a/android/bluetooth.h b/android/bluetooth.h
index dddbf20..3eef7a4 100644
--- a/android/bluetooth.h
+++ b/android/bluetooth.h
uint8_t bt_get_device_android_type(const bdaddr_t *addr);
const char *bt_get_adapter_name(void);
+bool bt_device_is_bonded(const bdaddr_t *bdaddr);