create a python binary for update_device
Test: local OTA
Bug: 279622634
Change-Id: If8cbae45b3b9911ab41b5d5272412b18edc6186a
diff --git a/scripts/Android.bp b/scripts/Android.bp
index 1e854a7..e86a9f2 100644
--- a/scripts/Android.bp
+++ b/scripts/Android.bp
@@ -58,3 +58,22 @@
"update_metadata-protos-python",
],
}
+
+python_binary_host {
+ name: "update_device",
+ srcs: [
+ "update_device.py",
+ ],
+ main: "update_device.py",
+ libs: [
+ "update_payload",
+ ],
+ version: {
+ py2: {
+ enabled: false,
+ },
+ py3: {
+ enabled: true,
+ },
+ },
+}