尧图网络 高端网站定制 · 原创设计
免费咨询热线
400-888-6620
免费获取方案
CarService的创建与signal的传递三(数据模拟)
替换如下报错了 喜闻乐见07-3013:53:43.918216216I servicemanager: Found android.hardware.automotive.vehicle.IVehicle/defaultindevice VINTF manifest. 07-3013:53:43.918224224I ServiceManager: Waitingforserviceandroid.hardware.automotive.vehicle.IVehicle/defaulton/dev/binder... 07-3013:53:44.455476621D EGL_emulation: app_time_stats:avg33.70msmin30.92msmax38.32mscount3007-3013:53:44.64110321032W ServiceManager: Waited one secondforandroid.hardware.automotive.vehicle.IVehicle/default(isservicestarted? are binder threads started and available?)07-3013:53:44.642216216I servicemanager: Sinceandroid.hardware.automotive.vehicle.IVehicle/defaultcould not be found, trying to start it as a lazy AIDLservice07-3013:53:44.6482161260W libc:Unable tosetpropertyctl.interface_starttoaidl/android.hardware.automotive.vehicle.IVehicle/default:error code: 0x20 07-3013:53:44.6482161260I servicemanager: Tried to start aidlserviceandroid.hardware.automotive.vehicle.IVehicle/default as a lazy service, but was unable to. Usually this happens when aserviceis not installed, butiftheserviceis intended to be used as a lazy service,thenit may be configured incorrectly. 07-3013:53:44.76600E init:Control message: Could notfindaidl/android.hardware.automotive.vehicle.IVehicle/defaultforctl.interface_start from pid:216(/system/bin/servicemanager)07-3013:53:44.919224546W carwatchdogd: Watchdogserviceis not initialized.se权限/home/maqi/android13-r44/device/generic/car/common/sepolicy/file_contexts记得 s0后面空出一行不然能编过但是起不来# Audio HAL/vendor/bin/hw/android\.hardware\.audio\.service-caremu u:object_r:hal_audio_caremu_exec:s0 /(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle-OemVhalService u:object_r:hal_vehicle_default_exec:s0json路径automotive/vhal,三处配置都要对应上#car.mk# Auto modulesPRODUCT_PACKAGES\android.hardware.automotive.vehicle-OemVhalService\vehicle_props_oem.json\android.hardware.broadcastradio2.0-service\android.hardware.audio.service-caremu#Cauto hardwarestd::make_uniqueOemVehicleHardware(/vendor/etc/automotive/vhal/vehicle_props_oem.json, nullptr);# Android.bprebuilt_etc{name:vehicle_props_oem.json, src:vehicle_props.json, filename:vehicle_props_oem.json, // 重命名安装文件避免跟默认的 vehicle_props.json 冲突 sub_dir:automotive/vhal, // 安装路径/vendor/etc/automotive/vhal/vehicle_props_oem.json vendor: true,}adb获取属性adb shell cmd car_service get-carpropertyconfig **All properties** Property:0x11400101, Property name:0x11400101, access:0x1, changeMode:0x0, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400207, Property name:0x11400207, access:0x1, changeMode:0x2, config:[], fs min:1.000000, fs max:10.000000 Property:0x11400407, Property name:0x11400407, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 areaId:0x0, f min:0.000000, f max:0.000000, i min:1, i max:8, i64 min:0, i64 max:0 Property:0x11400408, Property name:TURN_SIGNAL_STATE, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400e03, Property name:HAZARD_LIGHTS_STATE, access:0x1, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x11400e13, Property name:HAZARD_LIGHTS_SWITCH, access:0x3, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 Property:0x21400601, Property name:0x21400601, access:0x3, changeMode:0x1, config:[], fs min:0.000000, fs max:0.000000 areaId:0x1, f min:0.000000, f max:0.000000, i min:0, i max:3, i64 min:0, i64 max:0excel表格完美对应启动日志 所有类型得数据均已经初始化行1323: 07-3018:00:57.936240240I OemVhalService: OEM VHAL Service starting... 行1324: 07-3018:00:57.936240240I OemVehicleHardware: loading properties from /vendor/etc/automotive/vhal/vehicle_props_oem.json 行1326: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400408 type:INT32(TURN_SIGNAL_STATE)initialValuewriteres ok?1行1327: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400e03 type:INT32(HAZARD_LIGHTS_STATE)initialValuewriteres ok?1行1328: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400e13 type:INT32(HAZARD_LIGHTS_SWITCH)initialValuewriteres ok?1行1329: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400207 type:FLOAT(PERF_VEHICLE_SPEED)initialValuewriteres ok?1行1330: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400407 type:INT32(GEAR_SELECTION)initialValuewriteres ok?1行1331: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x11400101 type:STRING(INFO_VIN)initialValuewriteres ok?1行1332: 07-3018:00:57.937240240I OemVehicleHardware: InitProp 0x21400601 type:INT32(VENDOR_FRAGRANCE_SWITCH)initialValuewriteres ok?1行1333: 07-3018:00:57.937240240I OemVehicleHardware: loaded7properties 行1335: 07-3018:00:57.938240240I OemVhalService: OEM VHALserviceregistered as android.hardware.automotive.vehicle.IVehicle/default只读 写入会报错maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service set-property-value 0x1140040702Cannotseta property: android.os.ServiceSpecificException: Failed tosetvalue for: 0x11400407, areaId: 0x0, error: android.os.ServiceSpecificException: failed tosetvalue: android.hardware.automotive.vehicle.VehiclePropValue{timestamp:52746268485, areaId:0, prop:289408007, status:0, value: android.hardware.automotive.vehicle.RawPropValues{int32Values:[2], floatValues:[], int64Values:[], byteValues:[], stringValue:}}(code4)(code4)可读写属性手动下设和获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service set-property-value 0x11400e1300Property(0x11400e13)issetto0successfully maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x11400e130Property:0x11400e13, status:0, timestamp:117038357140, zone: 0x0, floatValues:[], int32Values:[0], int64Values:[], bytes:[], string:float类型获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x114002070Property:0x11400207, status:0, timestamp:7343356352, zone: 0x0, floatValues:[0.0], int32Values:[0], int64Values:[], bytes:[], string:String类型获取maqiQiMa:~/vhal-excel-demo$ adb shell cmd car_service get-property-value 0x114001010Property:0x11400101, status:0, timestamp:7343380825, zone: 0x0, floatValues:[], int32Values:[0], int64Values:[], bytes:[], string: MYOEM2024DEMO0001用到的指令汇总adb shell dumpsys car_service|grep-A20CAR.PropertyHalServiceadb shell cmd car_service list-vhal-props adb shell cmd car_service get-vhal-backend adb shell cmd car_service set-property-value 0x11400e1301adb shell cmd car_service get-property-value 0x114001010adb shellpkill-fcom.android.car
RELATED

相关推荐

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】

HarmonyOS应用开发实战:猫猫大作战-UTD 类型的使用【apple_product_name】 前言 欢迎加入开源鸿蒙跨平台社区:https://openharmonycrossplatform.csdn.net 猫猫大作战的截图分享、存档导入、道具图片传输都依赖 UTD(Uniform DataType&#…

📅 2026/11/11 21:28:37
审计作业权限与操作留痕怎么做?RBAC、ABAC与区块链式操作日志的对比

审计作业权限与操作留痕怎么做?RBAC、ABAC与区块链式操作日志的对比

审计作业权限与操作留痕怎么做?RBAC、ABAC 与区块链式操作日志的对比 背景:底稿是涉密资料,谁动过必须说得清 审计底稿属于涉密资料,谁看过、改过、导出过,必须留痕。事务所内部有项目组成员、复核人、质控、合伙人等不…

📅 2026/11/12 6:13:18
51单片机驱动步进电机Proteus仿真全攻略:从电路到代码调试

51单片机驱动步进电机Proteus仿真全攻略:从电路到代码调试

1. 项目概述:从仿真到驱动的闭环验证 最近在整理一些老项目的资料,翻到了一个当年做课程设计和毕业设计时经常用到的经典组合:用51单片机去驱动一个步进电机。这个项目听起来基础,但真正想把它调通、调稳,并且能在Prot…

📅 2026/11/10 20:33:13
MORE NEWS

更多资讯

📰

工地太忙根本没时间复习考试?考电工证的800元考前押题怎么用

工地太忙根本没时间复习考试?考电工证的800元考前押题怎么用 你天天在工地赶工期,连吃饭的时间都紧张,哪还有精力复习电工证考试?这不是你一个人的烦恼,很多在一线的工人,尤其是电工、焊工这些特种作业岗位,面对考试压力时,常常是“一边干活一边焦…

📰

电工班长工作业的描述怎么写?学历不高怕报不上名?全国通用证书你别错过

电工班长工作业的描述怎么写?学历不高怕报不上名?全国通用证书你别错过 你不是学历高,但想考电工班长工作业的描述?别担心, 全国通用 的证书,报名材料也不复杂,下面给你讲清楚。 电工班长工作业的描述怎么写?…

📰

电工证遗失声明模板怎么写?内部消息教你避免复审延期

电工证遗失声明模板怎么写?内部消息教你避免复审延期 证书过期了不知道怎么复审延期?你不是一个人。我有个老同事,河南鹤壁的水利工地电工,去年因为电工证遗失没及时补办,结果错过复审时间,直接被暂停上岗资格,工地那边还罚了他半个月工资,差点影响了…

📰

报名考电工证能退费吗证全国通用吗

电工证报名能退费吗怎么报名 这些实操考试细节你必须知道 实操考试心里没底怕挂科,报名流程又复杂,很多人第一次接触电工证报考,心里七上八下的。尤其是像济源的建筑工人,平时在工地干活,对电工证的重要性认识不够,等到要上岗或者转岗时才意识到证书的…

📰

胶州什么地方考电工证?工地太忙根本没时间复习考试,良心建议来了

胶州什么地方考电工证?工地太忙根本没时间复习考试,良心建议来了 工地太忙根本没时间复习考试,这是很多一线工人的真实写照。尤其是在胶州这样的工业重镇,电工证几乎是每个建筑工、安装工、维修工等岗位的“敲门砖”。但很多人因为工作太忙、信息不对称,…

📰

低压电工证静海怎么考?保姆级教程帮你避开所有坑

低压电工证静海怎么考?保姆级教程帮你避开所有坑 不知道去哪报名怕被中介坑?低压电工证静海怎么考?别急,本文是针对河南地区想考低压电工证的朋友们量身打造的保姆级教程,帮你从报名到考试全流程搞懂,省心又省钱。…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

读完文章,想聊聊您的网站?

告诉我们您的行业与需求,资深顾问一对一梳理方案与报价,全程免费。

📞 💬