当前位置:   article > 正文

Android12 Vehicle Hal_android源码中vehiclehal

android源码中vehiclehal

Set

  1. VehicleHalManager::set
  2. EmulatedVehicleHal::set
  3. VehicleHalClient::setProperty VehicleHalClient实际是VehicleConnector对象,最后会调用VehicleServer的onSetProperty
  4. VehicleServer::onSetProperty
  5. EmulatedVehicleHal::onPropertyValue
    VehicleEmulator::doSetValueFromClient 此处可以适配通讯协议,通知其他
    EmulatedVehicleHal::doHalEvent
    doHalEvent会调用到VehicleHalManager::onHalEvent,最终由BatchingConsumer取出该事件,回调给上层

Get

  1. VehicleHalManager::get -> mHal->get(requestedPropValue, &status);
  2. EmulatedVehicleHal::get -> auto internalPropValue = mPropStore->readValueOrNull(requestedPropValue); 最终从PropStore中获取数据

https://blog.csdn.net/Jun_P/article/details/127116736

屏蔽高通hal
1.vendor/qcom/proprietary/common/config/device-vendor-qssi.mk
-注释VEHICLE_NETWORKS
2.vendor/qcom/proprietary/common/config/device-vendor.mk
-注释VEHICLE_NETWORKS
3.vendor/qcom/proprietary/prebuilt_HY11/target/product/msmnile_gvmq/prebuilt.mk
#PRODUCT_PACKAGES += vendor.qti.hardware.automotive.vehicle@1.0-service

https://blog.csdn.net/dpppppp/article/details/109234795
https://blog.csdn.net/liaochaoyun/article/details/127057209

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/636413
推荐阅读
相关标签
  

闽ICP备14008679号