diff --git a/android/gatt.c b/android/gatt.c
index 31558d0..49ca2b6 100644
--- a/android/gatt.c
+++ b/android/gatt.c
return true;
}
+bool bt_gatt_set_security(const bdaddr_t *bdaddr, int sec_level)
+{
+ struct gatt_device *device;
+
+ device = find_device_by_addr(bdaddr);
+ if (!device)
+ return false;
+
+ return set_security(device, sec_level);
+}
+
static bool set_auth_type(struct gatt_device *device, int auth_type)
{
int sec_level;
diff --git a/android/gatt.h b/android/gatt.h
index 5ba9161..027dda3 100644
--- a/android/gatt.h
+++ b/android/gatt.h
bool bt_gatt_connect_app(unsigned int id, const bdaddr_t *addr);
bool bt_gatt_disconnect_app(unsigned int id, const bdaddr_t *addr);
+bool bt_gatt_set_security(const bdaddr_t *bdaddr, int sec_level);