From a368e0750bf2f87abbc770604c37d1d7080355ca Mon Sep 17 00:00:00 2001 From: deadman96385 Date: Thu, 26 Mar 2020 00:42:28 -0500 Subject: [PATCH] TEMP: Remove the logic for init --- init/init_troika.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/init/init_troika.cpp b/init/init_troika.cpp index ddf93db..6cbeaf2 100644 --- a/init/init_troika.cpp +++ b/init/init_troika.cpp @@ -40,27 +40,27 @@ namespace android { namespace init { void vendor_load_properties() { - int boot_device = stoi(android::base::GetProperty("ro.boot.device", "")); +// std::string boot_device = android::base::GetProperty("ro.boot.device", ""); - switch (boot_device) { - case troika: +// switch (boot_device) { +// case troika: /* Moto One Action */ property_set("ro.product.model", "Motorola_One_Action"); property_set("ro.build.product", "one_action"); property_set("ro.product.device", "one_action"); property_set("ro.vendor.product.device", "one_action"); - break; - case kane: - /* Moto One Vision */ - property_set("ro.product.model", "Motorola_One_Vision"); - property_set("ro.build.product", "OnePlus3"); - property_set("ro.product.device", "one_vision"); - property_set("ro.vendor.product.device", "one_vision"); - break; - default: - LOG(ERROR) << __func__ << ": unexcepted boot device!"; +// break; +// case kane: +// /* Moto One Vision */ +// property_set("ro.product.model", "Motorola_One_Vision"); +// property_set("ro.build.product", "one_vision"); +// property_set("ro.product.device", "one_vision"); +// property_set("ro.vendor.product.device", "one_vision"); +// break; +// default: +// LOG(ERROR) << __func__ << ": unexcepted boot device!"; } } } // namespace init -} // namespace android \ No newline at end of file +//} // namespace android \ No newline at end of file -- 2.20.1