In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > IT Information >
Share
Shulou(Shulou.com)11/24 Report--
Google, a longtime rival in the mobile phone industry, has long been laid out on cars, including Android Auto and Automotive. Although it has been launched for several years, Chinese developers are still very unfamiliar. Today, let's take a brief look at it.
Android Automotive OS, AAOS
Android Automotive OS, referred to as AAOS, is an operating system extended from Android OS and runs directly based on vehicle hardware. Like Android, it is a full-stack open source platform with a very high degree of customization.
Under the big wave of electric vehicles, it can provide strong technical support for the infotainment experience of automobile enterprises. At the same time, for the sake of compatibility, AAOS supports applications built for Android and applications built for Android Auto.
The names of Android VS Android Auto VS AAOSAuto and Automotive are similar, but they seem to be indistinguishable, but the difference is very obvious.
First of all, Android Auto is not OS. It is a feature integrated into Android OS. When Android Phone is connected to a car that supports Android Auto through USB and Wi-Fi, Android OS will automatically load the App that supports Auto mode and project the image onto the car screen.
Like CarPlay, it is essentially a screenshot. Phone provides computing and rendering, and the car machine is only the event of Display,Display and keystroke back to Input. After being processed by Phone, the new frame data is sent back for Display.
Android Automotive is OS, which belongs to the AOSP project, and the code is also in Android OS. When compiling, you can select the compiled target of automotive to generate the AAOS used by the vehicle machine.
It supports App for loading Android Auto, that is, Android Phone and AAOS cars can still be used like Android Auto. At the same time, the App that supports Android OS can run on AAOS even if it does not fit the car machine. This may also be part of the reason why the mainstream Internet App has no intention of adapting to the AAOS, while causing the task of the adaptor UI to fall to the car companies.
Android EcoWhatTargetCompativityAndroidOSPhoneAndroid AppAndroid AutoPlatformPhone when connected to
Car supported AutoAndroid App supported AutoAAOSOSCarAndroid + Auto + AAOS AppDevelop Apps for Android Cars
The simulator machine resources are precious and scarce, so it is difficult to develop and test on the real machine as easily as mobile phones and tablet devices, while the simulator is a better choice. Both Google and car companies have corresponding AAOS Image to create simulators.
Generic AOSP Image
Officials said that 9. 0 made the AAOS Image public, and there was no official Image Item when opening AS's SDK Manager page for repeated refreshes and attempts. Occasionally there will be the following errors:
No System Images available. Are you connected to the internet?
That is, the official temporarily removed AAOS's Image for unknown reasons.
OEM Image
Fortunately, Volvo and its Polestar, as the earliest car companies to develop Android Automotive cars, have disclosed Image to the public. Although the ARM architecture is not supported, the experience can be installed on PC.
In the SDK Update Sites page of SDK Manager, you can add the following Url to add the site of Volvo.
Https://developer.volvocars.com/sdk/volvo-sys-img.xml
Once added, you can open the SDK Manager page again, and you can see the Image of Volvo on the SDK Platforms page.
Check will be downloaded automatically after that, and the Automotive simulator can be created as easily as the mobile phone Image.
After startup, you can see the overall interface:
In addition to Drawer, Video, seats, air conditioning and other Icon, there are several commonly used App such as Map, BT, Google Assistant.
Click Assistant App to perform voice operations:
Click the drawer button, you can see in addition to Map, BT, Google Assistant can also see Google Play, Car instructions for the use of these several App.
Screenshot of Car usage description App:
The Polestar2 model is also open to Image, and its simulator can be created by adding the following Url as above.
Https://developer.polestar.com/sdk/polestar2-sys-img.xml
Worthy of a family, the interface is similar to that of Volvo, and the layout of Launcher has been changed from list layout to quadrangle.
Other car companies have adopted AAOS, such as Honda, but not publicly.
Develop Apps will then be able to develop App for AAOS, and officials have provided Car-related SDK for us to develop, namely Android for Cars App Library. For compatibility with non-Car devices, it is integrated into AndroidX.
In addition, the development Sample is provided for several scenarios such as navigation:
Https://github.com/android/car-samples
The advantage of these Sample is that they take into account both Phone and Automotive development scenarios. The common Car parts of App are placed in Common Module, and their logic is placed in separate Module.
The advantage is that when compiling Phone Task, the generated Apk is installed on Phone, and when it enters Android Auto mode, it automatically loads the Car logic in Common. Apk compiled to Automotive can be run directly on AAOS to execute Common logic and unique Car logic.
It is a bit important to note that the Gradle and AGP versions of the Sample need to be upgraded to the latest in order to compile.
Phone runs to Auto
You can use DHU to convert the phone to Android Auto mode, so you can test the performance of App in Auto mode.
Automotive runs on AAOS
The Sample Apk of Automotive runs into both Volvo and Polestar2 simulators with the following results, which does not seem to work properly.
After log review and documentation confirmation, it is found that Sample relies on the latest features in Car and requires AAOS to download and install the latest version of Google Automotvie App Host Apk.
However, the following problems were encountered and could not be installed:
The App requires 11 or more AAOS systems, and the latest version released by Volvo and Polestar2 is 10
The App cannot be downloaded directly from APK Downloader and other websites.
GooglePlay on Volvo's AAOS Emulator cannot connect to the network
Adb shell am start-n com.android.vending/com.google.android.finsky.carmainactivity.MainActivity
Reference documentation
Android Auto: https://www.android.com/auto/
Devices that support Android Auto: https://www.android.com/ auto / compatibility/#compatibility-vehicles
Android Automotive: https://source.android.google.cn/devices/automotive?hl=zh-cn
Test Android on-board application: https://developer.android.google.cn/ training / cars / testing?hl=zh-cn
Test-automotive-os: https://developer.android.google.cn/training/cars/testing#test-automotive-os
Car Library: https://developer.android.google.cn/reference/androidx/car/app/package-summary
This article comes from the official account of Wechat: TechMerger (ID:ELC-XTLS-QSW), author: Xiaomijun
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.