summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorIsaac Chen <isaacchen@isaacchen.cn>2018-10-20 20:51:07 +0530
committerIsaac Chen <isaacchen@isaacchen.cn>2018-12-02 11:02:30 +0800
commit48f31a3614c5910c970b8abf6cfc7929f0806280 (patch)
tree84244af2a56216e05b5fa88cda858d8940dabe96 /init
parent445a16da35fd275e2c57587bada978393dfb868a (diff)
wayne-common: init: Remove non-common model detection
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
Diffstat (limited to 'init')
-rw-r--r--init/init_wayne.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/init/init_wayne.cpp b/init/init_wayne.cpp
index 4fccce4..4964568 100644
--- a/init/init_wayne.cpp
+++ b/init/init_wayne.cpp
@@ -76,28 +76,6 @@ static void init_finger_print_properties()
}
}
-static void init_setup_model_properties()
-{
- std::ifstream fin;
- std::string buf;
-
- std::string product = GetProperty("ro.product.name", "");
- if (product.find("wayne") == std::string::npos)
- return;
-
- fin.open("/proc/cmdline");
- while (std::getline(fin, buf, ' '))
- if (buf.find("hwversion") != std::string::npos)
- break;
- fin.close();
-
- if (buf.find("2.31.0") != std::string::npos) {
- property_set("ro.product.model", "MI 6X MIKU");
- } else {
- property_set("ro.product.model", "MI 6X");
- }
-}
-
static void init_alarm_boot_properties()
{
char const *boot_reason_file = "/proc/sys/kernel/boot_reason";
@@ -160,7 +138,6 @@ void vendor_load_properties()
init_alarm_boot_properties();
check_device();
init_finger_print_properties();
- init_setup_model_properties();
property_set("dalvik.vm.heapstartsize", heapstartsize);
property_set("dalvik.vm.heapgrowthlimit", heapgrowthlimit);