尧图网络 高端网站定制 · 原创设计
免费咨询热线
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/8/21 5:23:06
审计作业权限与操作留痕怎么做?RBAC、ABAC与区块链式操作日志的对比

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

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

📅 2026/9/30 7:55:05
51单片机驱动步进电机Proteus仿真全攻略:从电路到代码调试

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

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

📅 2026/9/17 16:01:42
MORE NEWS

更多资讯

📰

段式内存管理地址变换与越界检查:课堂练习4.1复盘

课堂练习4.1 的题目发下来的时候,我第一反应是这题应该不难——段式内存管理翻来覆去就那几个公式:拆地址、查段表、做检查、加基址。结果真拿起笔算第一道小题,还是卡了两分钟。卡的点不在于公式本身,而在于题干给的那组数字里藏…

📰

基于YOLOv8的舰船目标检测系统:从数据集标注到PyQt5界面集成

舰船目标检测这个方向,我前后折腾过三套方案,从最早的 YOLOv5 改配置文件,到后来用 YOLOv8 重新搭一套带界面的完整系统,中间踩的坑足够写一本小册子。很多人第一次接触这类项目,会觉得"不就是拿个预训练权重跑一…

📰

JMeter实战入门:以飞致云平台为靶标快速掌握接口测试核心技能

1. 为什么飞致云平台成了JMeter入门的“黄金练兵场”很多人第一次打开JMeter,面对空白的测试计划树和密密麻麻的线程组、HTTP请求、断言、监听器,第一反应是:这玩意儿到底在测什么?测谁?测完又怎么知道对不对&#xff…

📰

Mac读写NTFS移动硬盘的三种实用方案:从驱动到exFAT

朋友抱着一块移动硬盘来找我:“这个盘在Windows上拷满了资料,插到你Mac上试试能不能读?”我接过硬盘插上去,系统确实认出了分区,可当我试着往盘里拖新文件夹时,Mac直接弹窗拒绝。这块盘是NTFS格式&#xff…

📰

逐行拆解one-skill-to-rule-them-all的bash脚本:ID推导、归档扫描,以及你必须防住的三种静默失败

逐行拆解one-skill-to-rule-them-all的bash脚本:ID推导、归档扫描,以及你必须防住的三种静默失败 【免费下载链接】one-skill-to-rule-them-all The meta-skill that builds and improves all your skills, including itself. Watches your work session…

📰

银河麒麟v10 SP1安装Docker:前置问题、内核参数与离线部署指南

简介:银河麒麟V10 SP1 Server上安装Docker的实操手册,面向国产化服务器环境下的运维与开发人员,专门解决官方源未收录Docker服务端软件包、直接yum安装失败的问题。资料包含一个docx格式文档,压缩包体积仅17KB,篇幅短小…

TODAY

今日更新

THIS WEEK

本周精选

THIS MONTH

本月热门

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

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

📞 💬