acloud: Support acloud reconnect command.
Bug: 118648283
Test: m acloud && atest acloud_test && acloud reconnect
1. remote instance, no ssh tunnel established.
- tunnel established , adb connect and vnc started.
2. remote instance, ssh tunnel established, no adb connect/vnc started.
- adb connect and vnc started.
3. remote instance, ssh tunnel established, adb connected but no vnc started.
- vnc started.
4. remote instance, ssh tunnel established, no connected but vnc started.
- adb started.
5. local instance, no adb connected/vnc started.
- adb connect and vnc started.
6. local instance, no adb connected but vnc started.
- adb connect.
7.local instance, adb connected but no vnc started.
- vnc started.
Change-Id: I19e3fea1d312666907deeb3e2069cae2458107ea
diff --git a/Android.bp b/Android.bp
index 5e65614..c152cb0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -41,6 +41,7 @@
libs: [
"acloud_create",
"acloud_delete",
+ "acloud_reconnect",
"acloud_internal",
"acloud_list",
"acloud_metrics",
@@ -71,6 +72,7 @@
libs: [
"acloud_create",
"acloud_delete",
+ "acloud_reconnect",
"acloud_internal",
"acloud_list",
"acloud_proto",
@@ -159,6 +161,14 @@
}
python_library_host{
+ name: "acloud_reconnect",
+ defaults: ["acloud_default"],
+ srcs: [
+ "reconnect/*.py",
+ ],
+}
+
+python_library_host{
name: "acloud_metrics",
defaults: ["acloud_default"],
srcs: [