Hi, I have searched the forum to find an answer to this question, and I understand it is probably a basic question, but I appreciate anyone's ideas.
I am trying to start an activity in my app and view it on the desktop head unit. I can easily use the startActivity() method to see the activity open on my Android tablet. However, I don't know how to start an activity so it appears on the head unit instead. I have tried many approaches, including starting a service, but nothing has worked. Thanks for your suggestions.
Android and Android Auto is a complete different world. You always need SDKs to program for a specific platform. For Android Auto this is not available, so with any basic Android tutorial you cant reach anything. If you have a Head Unit (from China) with basic Android you can for sure program it like any other Android device. But if you want to use the Android Auto environment build in many new cars, I tell you its more than hard for you to get anything running. Only way you can program right now is a Messaging or Music playing app. So the possibilities are quite limited. More information under https://developer.android.com/training/auto/index.html
Related
Hi, this is probably in the wrong section.
Does anyone manufacture a head unit running Linux, something for which I can just download a debian ARM iso and install from a usb stick/sd card? From what I can find it seems not to be the case. Why not? Why is android so prevalent?
I also have a question. I just bought an E46 with an eonon GA5150 which is MTCB-KLD-v2.30. I updated from 4.2.2 to 4.4.4 with Malaysk's ROM, but not the MCU, and now audio doesn't work at all. How should I begin to troubleshoot this issue?
Thanks, to a community I should have joined many years ago.
Answer to the first question is...um...well Android is running a Linux kernal...so...you can make the case it's running Linux (or a forky version at least).
As far as running Debian ARM on the typical SoC in these head units, I think it's very likely possible...if you are willing to write the drivers or chase them down (if they exist). And configure the system...it's not a super mountain to climb, but I doubt it's something that already exist. At least in binary format that you could put on an a USB key and install.
In fact, you would have to create a custom Debian build, most likely, and use a bootloader that is normally setup for Android (guessing on that one) to install it. There is no technical reason it should not work, just no one has bothered to do it. We already have Android, what does Debian Linux buy us?
Why run Android? Well, it's because that's where the focus of the development effort is for the kinds of apps you would most likely want to use in a car. My opinion is that's why these head units exist in the first place. The vast number of really good (and admittedly incredible number of poor) apps already exist...let's tap into them!
If you really want to run Linux in the car for some reason or another, there are other options out there...might look for "carputers" or "car PCs". I think a lot of folks who are determined to run Open Source car computers are now running Raspberry Pi (or similar) SBCs..seems to be a lot of that type of projects on Google, when you do a search.
On the second question...about your head unit's ROM issues, I defer to the experts on here.
fortune80211 said:
Hi, this is probably in the wrong section.
Does anyone manufacture a head unit running Linux, something for which I can just download a debian ARM iso and install from a usb stick/sd card? From what I can find it seems not to be the case. Why not? Why is android so prevalent?
I also have a question. I just bought an E46 with an eonon GA5150 which is MTCB-KLD-v2.30. I updated from 4.2.2 to 4.4.4 with Malaysk's ROM, but not the MCU, and now audio doesn't work at all. How should I begin to troubleshoot this issue?
Thanks, to a community I should have joined many years ago.
Click to expand...
Click to collapse
Yeah, @tbd2k2 is right - Android IS Linux, albeit one that uses a very old Linux kernel (google is trying to rectify this but its gonna take years).
There are versions of Ubuntu (Debian based) that run on RK3188 devices, so I m sure someone who is experienced enough could make an Ubuntu ROM for MTCB/C units, but it would involve making all the MTC apps work with it too.
Thank you
What exactly are the mtc apps? What are they needed for? (Do you have a link I can read?) What kind of drivers would I need to write and how would I find what they are if I were to attempt something like this myself?
The reason I ask is that it seems to me that it's very difficult to update software on these head units. It takes a very specialised piece of software and it's impossible to keep up to date.
If these head units were just generic arm PCs then people could install whatever they wanted. I agree that most people would want to install android, but even then the situation would be simpler. Aren't these head units just 12V DC in, audio and video out with additional drivers for GPS, WiFi etc?.
fortune80211 said:
Thank you
What exactly are the mtc apps? What are they needed for? (Do you have a link I can read?) What kind of drivers would I need to write and how would I find what they are if I were to attempt something like this myself?
The reason I ask is that it seems to me that it's very difficult to update software on these head units. It takes a very specialised piece of software and it's impossible to keep up to date.
If these head units were just generic arm PCs then people could install whatever they wanted. I agree that most people would want to install android, but even then the situation would be simpler. Aren't these head units just 12V DC in, audio and video out with additional drivers for GPS, WiFi etc?.
Click to expand...
Click to collapse
Read the wiki in my signature, it will answer all your questions.
"Very difficult to update" ? - what makes you think that ? - its as easy as you like - put update on sd card go to settings/updates hit "update", or hold down power and reset, release reset, release power to get into recovery and install update by clicking on it, very easy.
Sorry, I didn't mean in that sense.
I mean that if you want to run something obscure, it's not possible. If you want to run an app that only runs on later versions of android, it's not possible. The actual installation is as easy as can be, but you are limited to a small selection of android ROMs.
I realise that it's the way it is for a reason and I'm very grateful to the community of developers here who have contributed so much. I'm just looking for something different and wouldn't mind a project for myself.
Thanks
EDIT: Also, recently Linux operating systems (Ubuntu), and even windows are moving toward touchscreens. There's a huge amount of present and future development effort we could tap into if our hardware was compatible.
I have been a Unix/Linux IT professional for more than 25 years, and it also happens that electronics is my hobby, and I have build many things in recent years powered by Linux using the great new small boards such as Rasbperry Pi's, Beaglebone, Orange, etc.. including weather stations, wall clocks/electronic displays, radio receivers, etc.
BUT, Even I would not use a generic Linux system in place of these purpose built android devices. Using android which has a wealth of high quality apps dedicated to mobile device use for GPS, Maps, media, etc is infinitely more practical.
fortune80211 said:
Sorry, I didn't mean in that sense.
I mean that if you want to run something obscure, it's not possible. If you want to run an app that only runs on later versions of android, it's not possible.
Click to expand...
Click to collapse
Are you talking about apps not showing up in the Playstore or not installing when sideloaded ?
fortune80211 said:
The actual installation is as easy as can be, but you are limited to a small selection of android ROMs.
I realise that it's the way it is for a reason and I'm very grateful to the community of developers here who have contributed so much. I'm just looking for something different and wouldn't mind a project for myself.
EDIT: Also, recently Linux operating systems (Ubuntu), and even windows are moving toward touchscreens. There's a huge amount of present and future development effort we could tap into if our hardware was compatible.
Click to expand...
Click to collapse
nixfu said:
I have been a Unix/Linux IT professional for more than 25 years, and it also happens that electronics is my hobby, and I have build many things in recent years powered by Linux using the great new small boards such as Rasbperry Pi's, Beaglebone, Orange, etc.. including weather stations, wall clocks/electronic displays, radio receivers, etc.
BUT, Even I would not use a generic Linux system in place of these purpose built android devices. Using android which has a wealth of high quality apps dedicated to mobile device use for GPS, Maps, media, etc is infinitely more practical.
Click to expand...
Click to collapse
I ve been using Ubuntu since 2009 and I ve been following the development of Ubuntu Touch for phones/tablets for a while as well - I d love it but until someone gets ART running on Ubuntu Touch so you can use Touch apps (which can also run on Ubuntu desktops) AND Android apps, I wont be using it (and I dont think many others will either) for precisely the reason that @nixfu says - I dont wanna loose access to all the apps available for android.
nixfu said:
I have been a Unix/Linux IT professional for more than 25 years, and it also happens that electronics is my hobby, and I have build many things in recent years powered by Linux using the great new small boards such as Rasbperry Pi's, Beaglebone, Orange, etc.. including weather stations, wall clocks/electronic displays, radio receivers, etc.
BUT, Even I would not use a generic Linux system in place of these purpose built android devices. Using android which has a wealth of high quality apps dedicated to mobile device use for GPS, Maps, media, etc is infinitely more practical.
Click to expand...
Click to collapse
Look at this one: https://www.stepstone.de/stellenang...d-Unit-f-m-Ulm-BMW-Group--4333376-inline.html
BMW is obviously trying to work on exactly that; trying to professionally use Linux for Car Entertainment
I've pulled apart the system image for the 2016 and 2017 Kenwood units and it's just a QT app on top of the Linux kernel.
Sony's XAV-AX100 is the same and i'm pretty sure the new Pioneers are the same now they've dumped Android.
Once you stop them booting into the GUI app and get a console, you've got a Linux system with good enough hardware to play with.
All three also have sites where you can get the code for things like the kernel that they have to make available.
leonkernan said:
I've pulled apart the system image for the 2016 and 2017 Kenwood units and it's just a QT app on top of the Linux kernel.
Sony's XAV-AX100 is the same and i'm pretty sure the new Pioneers are the same now they've dumped Android.
Once you stop them booting into the GUI app and get a console, you've got a Linux system with good enough hardware to play with.
All three also have sites where you can get the code for things like the kernel that they have to make available.
Click to expand...
Click to collapse
Sounds great, I guess you could even run Android apps on them as you can do that on a Linux desktop.
Google search i-carus (raspberry pi based)
Give that a go
Hi,
I have searched on the internet but I can't find any good info about android auto.
First I don't understand how it works. I have seen that you need android auto on your phone in order to communicate with your car device but what is running on the car device? Is a different type of operating system?
Can I add an application developed for Android on Android Auto?
adrian94a said:
Hi,
I have searched on the internet but I can't find any good info about android auto.
First I don't understand how it works. I have seen that you need android auto on your phone in order to communicate with your car device but what is running on the car device? Is a different type of operating system?
Can I add an application developed for Android on Android Auto?
Click to expand...
Click to collapse
AA consists of 2 parts -
AA application running on the phone
AA client on say a car headunit (could also be another android phone or an android tablet) that mirrors the AA phone display
AA can be run self hosted on a phone, then you don't need the second part.
If you want to have a fixed display (client/server setup) in the car & you don't already have a car headunit supporting AA, you can install an app such as HUR- https://forum.xda-developers.com/ge...ndroid-4-1-headunit-reloaded-android-t3432348 on the headunit/tablet. There's a trial version that you can download to try.
Hi kk131
Thank you for your replay.
So if is running on my phone this means that all my phone application will be available on my car console?
adrian94a said:
Hi kk131
Thank you for your replay.
So if is running on my phone this means that all my phone application will be available on my car console?
Click to expand...
Click to collapse
As the purpose of AA is to enable phone use during driving, it provides limited access with a simplified display :
Google assistant - so you can have voice interaction
Phone
Navigation - waze/google maps
Music apps - google play music, spotify (depends what you have installed on your phone)
Great info.
I am asking this because I have an application of podcast on google play and I would like to be available on AA and I am trying to find out how can I do that.
Do you know any relevant info on the web that can clarify me? I am guessing that there are some constraints if we speak of automotive
Install AA on your phone., run it, see if the app is shown in the menu. If it isn't you can go into AA developer mode and enable 'unknown sources' and test again. The thread I referenced above covers getting in AA developer mode.
If that test is successful, then go further and install the client on your car console.
Great, I will try it and come back with some answers.
Thank you for your time
Hello again,
I manage to complete all my tests and all was ok. I have installed a few applications and one custom application and all worked ok.
I have one more question for you if you can help me of course.
Do you know a tutorial or something from where I can start with Android auto? I have seen that there are not tow application (one for Android and one for Android auto ) is the same app but for Auto version are fewer scenes.
If you can give me a hint here it will be just great.
Thank you.
adrian94a said:
Hello again,
I manage to complete all my tests and all was ok. I have installed a few applications and one custom application and all worked ok.
I have one more question for you if you can help me of course.
Do you know a tutorial or something from where I can start with Android auto? I have seen that there are not tow application (one for Android and one for Android auto ) is the same app but for Auto version are fewer scenes.
If you can give me a hint here it will be just great.
Thank you.
Click to expand...
Click to collapse
It would be helpful to know what hardware you have in your car.
I'm not an expert, I use a Nexus 7 tablet for the car display with headunit reload (HUR).
Hi guys!
I m new here and i ve been searching for it mostly here and in web researches, but cannot find a clear answer.
Does anyone know a ROM suitable for a tablet (i have a xiaomi clover that i could use for it) that i could mount on my motorbike for gpx navigation, maybe weather and music also ( getting real time machine data via the ECU, as speed, revs, temperature etc would be awesome too! )
It ll be great if a tablet could actually (replace, or) complete the dashboard informations,
Does anyone has a clue about which way i should dig around ?
thanks you all
I have a nexus 5x always in car, for android auto. I have rooted the phone and Uninstall most of android. Including phone app, sms, etc. I have only keep the core of android and gaps so to run android auto and evey app i wanted. This is the way..
I guess you are not looking for a ROM but for some apps to be installed in your tablet or phone.
You can test some Car Launchers you can find in the Store.
To get real-time parameters you will need an ODB connected to your bike and for the software, with any ODB you buy there will be a basic app to obtain real-time data. Specifically for motorbikes you have MOTOSCAN.
Hi,
I'm disappointed with AA. I think there is some space for an open source alternative to this system which is so closed.
Moreover the end of life of the standalone version makes me feel that Google doesn't care much about their customer experience.
I tried the Google Assistant driving mode and it's... a disaster for now.
I think it would be easy to create a great AA like launcher. But to make it succesfull there must be a community and an ecosystem around that. Apps are important even in automotive context.
Typically Waze is a key app that many drivers want.
At this time I'm wondering what is the best approach to start this kind of project. I see few show stoppers and I'm interested to get some thought from you about that.
1/ Head unit integration : long time ago I worked on the reverse engineering of the AA protocol. I discovered that the protocol is using SSL certificates. Head units holds a public key and mobile use a private key provided by Google Play Services. The problem is that these certificates have very short lifetime (about 6 months) and if I remember fine the root cerificate will expire in 2030 or something. I don't think that head unit s check the expiration date anyway (because many of them don't have system time). But for sure you need a Google private key in order to initiate communication with a head unit. The key could be captured decompiling code few years ago, don't know if it's still as simple as that.
If head unit really don't check the expiration date then it could be possible to replace the whole AA stack with an independent one.
But even if this work I'm not sure it's possible to disable the native AA protocol and take control of the USB port without rooting.
2/ Apps integration. There are 2 categories of Automotive apps : media apps and navigation apps. I think there are also a category for messaging apps.
Navigations apps are apps that provides an automotive friendly display. Waze does this for example.
Media apps are easy to integrate becaase they rely on the legacy mediabrowser APIs.
Integrating the navigation apps is tough. Because these apps are exposing a special AA service that only privileged apps can invoke (by default).
However apps dev can also allow a third party app to connect their dispkay service. This won't ever happen except if the car launcher become mainstream.
Good point is that would not require any change in implementations : it's just an access right problem.
I have seen a lot of car launchers in Play store. They all display the apps on native mode which is not what you want while driving.
Any comments to this ?
I would also like to see an alternative way...but unfortunately I did not find anything yet.
I'm also not happy with everything on Android Auto.
For example:
- I have apps (e.g. navigation) that are not compatible with Android Auto
- I can't accept Whatsapp calls on Android Auto
- The navgation of media apps is not the best way (if you want to change the playlists, there are way too many inputs necessary)
- I can't turn off Google Maps (GPS) to preserve battery and reduce heat on the phone
- I need internet (I live in a rural area...therefore sometimes I don't have internet and then in a lot of times, Android Auto just crashes...)
- I don't like Google's update policy (it's just good luck if a new version of Android Auto works stable). I want to have a working version and leave it on the phone.
From a user standpoint I definately would like to see an AA alternative. I don't need to watch videos or anything like that but there are a few necessary apps for me that AA doesn't allow.
SOFO888 said:
- I don't like Google's update policy (it's just good luck if a new version of Android Auto works stable). I want to have a working version and leave it on the phone.
Click to expand...
Click to collapse
You can achieve that by disabling Android Auto automatic updates on Play Store app.
CaioTheBrain said:
You can achieve that by disabling Android Auto automatic updates on Play Store app.
Click to expand...
Click to collapse
No, unfortunately not. Every Google app has an expiration date, also Android Auto. This expiration date then forces you to update your app. Otherwise it will not start.
There are a few Android dongles that trick the car's headunit into thinking it is connected via Android Auto. However, most of the devices are CarPlay AI units that trick the headunit into thinking is is connected to a CarPlay device and then display the Android system through the headunit. But they are all buggy.
Perhaps something can be learned from how they do that. An app that mimics Android Auto but allows full user control would be great.
I am by no means an expert but I want to help do this! I liked using rooted devices for AA and having AA tweaker but I always felt like it was just the start of something not a finished product so I'm definitely down with this. What I feel like would be the simplest approach would be making an Android auto app that (it communicates with your phone and doesn't need data) runs on a cheap tablet that you put on your dash or wherever in the car and from there you have full control over the app and device. Just my thoughts
Did someone tried sreen2auto? Its mirroring your phone to your android auto. Search it on XDA forum.
drnightshadow said:
Did someone tried sreen2auto? Its mirroring your phone to your android auto. Search it on XDA forum.
Click to expand...
Click to collapse
I used to use Screen2Auto but it required too much upkeep every time Google made changes to Android Auto. The last time it broke I couldn't get it working again.
(delete)
Kodijack said:
I took a good search and haven't found a single app that is just like a screensaver, desktop or a clock. 99% of apps are music and navigation.
Hard to believe no one thought of a generic "desktop"-app with widgets or whatever. Especially with coolwalk it could be really nice.
But maybe you guys know something like this and my searching just sucked?
Click to expand...
Click to collapse
Hmmm... I can't understand what you wrote and what you are looking for, although I've been using android for 12 years. Even if it involves AA.
Please could you expand your description?
Now I understand your message as a regret that there is no revolution in the field of development of Head Units.
I don't think that will happen soon. Development will evolve.
The priority when driving is the safety of all users of the road and its surroundings.
I think that the plan for the development of the head unit is written out in stages, which require the achievement of so much development of protection measures while driving that the driver's inattention and distraction cannot be the cause of anyone's danger.
Currently, head units are deliberately poor in functions so that they can be simple to use and not distract the driver from his primary task: safe driving.
I think fiddling with the phone and projecting an image onto the head unit screen or vice versa, and focusing attention on widgets and other bits and pieces that phones have, can only be safe if passengers do it.
Google only allows certain apps on Android Auto.
Normally navigation, communication and music apps.
It's just a question if Google allows a clock app. I'm pretty sure that there were already people with this idea.