Allow SSH to function with more strict android network stack.
This change relocates SSH listening port to external network namespace,
that is not under direct android supervision. SSH is functional even when
ssh_key_fetcher is not.
Test: manual
BUG=67899876
Change-Id: Ia729103d7bf0ec84abb5969d8b4edf733e525702
diff --git a/Android.mk b/Android.mk
index b6cdfc2..65cdaca 100644
--- a/Android.mk
+++ b/Android.mk
@@ -258,6 +258,9 @@
LOCAL_MODULE := sshd
LOCAL_CFLAGS += -Wno-unused-parameter
+ifneq ($(filter gce_x86 calypso, $(TARGET_DEVICE)),)
+LOCAL_CFLAGS += -DANDROID_GCE $(GCE_VERSION_CFLAGS)
+endif
LOCAL_C_INCLUDES := \
external/zlib \