From 3e75ba2f223d4f7c8e0794bfaf1a8de6e3ba0a2f Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Mon, 7 Nov 2016 08:42:29 +0800 Subject: [PATCH] land: init: Ensure we're running on the correct device Change-Id: I2c5d5bf9fbdb0fbb7b4e042199d497a3e4be795b --- init/init_land.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init/init_land.cpp b/init/init_land.cpp index 55ed7f0..8937c04 100644 --- a/init/init_land.cpp +++ b/init/init_land.cpp @@ -109,6 +109,13 @@ static void init_alarm_boot_properties() void vendor_load_properties() { + char device[PROP_VALUE_MAX]; + int rc; + + rc = property_get("ro.cm.device", device); + if (!rc || strncmp(device, "land", PROP_VALUE_MAX)) + return; + import_kernel_cmdline(0, import_cmdline); property_set("ro.product.wt.boardid", board_id);