提交 0d5733bd 编写于 作者: C chengjinsong2 提交者: cheng_jinsong
上级 85d86bd3
......@@ -163,7 +163,7 @@ std::string GetDeviceType(void)
{"fitnessWatch", "liteWearable"},
};
static const char *productType = nullptr;
const char *type = GetProperty("const.build.devicetype", &productType);
const char *type = GetProperty("const.product.devicetype", &productType);
if (type == nullptr) {
type = GetProperty("const.build.characteristics", &productType);
}
......
......@@ -94,7 +94,7 @@ int SetParameter(const char *key, const char *value)
const char *GetDeviceType(void)
{
static const char *productType = NULL;
const char *deviceType = GetProperty("const.build.devicetype", &productType);
const char *deviceType = GetProperty("const.product.devicetype", &productType);
if (deviceType != NULL) {
return deviceType;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册