fastboot – How to display Boot Flow message in sample application android?

From the BootLoader,

I get the message as

read_is_device_unlocked() ops returned that device is UNLOCKED
Starting kernel …

Kernel command line: console=ttySC0,115200 androidboot.console=ttySC0 init=/init loop.max_part=7 androidboot.boottime=4.145 androidboot.bootreason=unknown androidboot.audio.sample_rate=44100 init_time=1563524635 blkdevparts=mmcblk0boot0:4194304(bootloader_a);mmcblk0boot1:4194304(bootloader_b) androidboot.revision=1.1 androidboot.board_id=0x774b100 init_invert_y=1 video=HDMI-A-1:d init_time=158928361 androidboot.selinux=permissive setenv bootargs init_invert_y=1 video=HDMI-A-1:d init_time=158928361 androidboot.selinux=permissive androidboot.serialno=00000011 androidboot.force_normal_boot=1 root=PARTUUID=$(ANDROID_SYSTEM_PARTUUID) **androidboot.verifiedbootstate=orange**

Then from kernel command line, I get message as androidboot.verifiedbootstate=”orange”

Now how I can intimate from kernal command line to framework/sample application to display this below message in UI. If it is orange, I need to display the message to end user.

Below is the description given from the link

YELLOW: Warning screen for LOCKED devices with custom root of trust set
ORANGE: Warning screen for UNLOCKED devices
RED (eio): Warning screen for dm-verity corruption
RED (no os found): No valid OS found