android-automotive - Android Automotives Car API 是否仅适用于 OEM?
问题描述
AOSP Automotive 文档指出第三方应用程序应使用Car API("VehicleNetworkService. Controls vehicle HAL with built-in security. Access restricted to system components only (non-system components such as third party apps should use car API instead)"
, https://source.android.com/devices/automotive
)。
这很令人困惑,因为 android 开发人员文档指出,唯一受支持的应用类型是媒体应用,它甚至不绘制自己的 UI,除了登录和设置(https://developer.android.com/training/cars/媒体/汽车操作系统)。
那么是否有可能编写除媒体应用程序之外的其他应用程序,甚至可以使用汽车 api 来读取车速?
解决方案
Car SDK 现已发布给开发人员,第三方应用程序可以访问许多 Car API,但是特权应用程序(即作为 android 系统映像的一部分并设计为特权的应用程序)可以访问比第三方应用程序更多的功能。访问由 Android 权限控制。
请参阅如何在应用程序中使用 Android Car API 以获得我的答案。
推荐阅读
- java - Java:replace() 以正则表达式开头的 n 管道分隔符
- java - 如何控制spring boot rest csv响应单元格格式?
- oracle - SQL:根据其他字段信息更新字段
- android - 如何在 ScrollView 中设置自定义拇指
- android - 在 textView 的文本更改上更改按钮的可见性
- python - DataFrame的表格保存为图片时如何使图片清晰
- php - 如何使用“原始”属性回显语言名称?
- shiny - 闪亮:根据输入值向 dygraphs 添加/删除时间序列
- git - 导入的 SVN 存储库不显示在 gitlab 上
- azure - 几天后 Azure AKS 丢失公共 IP 地址