We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268eaa7 commit f6d27d6Copy full SHA for f6d27d6
library/src/main/java/com/hjq/device/compat/DeviceOs.java
@@ -177,6 +177,14 @@ public final class DeviceOs {
177
"persist.mygote.build.id",
178
"persist.sys.hiview.base_version",
179
"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" };
188
189
static final String OS_NAME_EMUI = "EMUI";
190
/**
0 commit comments