From 9fdfc9b36cb64870dbb29fbeac75e79c13b10323 Mon Sep 17 00:00:00 2001 From: Vachounet Date: Sun, 16 Apr 2017 13:50:08 +0200 Subject: [PATCH] potter: cleanup init --- init/init_potter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/init/init_potter.cpp b/init/init_potter.cpp index f4554dc..510d4ff 100644 --- a/init/init_potter.cpp +++ b/init/init_potter.cpp @@ -50,6 +50,7 @@ void num_sims() { void vendor_load_properties() { std::string platform = property_get("ro.board.platform"); + if (platform != ANDROID_TARGET) return; @@ -63,9 +64,9 @@ void vendor_load_properties() property_set("ro.hw.radio", radio.c_str()); property_set("ro.hw.fps", "true"); - num_sims(); + num_sims(); - if (sku == "XT1687") { + if (sku == "XT1687") { property_set("ro.hw.ecompass", "true"); property_set("ro.hw.nfc", "false"); } @@ -74,3 +75,4 @@ void vendor_load_properties() property_set("ro.hw.nfc", "true"); } } +