android: Add missing HAL IPC error status definitions
android: Improve hal_ipc_cmd helper

Handle error response inside helper so that users don't expecting any
response don't need to provide dummy buffer only for error (which is
already return value of helper).
android: Drop unnecessary capabilities

This makes the android daemon to drop it capabilities and only retain
the following ones:
	CAP_NET_ADMIN: Allow use of MGMT interface
	CAP_NET_BIND_SERVICE: Allow use of privileged PSM
android: Add handling of Ctrl-c to haltest

This patch adds handling of Ctrl-C so it does not break tool.
To exit tool Ctrl-D is used on empty command line.
Ctrl-D on not empty command line works like Delete key.
core: Remove NET_RAW from list of required capabilities

This is a left-over from times that raw HCI sockets were used. It's not
needed anymore.
core: Fix crash while processing SDP records

This was introduced by commit 073714c3ff70379131be3e19d9ccb8b85fe3f0d9
which attempted to treat the return of sdp_process but caused the crash
bellow because sdp_process actually calls search_completed_cb if it
fails:
Invalid read of size 8
   at 0x44FC93: search_process_cb (sdp-client.c:214)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40A2DF: main (main.c:587)
 Address 0x59febd0 is 16 bytes inside a block of size 72 free'd
   at 0x4A074C4: free (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x3D4604D9AE: g_free (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x44FE44: search_completed_cb (sdp-client.c:192)
   by 0x4732E7: sdp_process (sdp.c:4341)
   by 0x44FCD8: search_process_cb (sdp-client.c:206)
   by 0x3D46047E05: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048157: ??? (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x3D46048559: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3600.3)
   by 0x40A2DF: main (main.c:587)
android: Add hidhost defines and structures to header file
android: Add definition of buffer sizes to haltest

This patch adds definition of sizes needed for text representation
of bluetooth address and uuid, this remove usage of magic numbers.
android: Add calls to hidhost interface to haltest

This patch adds code so hidhost interface can be tested.
android: Add help to hidhost in haltest

This patch adds help to methods of hidhost interface.
This also adds tab completion for hidhost.
android/hal: Fix receiving of commands with no response parameter

This fix receiving of error response in case command has no reply
parameters.
tools/mgmt-tester: Add a couple of LE-only connectable-off tests
android: Add initial code for hidhost

This adds the initial implementation of .init, .connect and .disconnect
android: Use hh prefix instead of bt_hidhost

This replaces the use of bt_hidhost as function prefix with hh.
android/hal: Make hal.h self contained
android: Define helper payload field in hal_msg_hdr

This will allow for convenient access to payload.
android: Fix non-existing event definition

There is no ERROR notification id.
android: Define minimum legal notification event ID

All legal events IDs should be above this value.
android/hal: Add initial code for notification handling

This adds a dedicated thread that will read from notification sockets
and dispatch it to appropriate service notification function.
android/hal: Add initial support for handling adapter notifications

Only adapter state callback is handled for now.