I have been struggling with making Android Auto works on my China Version Moto Edge X30, and finally I succeeded. I am very excited so want to share the solution. Previously, it will show "no installed apps work with this usb accessory" when connect the phone to the car's display. The method is provided by Chinese User "安卓那些事儿".
Below is a link to the article (in Chinese).
post.smzdm.com
The idea is to make android auto an system app with privilege. You will need the following:
After installing the two modules in Magisk, run the systemizer as 'SU'. Select "3 - Systemize given apk", then type in full path of your downloaded android auto apk. Under "where to install", select "2 /system/priv-app". After restart, it likely will work if you are in the same situation as mine.
Below is a link to the article (in Chinese).

安卓那些事儿 篇一:在安卓11,安卓12系统上使用Android Auto_软件应用_什么值得买
创作立场声明:本文原创,参考随意,转载请标明出处手机码字,想到啥写啥,纯经验虽然国内的车基本上都用上了苹果的carplay,也有些人依然坚持在折腾a
The idea is to make android auto an system app with privilege. You will need the following:
- Magisk
- Busybox for Android NDK (Magisk Module)
- App Systemizer (Terminal Emulator) (Magisk Module)
- Apk for Android Auto ap
After installing the two modules in Magisk, run the systemizer as 'SU'. Select "3 - Systemize given apk", then type in full path of your downloaded android auto apk. Under "where to install", select "2 /system/priv-app". After restart, it likely will work if you are in the same situation as mine.