在 Android 汽车模拟器中使用 Android 汽车应用

Use Android Auto App in Android Automotive Emulator

我在开发过程中看到有一个用于测试 Android Auto Apps 的 DHU。 同时,还有一个带有沃尔沃和 Polestar 系统映像的模拟器,可以在 Android Studio 中使用 Android Automotive。

我在 Google Android 汽车网页上找到了这个:

You enable Android Auto to connect with your phone app by creating services that Android Auto uses to display a driver-optimized interface to the driver. You reuse these services for your Android Automotive OS app, but users do not install your phone app on their cars.

我想知道我是否为 Android Auto 开发了一些应用程序,将此应用程序转换为在 Android 模拟器中使用它或作为 Android 汽车应用程序使用的过程有多复杂?

整体来说,应用程序背后的业务逻辑应该保持不变,而服务,根据 Google,也应该在 Automotive 上工作吗?所以唯一的区别是 UI?

谢谢!

以媒体应用为例

并不复杂,在 https://developer.android.com/cars 中有分步说明将您的 Android Auto 应用程序移植到 Android Automotive OS。