osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.71k stars 1.03k forks source link

[Feature request] Android Automotive support #15981

Open chhjel opened 1 year ago

chhjel commented 1 year ago

🚀 feature request

Description

Support for Android Automotive and not just Android Auto.

Describe the solution you'd like

Would be nice with a version for Android Automotive so that a phone would not be required to use the app.

Describe alternatives you've considered

No good alternatives as I'm aware.

lbdroid commented 1 year ago

It does work in Android Automotive, but you have to launch it from the drawer, which means it will only work in full screen mode.

I presume what you're asking is to make it advertise itself as a navigation application for Android Automotive.

This can be accomplished by adding an intent filter category to the manifest; <category android:name="android.intent.category.APP_MAPS"/> https://android.googlesource.com/platform/packages/services/Car/+/refs/heads/master/car-maps-placeholder/AndroidManifest.xml#35

chhjel commented 1 year ago

Hmm can't seem to find the app at all on the app store from a Polestar 2, I'll do a better check in a few days and see if I can make it work 😃

lbdroid commented 1 year ago

I don't know what "app store" you are referring to, but it is available through F-Droid. If you're referring to something like the gooble mess, it filters availability by flags, so it would have to be advertised there as for cars. Ignore that and install directly, like with ADB or something.

chhjel commented 1 year ago

The app store is the Google Play store, but the app selection is quite limited on Android Automotive OS. There's not that many apps currently available currently: https://play.google.com/store/apps/collection/promotion_android_auto_embedded_exploreall

Developer Mode is blocked in Android Automotive OS, there's no USB-Debugging available, and installing not-trusted apks is also disabled, at least on the Polestar 2 as I'm aware.

It seems the only way other people are installing apps from outside of the app-store is by building the apps themselves, publishing the app using internal beta testing, and installing it from a web browser instead of the app store in the car. (https://forum.xda-developers.com/t/help-sideload-apps-polestar-2.4383145/)

Seems the app must go through some sort of review for it to be published on Android Automotive (https://developer.android.com/training/cars/distribute), I was hoping that could be done for OsmAnd so that the app would be visible on the app store within the car 😃

lbdroid commented 1 year ago

installing it from a web browser instead of the app store in the car.

@chhjel ; Its pretty terrible that they've crippled the build you're stuck with so thoroughly. IMO, that should be a crime. Regarding installation through a web browser; there shouldn't be any need to build the application yourself, just make it available through a web server from some location you can retrieve it. That could even be something like a git repository! You have an account on github, so create a repository and add your apk's to it, then install from the web browser in the car.

Yes, I know its a hack, but hopefully useful for you between now and when this "feature" is implemented.

landswellsong commented 8 months ago

+1 here There is another specific EV use-case, navigation to a charger can activate the battery precondition routine. The native google maps app does that so there might be some kind of API for doing it in OsmAnd.

TheOneAndOnlyPP commented 4 months ago

I really hope that Osmand can add support for Android Automotive OS (AAOS). More and more car models is launching with AA and there is a growing demand for map services that is an alternative to Google Maps. In the Wikipedia article below, they list 90+ models that is currently known, both with and without Google Services.

https://en.m.wikipedia.org/wiki/Android_Automotive

The comment from @chhjel ahows exactly what is needed. To use the built in feature of the Polestar 2 to precondition the battery 30 minutes before you reach the charger that the navigation is set to.

yekibud commented 1 week ago

Seems the app must go through some sort of review for it to be published on Android Automotive (https://developer.android.com/training/cars/distribute), I was hoping that could be done for OsmAnd so that the app would be visible on the app store within the car 😃

OSMAnd devs: It's been two years since this post and still sounds like no OSMAnd available on Android Automotive? Isn't it just a matter of submitting the app for publication as @chhjel suggested? What are the obstacles that need to be overcome? Is there any dev work?