Move libstatssocket to apex

Bug: 145923416
Test: m
Test: fastboot flashall
Change-Id: Ieae64fb975bf7986f987e1f27548e041db2c505e
diff --git a/apex/statsd/Android.bp b/apex/statsd/Android.bp
index c0f84a0..baa1c25 100644
--- a/apex/statsd/Android.bp
+++ b/apex/statsd/Android.bp
@@ -20,6 +20,7 @@
 
 apex_defaults {
     native_shared_libs: [
+        "libstatssocket",
         "libstatspull",
         "libstats_jni",
     ],
@@ -76,4 +77,4 @@
         //TODO (b/148620413): remove platform.
          "//apex_available:platform",
     ],
-}
\ No newline at end of file
+}
diff --git a/cmds/statsd/Android.bp b/cmds/statsd/Android.bp
index 956fd29..1bcf44e 100644
--- a/cmds/statsd/Android.bp
+++ b/cmds/statsd/Android.bp
@@ -120,13 +120,14 @@
         "libstatslog",
         "libstatsmetadata",
         "libsysutils",
+	// TODO(b/145923087): move to shared when statsd is moved to the apex
+        "libstatssocket",
         "libutils",
     ],
     shared_libs: [
         "libbinder",
         "libincident",
         "liblog",
-        "libstatssocket",
         "statsd-aidl-cpp",
     ],
 }