HarmonyOS deviceInfo获取的设备信息中,哪一项可以确定是HarmonyOS系统

需要一个字段能明确的确定该设备是否为HarmonyOS系统。后台根据这个标识调用相应的推送接口。

目前获得的信息如下:

the value of the manufactureInfo is :HUAWEI
the value of the device brand is :HUAWEI
the value of the deviceInfo marketName is :HUAWEI Mate 60 Pro
the value of the deviceInfo productSeries is :xxx
the value of the deviceInfo productModel is :xxx
the value of the deviceInfo softwareModel is :xxx
the value of the deviceInfo hardwareModel is :xxx
the value of the deviceInfo serial is :
  the value of the deviceInfo bootloaderVersion is :bootloader
the value of the deviceInfo abiList is :arm64-v8a
the value of the deviceInfo securityPatchTag is :2024/07/01
the value of the deviceInfo displayVersion is :xxx
the value of the deviceInfo incrementalVersion is :default
the value of the deviceInfo osReleaseType is :xxx
the value of the deviceInfo osFullName is :xxx
the value of the deviceInfo majorVersion is :2
the value of the deviceInfo seniorVersion is :2
the value of the deviceInfo featureVersion is :0
the value of the deviceInfo buildVersion is :0
the value of the deviceInfo sdkApiVersion is :12
the value of the deviceInfo firstApiVersion is :1
the value of the deviceInfo versionId is :xxx
the value of the deviceInfo buildType is :default
the value of the deviceInfo buildUser is :default
the value of the deviceInfo buildHost is :default
the value of the deviceInfo buildTime is :default
the value of the deviceInfo buildRootHash is :default
the value of the deviceInfo udid is :
the value of the deviceInfo distributionOSName is :
the value of the deviceInfo distributionOSVersion is :xxx
the value of the deviceInfo distributionOSApiVersion is :xxx
the value of the deviceInfo distributionOSReleaseType is :xxx
the value of the deviceInfo odid is :xxxx
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
HarmonyOS
2025-01-10 09:21:09
1.0w浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
Excelsior_abit

目前没有获取原生系统名字"HarmonyOS"的接口,建议本地维护一个默认值,HarmonyOS应用正式名称为:“HarmonyOS NEXT”。

分享
微博
QQ
微信
回复
2025-01-10 12:41:35


相关问题
HarmonyOS 怎么删除cookie里某一项
479浏览 • 1回复 待解决
设备信息udid无法获取
2428浏览 • 1回复 待解决
HarmonyOS 如何获取对应设备信息
247浏览 • 1回复 待解决
HarmonyOS 应用如何获取设备信息
611浏览 • 1回复 待解决
HarmonyOS如何获取规范格式设备信息
777浏览 • 1回复 待解决
如何获取设备CPU信息
2988浏览 • 1回复 待解决
HarmonyOS 系统信息获取方式
1037浏览 • 1回复 待解决
mysql 初始用户定是root吗?
4682浏览 • 1回复 待解决
HarmonyOS 开发获取设备id方式
1392浏览 • 1回复 待解决
如何获取设备相关信息
2398浏览 • 1回复 待解决