From 159f998f9c69586e02d44be69d675edfd20555f0 Mon Sep 17 00:00:00 2001 From: Vachounet Date: Wed, 12 Apr 2017 11:28:17 +0200 Subject: [PATCH] potter: set some XT1687 props --- init/init_potter.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/init/init_potter.cpp b/init/init_potter.cpp index e753ba3..f4554dc 100644 --- a/init/init_potter.cpp +++ b/init/init_potter.cpp @@ -61,6 +61,16 @@ void vendor_load_properties() std::string radio = property_get("ro.boot.radio"); property_set("ro.hw.device", device.c_str()); property_set("ro.hw.radio", radio.c_str()); + property_set("ro.hw.fps", "true"); - num_sims() + num_sims(); + + if (sku == "XT1687") { + property_set("ro.hw.ecompass", "true"); + property_set("ro.hw.nfc", "false"); + } + else { + property_set("ro.hw.ecompass", "false"); + property_set("ro.hw.nfc", "true"); + } }