Android RIL and GNSS driver for Android 13 on x86_64

After a lot of try and error i managed to get some success with the driver files and their included documentation. However I’m still facing a few issues:

For RIL 1.1:
The manifest XML provided in the documentation seems to be incomplete as i needed to add some extra bits from here:

Without the extra XML bits i always got this error:

03-30 14:10:01.220  1750  1750 W HidlServiceManagement: Waited one second for android.hardware.radio@1.0::IRadio/slot1
03-30 14:10:01.220    47    47 I hwservicemanager: Since android.hardware.radio@1.0::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
03-30 14:10:01.220  1750  1750 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.0::IRadio/slot1...
03-30 14:10:01.220    47  2177 W libc    : Unable to set property "ctl.interface_start" to "android.hardware.radio@1.0::IRadio/slot1": error code: 0x20
03-30 14:10:01.220    47  2177 I hwservicemanager: Tried to start android.hardware.radio@1.0::IRadio/slot1 as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
03-30 14:10:01.690     0     0 E init    : Control message: Could not find 'android.hardware.radio@1.0::IRadio/slot1' for ctl.interface_start from pid: 47 (/system/bin/hwservicemanager)

Other than that it looks like its working for the most part except for audio during voice calls.
Is there some extra configuration required to get that working as well or does that have to do with the RIL driver being incompatible with android 13 ?
GPS is working as expected too so thats something.
So far i wasn’t able to test the data connection yet. I’ll check that later.

For RIL 1.6:

It doesn’t even manage to start the rild due to some linker errors due to a missing symbol. No idea where to start debugging that as i suspect that its related the ril library you provided and not anything with the android itself.

03-30 13:59:04.024     0     0 I init    : starting service 'vendor.ril-daemon'...
03-30 13:59:03.591  1656  1656 F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/rild": cannot locate symbol "_ZN7android8hardware12ProcessState16initWithMmapSizeEm" referenced by "/vendor/lib64/libril.so"...
03-30 13:59:04.052     0     0 I init    : Service 'vendor.ril-daemon' (pid 1656) exited with status 1
03-30 13:59:04.052     0     0 I init    : Sending signal 9 to service 'vendor.ril-daemon' (pid 1656) process group...
03-30 13:59:04.052     0     0 I libprocessgroup: Successfully killed process cgroup uid 1001 pid 1656 in 0ms
03-30 13:59:04.238     0     0 I logd    : logdr: UID=0 GID=0 PID=1657 b tail=0 logMask=99 pid=0 start=0ns deadline=0ns
03-30 13:59:03.918   115   638 D gps_ql  : Error connecting rild-nmea (Connection refused)
03-30 13:59:03.918   115   638 D gps_ql  : fail to open GPS channel <rild-nmea>!
03-30 13:59:04.177   816   816 W HidlServiceManagement: Waited one second for android.hardware.radio@1.6::IRadio/slot1
03-30 13:59:04.177    47    47 I hwservicemanager: Since android.hardware.radio@1.6::IRadio/slot1 is not registered, trying to start it as a lazy HAL.
03-30 13:59:04.177   816   816 I HidlServiceManagement: getService: Trying again for android.hardware.radio@1.6::IRadio/slot1...
03-30 13:59:04.177    47  1659 W libc    : Unable to set property "ctl.interface_start" to "android.hardware.radio@1.6::IRadio/slot1": error code: 0x20
03-30 13:59:04.177    47  1659 I hwservicemanager: Tried to start android.hardware.radio@1.6::IRadio/slot1 as a lazy service, but was unable to. Usually this happens when a service is not installed, but if the service is intended to be used as a lazy service, then it may be configured incorrectly.
03-30 13:59:04.639     0     0 E init    : Control message: Could not find 'android.hardware.radio@1.6::IRadio/slot1' for ctl.interface_start from pid: 47 (/system/bin/hwservicemanager)
03-30 13:59:04.918   115   638 D gps_ql  : Error connecting rild-nmea (Connection refused)
03-30 13:59:04.918   115   638 D gps_ql  : fail to open GPS channel <rild-nmea>!
03-30 13:59:05.177   816   816 W HidlServiceManagement: Waited one second for android.hardware.radio@1.6::IRadio/slot1