diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index f7cc073..a1ad71e 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
In case of an error, the error response will be returned.
Opcode 0x1b - Add Service command/response
+
+ Command parameters: Server (4 octets)
+ GATT Service ID (18 octets)
+ Number of Handles (4 octet)
+
+ Valid GATT Service ID: GATT ID (17 octets)
+ Is Primary (1 octet)
+
+ Valid GATT ID: UUID (16 octets)
+ Instance ID (1 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1c - Add Included Service command/response
Opcode 0x1d - Add Characteristic command/response
Opcode 0x1e - Add Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index d3cff8c..aacd392 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
int32_t conn_id;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_ADD_SERVICE 0x1b
+struct hal_cmd_gatt_server_add_service {
+ int32_t server_if;
+ struct hal_gatt_srvc_id srvc_id;
+ int32_t num_handles;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00