Android 配置字接入指南
数据定义
附件:Questionnaires for Diagnostic_UDSonIP_DCDV3.7主线版.xlsx(DCD V3.7 主线版诊断问卷表,配置字的数据定义来源)
代码接入指南
仅部分配置字接入了 SystemProperty 或 Settings( 根据使用频率以及场景是否通用)
通过 SystemProperty
property_get("persist.vendor.vehicle.config.xxx", config_xxx, "default_value");相关代码 :
http://gerrit.auto.mioffice.cn/c/platform/vendor/micar/proprietary/interfaces/+/12632
通过 Settings
int configXxx = Settings.Global.getInt(
mContentResolver,
MiCarSettings.Global.VEHICLE_CONFIG_XXX,
0/*invalid config*/);相关代码 :
http://gerrit.auto.mioffice.cn/c/cockpit/core/platform/frameworks/MiCarCore/+/10202
"mi.car.VEHICLE_CONFIG_AUDIO_AMP",
"mi.car.VEHICLE_CONFIG_ADD",
"mi.car.VEHICLE_CONFIG_DAC",
"mi.car.VEHICLE_CONFIG_HV_BATT_VOLT",
"mi.car.VEHICLE_CONFIG_TRANSMISSION_DRIVELINE",MiCarSettings 接入指南 : MiCarCore使用规范
通过信号
通过查找 SOA 服务接口定义表格 MS11(E2/E3 备份 | 弃用) 中,具体配置字对应的信号,参考 信号接入指南 的方式,来获取具体配置字