app: aboot: update commandline for keymaster 1.0
Append new string to commandline to indicate that keymaster is loaded by
appsbl.
Change-Id: Ic8e66d8280103e60ee1d73355afbcf5ea83116e3
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index 1e134ba..cbe9dff 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -170,6 +170,7 @@
#if !VBOOT_MOTA
static const char *verity_mode = " androidboot.veritymode=";
static const char *verified_state= " androidboot.verifiedbootstate=";
+static const char *keymaster_v1= " androidboot.keymaster=1";
//indexed based on enum values, green is 0 by default
struct verified_boot_verity_mode vbvm[] =
@@ -352,6 +353,7 @@
ASSERT(0);
}
cmdline_len += strlen(verity_mode) + strlen(vbvm[device.verity_mode].name);
+ cmdline_len += strlen(keymaster_v1);
#endif
#endif
@@ -490,6 +492,9 @@
src = vbvm[device.verity_mode].name;
if(have_cmdline) -- dst;
while ((*dst++ = *src++));
+ src = keymaster_v1;
+ if(have_cmdline) --dst;
+ while ((*dst++ = *src++));
#endif
#endif
src = usb_sn_cmdline;