From 80c72f9454f4def7a964b1a302f443dc43b5a8f1 Mon Sep 17 00:00:00 2001 From: Prateek Chaubey Date: Sat, 29 Jul 2017 14:12:41 +0200 Subject: [PATCH] land: set fp vendor based on board id Signed-off-by: karthick111 --- init/init_land.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/init/init_land.cpp b/init/init_land.cpp index c2fc1ae..6eece64 100644 --- a/init/init_land.cpp +++ b/init/init_land.cpp @@ -142,14 +142,26 @@ void vendor_load_properties() if (buf.find("S88537AA1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537AA1_V080_M20_MP_XM"); + property_set("persist.sys.fp.goodix", "0"); + property_set("persist.sys.fp.onstart", "1"); + property_set("persist.sys.fp.vendor", "searchf"); + property_set("ro.boot.fpsensor", "fpc"); } else if (buf.find("S88537AB1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537AB1_V080_M20_MP_XM"); + property_set("persist.sys.fp.goodix", "1"); + property_set("persist.sys.fp.onstart", "1"); + property_set("persist.sys.fp.vendor", "goodix"); + property_set("ro.boot.fpsensor", "gdx"); } else if (buf.find("S88537AC1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537AC1_V080_M20_MP_XM"); } else if (buf.find("S88537BA1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537BA1_V080_M20_MP_XM"); } else if (buf.find("S88537CA1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537CA1_V080_M20_MP_XM"); + property_set("persist.sys.fp.goodix", "0"); + property_set("persist.sys.fp.onstart", "1"); + property_set("persist.sys.fp.vendor", "searchf"); + property_set("ro.boot.fpsensor", "fpc"); } else if (buf.find("S88537EC1") != std::string::npos) { property_set("ro.build.display.wtid", "SW_S88537EC1_V080_M20_MP_XM"); } @@ -159,15 +171,4 @@ void vendor_load_properties() } else { property_set("ro.product.model", "Redmi 3S"); } - if (buf.find("S88537AA1") != std::string::npos) { - property_set("persist.sys.fp.goodix", "1"); - property_set("persist.sys.fp.onstart", "1"); - property_set("persist.sys.fp.vendor", "goodix"); - property_set("ro.boot.fpsensor", "gdx"); - } else { - property_set("persist.sys.fp.goodix", "0"); - property_set("persist.sys.fp.onstart", "1"); - property_set("persist.sys.fp.vendor", "searchf"); - property_set("ro.boot.fpsensor", "fpc"); - } }