Commit 576b01f4 authored by Vishal Mahaveer's avatar Vishal Mahaveer Committed by Nishanth Menon

[LIB][ANDROID] Extend android product name to include new pastries

Extend android product name to include KitKat and Lollipop.
Signed-off-by: default avatarVishal Mahaveer <vishalm@ti.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 1b86e7c5
......@@ -61,6 +61,8 @@ const char *android_pastry_names[PASTRY_ID_MAX] = {
[PASTRY_HC] = "HoneyComb",
[PASTRY_ICS] = "Ice Cream Sandwich",
[PASTRY_JB] = "Jelly Bean",
[PASTRY_KK] = "KitKat",
[PASTRY_LP] = "Lollipop",
[PASTRY_UNKNOWN] = "Unknown"};
......@@ -219,8 +221,12 @@ android_pastry_id android_pastry_get(void)
pastry_id = PASTRY_HC;
else if ((version == 4) && (rev_major == 0))
pastry_id = PASTRY_ICS;
else if ((version == 4) && (rev_major >= 1))
else if ((version == 4) && (rev_major >= 1) && (rev_major <= 3))
pastry_id = PASTRY_JB;
else if ((version == 4) && (rev_major == 4))
pastry_id = PASTRY_KK;
else if (version == 5)
pastry_id = PASTRY_LP;
else
pastry_id = PASTRY_UNKNOWN;
}
......
......@@ -51,6 +51,8 @@ typedef enum {
PASTRY_HC,
PASTRY_ICS,
PASTRY_JB,
PASTRY_KK,
PASTRY_LP,
PASTRY_UNKNOWN,
PASTRY_ID_MAX
} android_pastry_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment