Skip to content

Commit f6d27d6

Browse files
committed
补充 DeviceOs 类中的代码注释
1 parent 268eaa7 commit f6d27d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

library/src/main/java/com/hjq/device/compat/DeviceOs.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ public final class DeviceOs {
177177
"persist.mygote.build.id",
178178
"persist.sys.hiview.base_version",
179179
"ro.comp.hl.product_base_version" };
180+
/**
181+
* 实测下面的属性在 HarmonyOS 2.0、3.0、4.0、4.2 上面都存在,但是在 4.3 上面不存在
182+
* [ro.build.ohos.devicetype]: [phone]
183+
* [ro.build.ohos.devicetype]: [tablet]
184+
* [persist.sys.ohos.osd.cloud.switch]: [true]
185+
*/
186+
// static final String[] OS_CONDITIONS_HARMONY_OS = { "ro.build.ohos.devicetype",
187+
// "persist.sys.ohos.osd.cloud.switch" };
180188

181189
static final String OS_NAME_EMUI = "EMUI";
182190
/**

0 commit comments

Comments
 (0)