Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ac7417f authored by Michael Bestas's avatar Michael Bestas Committed by Gerrit Code Review
Browse files

init: Fix serial number display for semc msm7x30 devices



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: default avatarMichael Bestas <mikeioannina@gmail.com>

Change-Id: Ib4e715fafc64dd47fb667aeb63a7307334cca844
parent 0e11087f
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
    }
}