Add Android build file

Test: None
Ignore-AOSP-First: cherry-pick
Merged-In: Ibb185f4517fbf0739d797ebf97794172d1142454
Change-Id: Ibb185f4517fbf0739d797ebf97794172d1142454
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..1dd9f1e
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,38 @@
+python_binary_host {
+    name: "protoc-gen-custom_grpc",
+    main: "python/_build/protoc-gen-custom_grpc.py",
+    srcs: ["python/_build/protoc-gen-custom_grpc.py"],
+    libs: ["libprotobuf-python"],
+}
+
+genrule {
+    name: "pandora-python-src",
+    tools: [
+        "aprotoc",
+        "protoc-gen-custom_grpc"
+    ],
+    cmd: "$(location aprotoc)" +
+         "    -Iexternal/pandora/bt-test-interfaces" +
+         "    -Iexternal/protobuf/src" +
+         "    --plugin=protoc-gen-grpc=$(location protoc-gen-custom_grpc)" +
+         "    --grpc_out=$(genDir)" +
+         "    --python_out=$(genDir)" +
+         "    $(in)",
+    srcs: [
+        "pandora/a2dp.proto",
+        "pandora/host.proto",
+    ],
+    out: [
+        "pandora/a2dp_grpc.py",
+        "pandora/a2dp_pb2.py",
+        "pandora/host_grpc.py",
+        "pandora/host_pb2.py",
+    ]
+}
+
+python_library_host {
+    name: "pandora-python",
+    srcs: [
+        ":pandora-python-src",
+    ],
+}
diff --git a/python/_build/protoc-gen-custom_grpc.py b/python/_build/protoc-gen-custom_grpc.py
new file mode 120000
index 0000000..88d6a75
--- /dev/null
+++ b/python/_build/protoc-gen-custom_grpc.py
@@ -0,0 +1 @@
+protoc-gen-custom_grpc
\ No newline at end of file