summaryrefslogtreecommitdiffstats
path: root/tools/ota/make-update-script.c
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-18 03:03:49 +0100
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-18 03:03:49 +0100
commitff3d93821e22588ce607c17252334ca2d9ca54a4 (patch)
treee806acbb6f71dbdafc09df3bc0d8a0a4ae1b7905 /tools/ota/make-update-script.c
parentInitial Contribution (diff)
downloadandroid_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar.gz
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar.bz2
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar.lz
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar.xz
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.tar.zst
android_bootable_recovery-ff3d93821e22588ce607c17252334ca2d9ca54a4.zip
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);