[ONE Android Development] aevan:
Hello,

I've got the exact same problem. Has anyone managed to fix it?

It appeared no so long ago, as I managed to get Android Auto work successfully with Tomoms ROM in the past.

I'm currently using the last ROM (lineage-18.1-20220805-UNOFFICIAL-Tom-bacon-signed.zip) with the last MindTheGapps (MindTheGapps-11.0.0-arm-20220217_095902.zip) and Android Auto app version 7.8.622513-release.

I also noticed something strange with Android Auto app authorization, especially for the phone one:

As you can see, it is grayed out with a mention that means "The device requires this authorization to work properly". That's strange. I also tried the same operation with OpenGapps, then in this case the system let me change the authorization, but Android Auto totally crashes when I plug the USB cable.

@Tomoms You will find attached a logcat, even if I'm not sure it will help you much. What I've done to take it:

1. Restart my device

2. Plug the USB cable into my car

3. Launch Android Auto from my car screen

4. Tap the "Phone" icon in my car screen (it was approximately 15:17 at this moment)

5. Then got the message "Phone permission needed to take calls. When it's safe, turn on the Phone permission in Settings"

I also thought it could by related to priv-app permissions defined in /system/etc/permissions/privapp-permissions-google-p.xml. Here what MindGapps is setting for com.google.android.projection.gearhead (Android Auto package name):

<privapp-permissions package="com.google.android.projection.gearhead">
<permission name="android.permission.ACCESS_NETWORK_CONDITIONS"/>
<permission name="android.permission.ACTIVITY_EMBEDDING"/>
<permission name="android.permission.BLUETOOTH_PRIVILEGED"/>
<permission name="android.permission.CALL_PRIVILEGED"/>
<permission name="android.permission.CAPTURE_AUDIO_HOTWORD"/>
<permission name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
<permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
<permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>
<permission name="android.permission.COMPANION_APPROVE_WIFI_CONNECTIONS"/>
<permission name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
<permission name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
<permission name="android.permission.DUMP"/>
<permission name="android.permission.ENTER_CAR_MODE_PRIORITIZED"/>
<permission name="android.permission.LOCAL_MAC_ADDRESS"/>
<permission name="android.permission.LOCATION_HARDWARE"/>
<permission name="android.permission.MANAGE_USB"/>
<permission name="android.permission.MODIFY_AUDIO_ROUTING"/>
<permission name="android.permission.MODIFY_DAY_NIGHT_MODE"/>
<permission name="android.permission.MODIFY_PHONE_STATE"/>
<permission name="android.permission.OBSERVE_GRANT_REVOKE_PERMISSIONS"/>
<permission name="android.permission.OVERRIDE_WIFI_CONFIG"/>
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.READ_WIFI_CREDENTIAL"/>
<permission name="android.permission.REAL_GET_TASKS"/>
<permission name="android.permission.REGISTER_CALL_PROVIDER"/>
<permission name="android.permission.REMOTE_DISPLAY_PROVIDER"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
<permission name="android.permission.START_TASKS_FROM_RECENTS"/>
<permission name="android.permission.UPDATE_DEVICE_STATS"/>
<permission name="android.permission.USER_ACTIVITY"/>
</privapp-permissions>

May be there's something wrong here.

Thanks for your help!