wayne-common: init: Remove non-common model detection
Signed-off-by: Isaac Chen <isaacchen@isaacchen.cn>
This commit is contained in:
parent
445a16da35
commit
48f31a3614
1 changed files with 0 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue