Skip to content

Commit

Permalink
init: Fix serial number display for semc msm7x30 devices
Browse files Browse the repository at this point in the history
Add proper check since semc msm7x30 bootloader exports
"serialno" in cmdline instead of the standard androidboot.serialno,
so init doesn't pick it

Signed-off-by: Michael Bestas <[email protected]>

Change-Id: Ib4e715fafc64dd47fb667aeb63a7307334cca844
  • Loading branch information
mikeNG authored and Gerrit Code Review committed Oct 1, 2013
1 parent 0e11087 commit 5ac7417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@ static void import_kernel_nv(char *name, int for_emulator)
cnt = snprintf(prop, sizeof(prop), "ro.boot.%s", boot_prop_name);
if (cnt < PROP_NAME_MAX)
property_set(prop, value);
#ifdef HAS_SEMC_BOOTLOADER
} else if (!strcmp(name,"serialno")) {
property_set("ro.boot.serialno", value);
#endif
}
}

Expand Down

0 comments on commit 5ac7417

Please sign in to comment.