create a python binary for update_device
Test: local OTA
Bug: 279622634
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f5dd1b90061ef92623974b839af9b4dc12376d2b)
Merged-In: If8cbae45b3b9911ab41b5d5272412b18edc6186a
Change-Id: If8cbae45b3b9911ab41b5d5272412b18edc6186a
diff --git a/scripts/Android.bp b/scripts/Android.bp
index bbd3a4e..ed84e31 100644
--- a/scripts/Android.bp
+++ b/scripts/Android.bp
@@ -50,3 +50,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,
+ },
+ },
+}