Divested-Mobile / DivestOS-Build

Everything needed to build DivestOS, a more private and more secure aftermarket mobile operating system.
https://divestos.org/index.php?page=build
Other
226 stars 31 forks source link

Android Auto support #314

Open NoName1311 opened 4 months ago

NoName1311 commented 4 months ago

Is it possible to include an Android Auto as a user app patch? Maybe it can be integrated behind a switch like in GrapheneOS. With microg and appropriate rights, Android Auto should actually run.

I know Google apps are outside the scope of DivestOS. I have to ask because DivestOS is my favorite OS but I really miss the integration in my car. Unfortenatly there is no alternative to Android Auto. Please keep up the good work.

SkewedZeppelin commented 4 months ago

I actually did look into this when I originally added unpriv microG patchset.

It should be possible, but needs some special handling of the permissions. There was a WIP patchset here: https://github.com/dylangerdaly/platform_frameworks_base/commit/6e5af26be267db4a6bccb8efcbfffd1110425618

NoName1311 commented 4 months ago

Thank you for the quick reply. Maybe this can be used to gain initial insights into the changes required. I also found this pull request GrapheneOS/platform_frameworks_base - Add Android Auto support; rewrite infrastructure for APK parsers and parsed APK hooks #468 Unfortunately it contains additional changes and is very large (46 commits / 81 changed files).

I am a software developer, but currently have no knowledge of Android development at all. I will try to dig a little deeper into how it works. This will take some time, as my free time is very limited (a few hours per week for private software) I am happy to support or, if it is not a priority, I will try to develop a patch myself (hopefully Android 15 or 16 will not be out by then :)

dktzde commented 3 months ago

Just for your Information: iodéOS added AndroidAuto in it's last build: https://blog.iode.tech/use-android-auto-with-iodeos/