gokadzev / gokadzev/Musify

[Feature] Request Support for Android Automotive OS

Open
#599 0 comments 0 reactions 1 assignee Claimed by @gokadzev View on GitHub
state: help wanted type: enhancement
Dominant language
Dart
Stars
4.2k
Forks
385
Avg merge
1d 18h
Merged PRs (30d)
17

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues and confirmed that this feature is not already requested.
- [x] I read the [FAQ section](https://github.com/gokadzev/Musify/discussions/340) and there's nothing mentioned about this feature.

### Category of the Feature

Code Refactor, Unable to categorize

### Credits

Jogy

### Pain

I would like to request support for Android Automotive OS. This is different from Android Auto.

### Suggested Solution

I'm not quite sure if I have a solution, but upon doing a Google search, I understand that the code has to include a section for Android Automotive as indicated in the Reference section.

### Useful Resources/References

`To enable compatibility for an Android app on Android Automotive OS (AAOS), you need to add support for automotive features in Android Studio, create an automotive module, and update your Gradle dependencies. You can also optionally implement settings and sign-in activities that are vehicle-optimized.

Here's a more detailed breakdown:

1. Enable Automotive Features in Android Studio:
Ensure you're using Android Studio 4.0 or higher to enable all Automotive OS features.
2. Create an Automotive Module:
Some components of AAOS, like the manifest, have platform-specific requirements, so you'll need an automotive module.
3. Update Gradle Dependencies:
Modify your project's Gradle dependencies to support AAOS.
4. Optional: Implement Vehicle-Optimized Activities:
If you're implementing settings or sign-in activities, ensure they are designed for the car's display and user interface, as detailed in the Design guidelines for Android Automotive OS.
5. Design Considerations:
AAOS handles the layout of media content, so your app doesn't need to draw the UI or start activities when media playback is triggered.
6. Testing:
Use the compatibility framework tools provided by Android to test your app on AAOS, [as described in the Android Developers Blog](https://android-developers.googleblog.com/2020/07/testing-app-compatibility-Android.html).
You can use logcat or ADB to identify which compatibility framework changes are enabled and use ADB to toggle them on or off.
[Android Developers Blog](https://android-developers.googleblog.com/2020/07/testing-app-compatibility-Android.html) also mentions using Android Studio to run automated tests.
7. Compatibility Mode:
If your app requires special handling for orientation or resizability, you can add the element to your app's manifest to enable display compatibility mode.
To test your app in compatibility mode, use the generic system images with compatibility mode.
By following these steps and design guidelines, you can ensure your Android app is compatible with Android Automotive OS.`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.