summaryrefslogtreecommitdiffstats
path: root/tools/ota/make-update-script.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/ota/make-update-script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ota/make-update-script.c b/tools/ota/make-update-script.c
index 0fb7ed0c3..225dc526a 100644
--- a/tools/ota/make-update-script.c
+++ b/tools/ota/make-update-script.c
@@ -171,7 +171,7 @@ int main(int argc, char *argv[]) {
printf("assert compatible_with(\"0.2\") == \"true\"\n");
// if known, make sure the device name is correct
- const char *device = getenv("TARGET_PRODUCT");
+ const char *device = getenv("TARGET_DEVICE");
if (device != NULL) {
printf("assert getprop(\"ro.product.device\") == \"%s\" || "
"getprop(\"ro.build.product\") == \"%s\"\n", device, device);