r/LineageOS • • Jun 28 '21

Android Automotive on LineageOS

I've been playing around with some Android Automotive builds for my Samsung Tab S5e. (Pics in the link below). Works great in my car thanks to the built in 4G, GPS, microphones, speakers etc.

You can easily customise with your choice of navigation apps, media apps etc. But the real potential probably lies in further customising the OS and coming up with some nice Automotive specific apps or custom launchers. Automotive on Lineage would make the perfect base.

I was wondering if there would be enough interest to be able to make this into official LineageOS targets? I read the info about becoming a maintainer for a new device but this seems slightly different since it's more about providing variants for already supported devices. So far I've just done it for the Samsung tablet and Lineage emulator.

So from this post I'm hoping to:

  1. Gauge interest, would you flash this?
  2. Get some advice from an experienced Lineage contributor/device maintainer about the best way to proceed.

Update:

XDA article and pics: https://www.xda-developers.com/android-automotive-ported-samsung-tablet/

Snapp Automotive providing Android Automotive for S5e, Raspberry PI and emulator: https://medium.com/snapp-automotive/android-automotive-os-on-a-tablet-f805beb20f96

125 Upvotes

76 comments sorted by

2

u/alsutton Jun 28 '21

This would make a great developer test device. Have you got a public repo which folk can build from?

2

u/tompratt Jun 28 '21

Nothing public yet but I'll see if I can set something up. What devices are people interested in? Samsung S5e works great for me. Not sure how common they are

3

u/[deleted] Jun 29 '21

The Nexus 7 guys would be very interested

2

u/alsutton Jul 09 '21

We've been able to recreate the AAOS on Lineage experience on an s5e. If you'd like to contribute some of your work to it there's more details about the repos and images we've made available at https://medium.com/snapp-automotive/android-automotive-os-on-a-tablet-f805beb20f96

1

u/WisamAlrawi Sep 26 '21

I have a Samsung s5e WiFi edition not the LTE. I'm trying to build AA for it but your repo only has it for the LTE version. Can you help?

I was able to build from sources and follow your tutorial but I don't know what needs to be modified to make it work on the s5e WiFi.

1

u/alsutton Jun 29 '21

I’ve been trying to get AAOS working on the s5e, so for me it’s ideal as-is.

They’re pretty cheap and widely available tablets so I expect there’ll be a reasonable number of folk who’d be willing to pick one up to use for AAOS development given that you can easily drive around with one and use it for testing without needing an AAOS car.

1

u/symeonhuang Jun 29 '21

I have an S5e too. Surprisingly this tablet has been quite popular 😃 (surprising as it wasn't advertised as heavily as other Samsung tablets)

1

u/sharanchakradhar Jul 26 '21

Any popular but very much in budget like Fire tablet and any Lenovo tablets ?

Thank u

2

u/MishaalRahman Some guy who blogs Jun 29 '21

This is fascinating work. Do you mind if I share your photos in an article on XDA?

Also, what version of Android Automotive is your build based on?

1

u/tompratt Jun 29 '21

Yes go ahead. Post the link here so I can check it out.

I've done this with lineage 17.1 and 18.1.

5

u/bajablastingoff Jun 30 '21

I want this, I have been wanting to do something like this for quite some time

3

u/sivartk Jun 28 '21

This is interesting and the one thing I miss with Lineage OS on my phone. However, would it still integrate with a car manufacturers screen? Is that even possible?

3

u/der_RAV3N Jun 28 '21

This wouldn't integrate into an original screen. You'd need to get some tablet or similar and put it into your car.

2

u/sivartk Jun 28 '21

Yeah, that is the problem I have no where to mount anything...even my phone can only do windshield suction cup. The one flat place on the dash is leather and it took 3 weeks in the sun for the "ring" to disappear.

2

u/tompratt Jun 28 '21

Sounds like you might want something more like this. https://cardongle.co/

2

u/sivartk Jun 28 '21

I've looked at that in the past and from what I've seen it still requires a Google account to use. 🙁 I'm trying to avoid having Google track me. I do have a spare "Galaxy S10e" phone that can't be deGoogled that I could use for the same purpose.

4

u/Shazam7469 Jul 02 '21

Leveraging a relatively cheap and available stable of Samsung 8 and 10 inche tablets and porting this to them is a fantastic idea. Some older cars have legacy built in systems where the aftermarket can not integrate. Having this as an option from the homebrew community would be great and I'm sure we all appreciate the work put in to builds like this. You would think Google/manufacturers would opt to do something supportable like this. There is a market for sure.

1

u/furyfuryfury Sep 30 '21

/u/tompratt /u/alsutton which model number is the tablet you got this to work on? I'm interested in jumping in on an AAOS/LineageOS effort, but it would appear the LTE models readily available in the US have locked bootloaders and no way to unlock them (missing OEM unlock in developer settings).

Is it possible to build a custom kernel for this one?

2

u/tompratt Oct 01 '21

The WiFi model will most likely work fine. In fact, now that we have submitted some changes to Lineage source code it should be trivial to build android automotive for any Lineage supported device. Just need to swap out a couple of lines in a device mk file.

1

u/mahnix Feb 14 '22

Hey there, any new developments you could share? Definitely interested to understand if your forecast of enabling AAOS on any LineageOS-powered device has come true.

1

u/tompratt Feb 21 '22 edited Feb 21 '22

For people who can build themselves. You can convert any Lineage build into automotive by finding and replacing the following line in your devices mk file.

replace
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

with

$(call inherit-product, vendor/lineage/config/common_car.mk)
$(call inherit-product, device/lineage/car/lineage_car_vendor.mk)

1

u/certifiedsysadmin Oct 29 '24

Hey u/tompratt,

Could you point us to updated instructions on building for Android Automotive?

I tried the above but lineage_car_vendor.mk is no longer in the repo and I suspect things have changed in the two years since you originally posted this.

Many thanks.

1

u/tompratt Oct 29 '24

Unfortunately I never really found time to run with this. Your best bet would be to check out resources from Snapp Automotive linked in the post.

1

u/thetechgeekster Mar 23 '22

Hi u/tompratt!
I was able with your post to build a Automotive OS build (LOS 18.1) for my phone. Two questions for you.

  1. Even though I have changed the DPI, the UI Overlay (top and bottom bars) is still HUGE! Is there any way to make it smaller?
  2. How did you removed the Temperature settings from left and right?

1

u/_mymemoryleaks Oct 23 '23 edited Oct 23 '23

u/thetechgeekster, have you found a solution for the UI Overlay?
I used
adb shell wm size 2160x3840 in order to make it usable, but I am not sure if there are other, more orthodox methods available

2

u/[deleted] Sep 02 '22 edited Sep 02 '22

Hi,

I've building automotive from LineageOS 18.1, for gts4lvwifi, but wifi doesn't work (can't be enable). Have installed waze, maps, swiftkey keyboard, spotify, they all work fine but though Bluetooth data since WiFi doesn't work. Now I build the same but with SnappAutomotive repo, will inform if it works. Ok WIFI Work with Snapp (and landscape !) but bluetooth doesn't work anymore

1

u/nachschattengewaechs Oct 12 '22

could you post a link to your image ? i also have the wifi problem but my build failed.

1

u/[deleted] Nov 04 '22

Hi,

Sorry I haven't the build file anymore, Contabo (host) closed my VPS

1

u/[deleted] Jun 22 '22

We need it for S5E WiFi model since google have killed Android Auto on tablet too.

I'm using my S5E WiFi as Headunit, runing Android auto but now it's not possible anymore, I search alternatives

1

u/page113 Dec 08 '22

Love this, and gave it a try - trying to port a video app following the guide at https://developer.android.com/training/cars/video which needs a library called "android-automotive-video". Works fine on the emulator, but won't install on S5e because the library is missing (INSTALL_FAILED_MISSING_SHARED_LIBRARY) - I can't find where I can build this library in Lineage or in the Snapp repo. Anyone has a workaround?

1

u/tompratt Dec 08 '22

Unfortunately this requires a build with GAS installed which is not available through mind the gapps or open gapps yet.

6

u/npjohnson1 Lineage Director Jun 28 '21

As official targets? probably not. Unless it's a native Android Automotive device.

Am interested in your work though. Want to DM/Chat me and we can talk about what all this entails?

Assuming you pulled GMS from some other dump/target for it, and had to add build targets.

At minimum, vendor/lineage configs for automotive would be awesome! And Gerrit is open for that sort of contribution.

2

u/kurjak2 Jul 14 '23

Very interested in what you and @tompratt are doing. Is thete more information available then the links in the post ? (Background: I haven’t made any android builds but I am very interested to build android automotive on a tablet) Thanks op for sharing!

3

u/npjohnson1 Lineage Director Jul 14 '23

vendor/lineage has full Car GSI support at this point.

gsi_car_arm64 or gsi_gsi_x86_64

3

u/hedwin555 Jul 04 '21

Nice, do you plan to maintain it?

3

u/MairusuPawa Jun 29 '21

Somewhat interested. I've got what essentially is a self-contained Chinese tablet for a dashboard in my car, with a dedicated LTE sim card (cheap 10€/month contract for unlimited data). Android unfortunately is way too buggy especially when it comes to its audio pipeline (with Waze killing everything in its way then freezing up when firing up audio notifications) and when it comes to sleep modes.

I'd be very ok with switching this device to LineageOS.

1

u/max63094 Jun 29 '21

I find this very interesting. I would love to also see something like this maybe ported to the Raspberry Pi 4 or CM4. I think it would be great for people making their own radios. My question is though, with the Android Automotive, is there any OBD2 apps, as I think that would be an amazing addition. Great work u/tompratt

3

u/alsutton Jun 30 '21

We’ve already ported AAOS to the RPi 4 - https://link.medium.com/8dnYWl0evhb

1

u/max63094 Jun 30 '21

Very interesting, nice find. I am going to have to see about getting my Raspberry Pi 4 setup with this. I would love to do a full project. Thanks for the info

1

u/Kaveras1 Nov 03 '21

Hi, I've been trying to follow the instructions listed on the webpage and came a cross some problems.
-Tried to build it myself but got some errors while building (on 93% ;/), so tried prebuild one

-On prebuild I successfully created bootable usb stick, manage to boot it on rpi but after the Snapp logo, main screen appeared (only bottom deck) and then rpi started to enter boot loop with the same results. Worth to mention, I managed to do it only on my PC screen, while trying to connect to touchscreen 7'' display I got 'no support' msg, and after reconnecting hdmi it was displaying not synced output, it was shifted and also not responding to touch (well it somehow was responding but verrryyy laggy and it stuck right after couple seconds).

Can you somehow advise me ? Running rpi 4 4gb ram.

1

u/Logic-Punch Jan 17 '22

I too am having the exact same results unfortunately.
running rpi4 B 8gb.

1

u/fuck_happy_the_cow Feb 16 '22

have you all attempted to dabble in having the device connect to the carplay protocol like a few of the boxes out there?

1

u/chrisprice Long Live AOSP - *Not* A Lineage Team Member Jun 28 '21

What GMS binaries are you using? Is it working with standard MindTheGapps and the phone Google Maps?

2

u/tompratt Jun 28 '21 edited Jun 29 '21

Doesn't work so great with standard gapps. Mainly because the regular play store refuses to work on automotive builds.

I've just sideloaded the TomTom Amigo app for navigation in those screenshots.

0

u/JG_2006_C Oct 25 '23

Just use android auto if you want gapps doing it half eay is stupid

2

u/schrolock Feb 23 '23

I know this is an old post, but has there been any progress? Just got a Tab A8 and would live smthng like this

2

u/00flour Mar 04 '23

This seems like this needs an update. The post is 2 years old now, and GAS has changed a lot since then. Using the emulators is painful at best on PC's. Would be great to have this working on a tablet. I see the raspberry PI stuff out their as well. Wish Google would offer a pixel tablet with AAOS installed for testers/developers to use.

1

u/certifiedsysadmin Aug 28 '24

Google announced in May that they are releasing an AAOS image for the Pixel Tablet.

2

u/kylenik971 Oct 26 '24

Is there a guide, I could follow for this?

1

u/Known_War_7513 Dec 20 '24

Is this option still working

1

u/CVGPi Aug 01 '25

GSI plan?

1

u/91EGT Jun 29 '21

That looks awesome. Great job.

1

u/borconie Jun 29 '21

Nice one and congrats :) been thinking of doing something like this better never had the time. Well done and nice job!

1

u/gemelendez Jun 30 '21

Wow amazing!!! it is a really innovative and useful idea for the community.

1

u/skooogis Jun 30 '21

Awesome! I have an S5e, not possible for me to download/recieve this in any way?

I work with a lot of Samsung-tablet and would love to see this for Tab Active PRO and Tab Active 3!

1

u/geek_techker Jun 30 '21

does it work on tab A?how do we get the image? im an android developer and would like to start practicing on Auto..i actually got a radio for my car that has android auto..lol but this would be great for dev..😁

1

u/Worldly_Scratch_64 Jul 01 '21

Would love to try it out... Looking for something just like this.. been using headunit reloaded

1

u/litzer_rubicon Jul 02 '21

Would love to try it out too

1

u/jonasion Jul 16 '21

Very interesting mate, and well done! It caught my eye as I was hoping to upgrade an old Merc with a modern tablet with AA to give me more than just what's in a small form factor like a headunit (also don't want to replace original content, but hook up a larger 18" screen to cover the older original gear in the car. (and not at all what your post is about, sorry, just wanted to dip in.)

1

u/mr_sir_Gentleman Aug 17 '21

I would love this for my Tab S6lite, I have been trying to find something to get it to work as the headubit for my car, but most apps are crap for it, and Android Auto for phonescreens aren't that optimised for the big screen

1

u/SamsungHandyLel Aug 26 '21

Would this be possible on any tablet? Is there a github/gitlab or any page how to do this if this is working on any tablet Edit: very interested in it

1

u/[deleted] Sep 09 '21

That could be a good thing to replace non-adapted Android versions built-in for aftermarket Android headunit. Let us know if you need more details, or testers! :)

1

u/WisamAlrawi Sep 26 '21

I have a Samsung s5e WiFi edition not the LTE. I'm trying to build AA
for it but your repo only has it for the LTE version. Can you help?

I was able to build from sources and follow your tutorial but I don't
know what needs to be modified to make it work on the s5e WiFi.

1

u/DebangRekar Dec 08 '21

finally something amazing for Tab S5E cant wait to flash it.

1

u/Audi0phil3 Apr 05 '22

Sooo... How it's going? I would love to buy / download it on my tablet as a Headunit Reloaded alternative

1

u/nachschattengewaechs Oct 11 '22

I have been able to setup AAOS on the tablet but cannot add wifi and the wifi is turning itself off

1

u/KaAlBen Oct 11 '22

I would love it, I bought a cheap chineese android head unit few months ago and although it does the job with some tweaks or Android auto with head unit reloaded, the stock rom is absolutely horrible in use (stock phone app locked, Bluetooth settings locked ??? ... ) I have been looking for a custom rom since then with no success. my concern is about the vehicle integration like sensors display and command display, I am certain in no time there will be 3rd party apps that do the job.

Great idea to integrate it with Lineage OS.

1

u/nachschattengewaechs Oct 12 '22

Does anybody have a rebuilt version for the wifi version of the s5e ? mine failed with the lte version my wifi isnt working

1

u/nachschattengewaechs Oct 27 '22

Is there an updated version with landscape function?

1

u/_mymemoryleaks Oct 23 '23

adb shell settings put system user_rotation 1

to see how it would look like

1

u/appletechgeek Apr 28 '23

damn this looks damn neat.

i currently got android 11 loaded up on a xperia Z ultra.

i want to use that massive phone IPS screen for my car.

but AAOS would be perfect.

does AAOS connect to android auto headunits for a dual screen experience?