[OpenThread][lib] Update library

OpenThread library commit hash:
42ecab1a2495960c33fa9590ad9111c7034abc19

Change-Id: I8bc83bb1a984298c9c997f79365f55eb97808b6b
diff --git a/BUILD.gn b/BUILD.gn
index df3b616..5648551 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -25,7 +25,7 @@
 #  POSSIBILITY OF SUCH DAMAGE.
 #
 
-static_library("lib-ot-core") {
+source_set("lib-ot-core") {
 
  cflags_cc = [ "-Wno-non-virtual-dtor" ]
 
@@ -132,6 +132,8 @@
     "src/core/net/udp6.cpp",
     "src/core/radio/radio_callbacks.cpp",
     "src/core/radio/radio_platform.cpp",
+    "src/core/radio/radio.cpp",
+    "src/core/radio/radio.hpp",
     "src/core/thread/address_resolver.cpp",
     "src/core/thread/announce_begin_server.cpp",
     "src/core/thread/announce_sender.cpp",
@@ -168,10 +170,26 @@
     "src/core/utils/jam_detector.cpp",
     "src/core/utils/parse_cmdline.cpp",
     "src/core/utils/slaac_address.cpp",
+    "src/ncp/ncp_base.cpp",
+    "src/ncp/ncp_base_dispatcher.cpp",
+    "src/ncp/ncp_base_radio.cpp",
+    "src/ncp/ncp_base.hpp",
+    "src/ncp/ncp_base_mtd.cpp",
+    "src/ncp/ncp_base_ftd.cpp",
+    "src/ncp/ncp_config.h",
+    "src/ncp/changed_props_set.cpp",
+    "src/ncp/changed_props_set.h",
+
     "src/lib/hdlc/hdlc.cpp",
+    "src/lib/hdlc/hdlc.hpp",
     "src/lib/spinel/spinel.c",
     "src/lib/spinel/spinel_decoder.cpp",
+    "src/lib/spinel/spinel_decoder.hpp",
     "src/lib/spinel/spinel_encoder.cpp",
+    "src/lib/spinel/spinel_encoder.hpp",
+    "src/lib/spinel/spinel_buffer.cpp",
+    "src/lib/spinel/spinel_buffer.hpp",
+    "src/lib/platform/exit_code.c",
     "third_party/mbedtls/repo/library/md.c",
     "third_party/mbedtls/repo/library/md_wrap.c",
     "third_party/mbedtls/repo/library/memory_buffer_alloc.c",
@@ -196,7 +214,7 @@
     "third_party/mbedtls/repo/library/ssl_ticket.c",
     "third_party/mbedtls/repo/library/ssl_tls.c",
     "third_party/mbedtls/repo/library/aes.c",
-    "third_party/mbedtls/repo/library/ecp.c"
+    "third_party/mbedtls/repo/library/ecp.c",
   ]
 
   # Remove the example as it is not meant for compilation
@@ -209,9 +227,10 @@
     "src",
     "src/core",
     "src/ncp",
+    "src/lib/spinel",
     "third_party",
     "third_party/mbedtls",
-    "third_party/mbedtls/repo/include"
+    "third_party/mbedtls/repo/include",
   ]
 
   defines = [
@@ -219,7 +238,10 @@
     "OPENTHREAD_FTD=1",
     "SPINEL_PLATFORM_HEADER=\"spinel_platform.h\"",
     "OPENTHREAD_CONFIG_FILE=<openthread-config-android.h>",
+    "OPENTHREAD_SPINEL_CONFIG_OPENTHREAD_MESSAGE_ENABLE=1",
     "PACKAGE_NAME=\"OPENTHREAD-CORE\"",
-    "PACKAGE_VERSION=\"1.0.0\""
+    "PACKAGE_VERSION=\"1.0.0\"",
+    "OPENTHREAD_CONFIG_LOG_PLATFORM=1",
+    "OPENTHREAD_CONFIG_LOG_LEVEL=6",
   ]
 }
diff --git a/include/openthread-config-android.h b/include/openthread-config-android.h
index 2df68cd..6f1659f 100644
--- a/include/openthread-config-android.h
+++ b/include/openthread-config-android.h
@@ -51,13 +51,13 @@
 #define OPENTHREAD_CONFIG_JOINER_ENABLE 1
 
 /* Define to 1 if you want to use legacy network support */
-#define OPENTHREAD_CONFIG_LEGACY_ENABLE 1
+#define OPENTHREAD_CONFIG_LEGACY_ENABLE 0
 
 /* Define to 1 to enable the NCP UART interface. */
-#define OPENTHREAD_CONFIG_NCP_UART_ENABLE 1
+#define OPENTHREAD_CONFIG_NCP_UART_ENABLE 0
 
 /* Define to 1 to enable posix platform. */
-#define OPENTHREAD_PLATFORM_POSIX 1
+#define OPENTHREAD_PLATFORM_POSIX 0
 
 /* Define to 1 if you want to enable Service */
 #define OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE 1