Hello friends! It is a fact that there are many Android emulators for Windows, although if you want to test more specific versions and be dedicated to other formats such as Android Auto, it can become somewhat complicated. However, if you want to try Android Auto before buying a car that has it integrated, you can also try Android Auto in an emulator, with Android Studio. The goal is to simulate the screen of a car with Android Auto support. Unlike the version of Android Auto for phones that you can test with a traditional Android emulator. Android Auto screen emulation of a car is a bit more complicated. Although it allows you to accurately simulate what it’s like to connect your phone to a car and use Android Auto. This way you’ll get an idea of what it’s like to have Android Auto natively on Windows.
Install and prepare Android Studio
To use Android Auto on a PC we will use the official Google tools, so you must have Android Studio installed. To install Android Studio I recommend you to follow Osrardar’s tutorials:
How to install Android Studio
Although it may seem contradictory, you don’t need to install the Android Studio emulator, because this type of emulation works differently. Once you have Android Studio installed, you need to open the SDK manager (Tools > SDK Manager menu) and go to the SDK Tools tab. There, you need to check the Android Auto Desktop Head Unit Emulator box and click OK to download and install it.
Connect your phone to the PC using ADB
In this case, it will not be necessary to download any additional components since Android Studio includes the necessary components to make possible the connection through ADB. If it fails, we recommend that you verify that the drivers are installed correctly, although it is not necessary nowadays.
Follow the steps below to connect your phone:
- Enable Developer Options in Android (Go to Settings>About phone, and tap five times on the build number).
- Enable USB debugging in the developer options.
- Connect the phone to the PC with a cable
- Allow USB debugging from your PC
Then you will need to go to the path “C:\Users/User/AppData/Local/Android/Sdk/platform-tools” on your PC, changing the user to your Windows user name. Once you are in this path, in the Windows File Explorer search bar type “cmd” and press the Enter key.
After that, type the following command:
adb devices
If everything went well, you will see a single device and next to it the word device. Note that the device name is a code that does not mean anything.
Enable Android Auto development options
The normal version of Android Auto can be found in the system settings of your phone from Android 10 or higher, as it is part of Android. Use the search engine in the settings at the top if you can’t find it.
First step
Once you have entered the Android Auto section, tap several times on the version. Then tap ten times on the version information until a prompt tells you that developer options have been enabled.
Second step
Then, from the Android Auto menu, choose the “Start head unit server” option.
Connect your phone to Android Auto
To get started, connect your phone to your PC using a USB cable.
You will then need to enter an ADB command so that the server you just activated and the emulator on the PC can understand each other. Then go back on your PC to the “platform-tools” folder which is located in the following path: “C:\Users\User\AppData\Local\Android\Sdk\platform-tools”, changing user to your Windows username. Once you are in this path, in the Windows Explorer search bar type “cmd” and press the Enter key.
Then, type this command:
adb forward tcp:5277 tcp:5277
Now it is time to open the screen emulator for Windows. You do not need to start it from the command line, but you can double-click the desktop-head-unit.exe file. The Android Studio SDK manager normally installs it in path C:\Users/User/AppData/Local/Android/Sdk/Extras/Google/Auto.
Conclusion
When you are done, you can finally have your own Android Auto on Windows. The system perfectly emulates how Android Auto works with a phone connected to a compatible car, so you’ll be able to try out the vast majority of features. Thanks for reading us. Bye-bye!
— Advertisement —
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
«The best Linux newsletter on the web»
Друзья, всем привет.
Думаю каждого покупателя современного автомобиля волнует вопрос навигации. Благо сейчас большинство даже бюджетных машин в максимальных комплектациях поставляются с навигационной системой. А в более дешевые ее можно поставить за дополнительную плату. При этом зачастую штатные навигационные системы очень медленные, интерфейс не удобный, а обновления карт редкие. Поэтому даже такие решения зачастую не используются. Ведь до сих пор многие штатные навигационные системы в Крым будут вести исключительно через Украину. Да и новый съезд с МКАДа в сторону Коломны тоже не знают. И М11 тоже не знают и много чего еще. Поэтому приходится применять Яндекс навигатор или подобные программы на смартфоне.
Для этих целей у меня обычно используется старенький телефон Xiaomi Redme Note 3. А то новый жалко, то с крепления сорвется, то в машине забудется. Так в этом году Note 3 был забыт на 30 минут в машине на солнце и получил вздутие аккумулятора.
Вот только имея в машине зачастую экран большой диагонали, приходится смотреть в маленький экранчик смартфона… Меня это в поездках по городу, а еще больше в путешествиях раздражает. Поэтому с момента покупки машины думаю чем же заменить штатную магнитолу с одной крутилкой.
Существует несколько вариантов, каждый со своими плюсами и минусами.
Android магнитола.
Тут вибор очень широк. От вариантов с AliExpress за 10-12 тысяч, до Navipilot и RedPower за 20-30+.
Плюсы:
— цена,
— налчие,
— широта возможностей Android
Минусы:
— не всегда установка pin to pin,
— штатная камера с питаем 6в не заработает,
— глюки магнитолы и не внятная техподдержка,
— корявый перевод и явные ошибки в ПО,
— возможные глюки от canbus,
— перестанет работать голосовое управление Mitsubishi
Штатная магнитола Mitsubishi W-11 — W-17.
Данные магнитолы ставились на многие машины Mitsubishi, поэтому можно найти хороший вариант по адекватной цене.
Плюсы:
— цена на старые модели,
— будет работать штатная камера,
— управление опциями машины через canbus,
— будет работать головое управление Mitsubishi,
— пробки по RDS
Минусы:
— цена на новые модели,
— тяжело найти в продаже,
— возможно потребуется заменить или обновить bluetuh модуль,
— не лучшая навигация для глубинок,
— последнее обновление карт было в 2017 году
Штатная магнитола Mitsubishi Connect
Ставится на старшие комплектации Pajero Sport, Pajero, Outlender
Плюсы:
— ставится pin to pin,
— полная синхронизация с телефоном (включая метки карт),
— карты обновляются с минимальной задержкой,
— управление музыкой телефона,
— просмотр событий телефона и быстрые ответы,
— штатное голосовое управление,
— возможно даже управление функциями авто (не точно),
— существуют способы (не самые удобные) подключения телефона по Wi-Fi
Минусы:
— цена самая высокая из всех (30-35),
— без телефона не будет навигации,
— с телефоном навигация только Google или Waze,
— Яндекс навигатора нет и не будет,
— работает при подключении проводом (можно и без, но трудно)
Кстати Яндекс развивает свою автомобильную систему Яндекс Авто. Не стал вносить ее в список по двум причинам: дорогая и сырая. За 30 тысяч будет навигатор с музыкой, при этом даже без настроек звука, типа эквалайзера.
Исходя из перечисленных плюсов и минусов, если и буду менять магнитолу, то только на Mitsubishi Connect. Этому решению так же послужила возможность без самого устройство посмотреть как работает система через Androd Auto. И мне понравилось. Сейчас расскажу как это сделать.
Как запустить Android Auto на своем телефоне через компьютер:
1. Убедитесь что смартфон с Android 5.0 (Lollipop) или более поздней версии, на котором доступен мобильный Интернет. Быстрее всего приложение работает на Android 6.0 (Marshmallow) и более поздних версий.
2. Возьмите самый качественный кабель (желательно из комплекта поставки телефона)
3. Установите на телефон Android Auto и заодно приложения, которые его поддерживают. Я установил и проверял Google Карты, Play Музыку, Telegram, WhatsApp, Play Книги.
4. Запустите Android Auto. Перейдите в раздел об Android Auto и в открывшемся окне 10 раз нажать на заголовок Об Android Auto.
5. Это приведет к появлению опции для разработчиков. Включите ее нажав на троеточие сверху справа.
6. Включите так же сервер головного устройства.
7. Подключите телефон к компьютеру в режиме зарядки. Если не установлены, то установите драйвера USB для телефона.
8. Запустите Android Auto если закрыли его ранее.
9. Скачайте эмулятор Android Auto и запустите его.
10. Наслаждайтесь и проверяйте работу Android Auto на компьютере.
Точно работает навигация, музыка, подключение других приложений. Звонки не проверял, но интерфейс и так виден.
В некоторых случаях может отображаться сообщение Waiting for phone… во втором окне. Причина появления сообщения не ясна. Но обычно помогает:
— запуск EmulatorAA от имени администратора;
— проверьте включена ли опция «Добавлять новые автомобили при подключении» в AA.
Информация собрана из различных источников, где обсуждаются различные хаки системы и ее настройки. Однако не собрана в одном месте в явном виде для тестирования работы АА. Поэтому для себя решил сохранить запись тут, возможно вам тоже пригодится. Если считаете нужным, поделитесь записью.
The advantages of Android are truly boundless and one above all is the possibility of being able to test the features and innovations even on different platforms, thus also being able to benefit from emulations related to Android TV, Wear OS, Automotive OS and Android Auto weight, provided to have the right tools to support.
That’s why today I want to show you an emulation process related to Android Auto, a benefit for people like me who test many smartphones but do not have a modern and smart atuomobile, so how to respond to the thousand requests about whether a smartphone works or not with Android Auto? Now then I’ll show you how to install Android Auto on your Windows PC.
It is Google itself that provides the tools for what we have just set ourselves and it does so with the Android Studio suite, thus allowing you to emulate everything that comes to mind as long as it is correlated with the Android OS.
Generally, the Android Studio emulator is used to take advantage of an Android virtual device but in the case of Android Auto things are slightly different, because it is not an operating system but an application that adapts some functions of your smartphone to a format more comfortable and functional for driving. So if we can’t emulate Android Auto what are we telling each other so far? Well, actually with the Android Studio suite we will make our smartphone believe that our PC is the console of the car, simulating the USB connection and all the rest.
I would say to start with the guide, which you will have to follow step by step, so that everything works correctly. So here are the steps to take:
- Download and install Android Studio on your Windows computer from official web site. We recommend that you perform a standard installation and download any updates required during the suite installation process;
- Open Android Studio on your PC and go to Configure> SDK Manager;
- In the screen that appears, go to Android SDK (found on the left) and then to the voice SDKTools;
- From the options, select Android SDK Build-Tools, Android Auto API Simulators, Android Auto Desktop Head Unit Emulator, Android SDK Platform-Tools, Google USB Driver . Confirm with the OK button below to proceed with the installation.
Now you are ready to emulate Android Auto, but you need to prepare your smartphone for the actual performance of the operation. Therefore proceed as follows:
5. Enable Developer Options on your smartphone and activate USB Debugging which will be used to issue commands and ADB connection. You must know that Android Studio automatically installs ADB drivers.
- In principle, to activate the Developer Options on an Android smartphone, you have to tap 7 times on the Android build number from the phone Info;
- Search the Developer Options menu to activate USB Debugging;
- Connect your mobile to your computer using the USB cable and confirm the required permission directly on your smartphone display.
The last step is to prepare Android Auto, keeping in mind that starting from Android 10, the application is not visible like the others on your smartphone, so in the best case you just need to follow the steps below or in addition you must also download the Android Auto application from the Play Store by clicking here:
- Once inside the app enter the Settings.
- Scroll down until you find the version number you will be doing a Tap 10 times, in order to activate the Developer Settings;
- In the same window, at the top right you have 3 dots, click on them and activate the item Start Main Unit Server.
From now on, until you turn off the option, you will always have a permanent notification that this service is active.Okay, let’s get to the nerdy end of the procedure to test Android Auto on your PC.
With the company mobile phone connected to the computer and USB debugging enabled (step 5 of the previous section), do the following steps:
- Go to Windows on this path: C: \ Users \ Emanuele \ AppData \ Local \ Android \ Sdk \ platform-tools replacing EMANUELE with your PC username;
- From here hold down the SHIFT key and click the right mouse button. From the window that appears, choose the item Open PowerShell window here;
- To confirm ADB connection type the command adb devices, you should now see numbers and letters that identify your smartphone. Now run the following command:
- adb forward tcp: tcp 5277: 5277
- Now go to this path: C: \ Users \ Emanuele \ AppData \ Local \ Android \ Sdk \ extras \ google \ auto replacing EMANUELE with your PC username.
- Click on the desktop-head-unit.exe executable;
- Your mobile will recognize the screen emulated of your car and will run Android Auto.
- Complete the initial setup of Android Auto and grant the required permissions.
- Have fun trying all the options and interface of Android Auto on your computer.
Well what can I say, cool right? Now you just have to discover all the potential of the Android Studio suite and have fun emulating Android Auto and much more.
Fusecast
Android Auto headunit emulator for desktop Windows/Linux and Raspberry Pi
Introduction
Fusecast was inspired by the OpenAuto project by Michal Szwaj (f1xpl), which is now abandoned since Michal seems to focus all of his time on the paid OpenAuto Pro. Excellent work was done by the OpenCarDev team on Crankshaft and their patched forks of OpenAuto and AASDK, but no one has much time to maintain that software.
By moving to a Python-based implementation, which shares no code with OpenAuto, Fusecast aims to make development less complex and more open to community contributions. We rely on established libraries, such as PyUSB and PyBluez, where possible to abstract away much of the low-level platform-specific code, in turn simplifying application code.
Fusecast is a Work in Progress and is not currently functional!
Installation
TODO: Windows libusb download, Linux udev rules
Documentation
Future documentation will be posted to ReadTheDocs
Reporting bugs/Submitting patches
Pull requests and bug reports are welcome. Please submit both of these via Github.
For other inquiries, contact me at benjaminloganward@gmail.com. Cheers!
Remarks
This software is created for R&D purposes only, and is not certified by Google. It may not work as expected, and features may change at any time. This is a work in progress. Do not use while driving. You use this software at your own risk.
Sign in to your Android Police account
One of the biggest challenges to creating good apps for Android Auto has been actually testing the experience. Many independent developers can’t afford to purchase brand new cars with Auto built-in, and aftermarket head units won’t fit in most recently manufactured cars without heavy modification, and most of those units aren’t very good anyway. When the Auto SDK came out, it included simulators that could be used for basic testing of just the messaging and media browser interfaces, but even these weren’t good substitutes for the real thing. Today, Google released the Android Auto Desktop Head Unit, a functioning implementation of the Android Auto platform that runs right on a desktop or laptop.
The Desktop Head Unit (DHU) operates just like an Android Auto unit. All of the on-screen buttons and functions work normally, and the interaction between it and a phone is virtually indistinguishable from the real thing. Developers can now test the experience of working with their apps in the environment they’re intended to operate in without crawling into the passenger seat of a car.
In addition to clicking on the screen with a mouse (or a touchscreen on some computers), the DHU also supports input through a computer’s microphone for voice commands. Developers can also run an assortment of actions through command line instructions and some additional keyboard shortcuts to toggle between daytime and nighttime modes, issue pre-recorded voice commands, simulate button presses and taps, take screenshots, and more.
Google will continue to support the simulators for a little while longer, but they have been officially deprecated and will be removed from the SDK in the near future.
To get the Desktop Head Unit running on your computer, check out the Getting Started page for setup instructions. It can run on Windows, Mac, and Linux, but some additional libraries and components may be required. Also take a look at the DHU documentation page for more useful tips and tricks.
Source: Android Developers Blog
