[General Topics] braga2:
I did it. You need a A13 LineageOS-20.0 rom with signature spoofing patch. Here is my patch https://github.com/braga2/sigspoof

Apply that patch and build as described in official instruction https://wiki.lineageos.org/devices/barbet/build instead of barbet use your device codename. I built for my bluejay.

Burn the ROM.

Install Google APP Stub. I built it from sources from here https://git.sr.ht/~dylanger/Google-App-Stub

Install Mozilla UnifiedNLP Backend from F-droid.

Then you have to install latest MicroG GmsCore and FakeStore from official github https://github.com/microg as a regular apps with forceQueryable flag enabled. I used such commands:

adb install --force-queryable FakeStore-v0.1.0.apk

adb install --force-queryable com.google.android.gms-223616052.apk

Enable signature spoofing for both these apps and other required permissions.

Enable Mozilla UnifiedNLP (Mozilla Location Service) in MicroG.

Of course you can disable internet access for this app and for MicroG as well.

Then reboot to LIneage Recovery and install 'android auto stub'. I used latest NikGapps-Addon-13-AndroidAuto from official sourceforge https://sourceforge.net/projects/ni...n-13-AndroidAuto-20220908-signed.zip/download

I installed it manually without using scripts. Mounted system in recovery, then mounted /product in adb and put these 3 files using 'adb push': AndroidAutoOverlay.apk into /product/overlay, AndroidAutoStubPrebuilt.apk into /product/priv-app/AndroidAutoStubPrebuilt and com.google.android.projection.gearhead.xml into /product/etc/permissions

Maintain correct permissions for files root:rw-r-r and for AndroidAutoStubPrebuilt dir root:rwx-rx-rx

Also important! grep gearhed /product/etc/permissions/* and remove or comment all xml permission tags except our installed file(com.google.android.projection.gearhead.xml). I found it in privapp-permissions-google-p-lineage.xml and commented whole corresponding xml tag so it looks like this:

<!--privapp-permissions package="com.google.android.projection.gearhead">
<permission name="android.permission.ACTIVITY_EMBEDDING"/>
<permission name="android.permission.BLUETOOTH_PRIVILEGED"/>
<permission name="android.permission.CALL_PRIVILEGED"/>
<permission name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/>
<permission name="android.permission.COMPANION_APPROVE_WIFI_CONNECTIONS"/>
<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.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.REQUEST_COMPANION_SELF_MANAGED"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
<permission name="android.permission.UPDATE_APP_OPS_STATS"/>
</privapp-permissions-->

Well. Reboot system now and install latest Android Auto, Google Maps, Google TTS from Aurora Store (or any other source).

Enable location permission for GMaps and all permissions for Android Auto. Internet access for Android Auto can be disabled.

Disable USB-debug in Android developer menu.

Reboot the phone.

Cross your fingers and try to connect to head-unit.

When AA asks for maps location permission just hit Cancel.

If it does not connect - disconnect USB cable and clear storage for GMaps and AA and try again. It should work!

ps. Google Translate online does not work. It throws https 403 forbidden error but without MicroG it works fine.

Also GMaps works only english US language. I could not switch it to any other language even if phone language was ok. I guess the reason is the same 403 error, google bans the requests to their services by some headers. I plan to reverse-engineer and fix this ;)