首页 > 解决方案 > 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 来读取车速?

标签: android-automotive

解决方案


Car SDK 现已发布给开发人员,第三方应用程序可以访问许多 Car API,但是特权应用程序(即作为 android 系统映像的一部分并设计为特权的应用程序)可以访问比第三方应用程序更多的功能。访问由 Android 权限控制。

请参阅如何在应用程序中使用 Android Car API 以获得我的答案。


推荐阅读