TEMP: Remove the logic for init
authordeadman96385 <seanhoyt963@gmail.com>
Thu, 26 Mar 2020 05:42:28 +0000 (00:42 -0500)
committerdeadman96385 <seanhoyt963@gmail.com>
Thu, 26 Mar 2020 05:42:46 +0000 (00:42 -0500)
init/init_troika.cpp

index ddf93db66f5e1f2f632d4c291f7ab37fee063f40..6cbeaf23d13350e6d43be1944d4e3f421d28377d 100644 (file)
@@ -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