当前位置:   article > 正文

【IVI】11. Android Automotive OS 启动详解-CarService篇_android.hardware.type.automotive

android.hardware.type.automotive

1.SystemServer启动CarServiceHelperService服务

我们在SystemServer.java:startOtherServices()函数中提到了启动CarServiceHelperService的内容。具体如下

{

…...

//FEATURE_AUTOMOTIVE在PackageManager.java中定义,如下public static final String FEATURE_AUTOMOTIVE = "android.hardware.type.automotive";

该Feature通过getSystemAvailableFeatures来确认开启。该Feature开启将会呈现汽车相关的UI在汽车的中控(HeadUnit)中。后面会有专门的章节详述。

if (mPackageManager.hasSystemFeature(PackageManager.FEATURE_AUTOMOTIVE)) {

traceBeginAndSlog("StartCarServiceHelperService");

mSystemServiceManager.startService(CAR_SERVICE_HELPER_SERVICE_CLASS);//启动汽车相关服务,

traceEnd();

}

……

}

那么在CarServiceHelperServi

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

闽ICP备14008679号