Skip to content

Instantly share code, notes, and snippets.

@calebccff
Last active February 18, 2022 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calebccff/443e2d870053bd031d2f3c2052605521 to your computer and use it in GitHub Desktop.
Save calebccff/443e2d870053bd031d2f3c2052605521 to your computer and use it in GitHub Desktop.
Writing a RIL HAL for AOSP / mainline

Writing a RIL HAL for AOSP / mainline

References

How do?

libqmi is a GLIB based library which offers the ability to talk over QMI, interact with services etc. It's the library used by ModemManager to provide QMI based data, SMS and calling on the Snapdragon 845 platform.

GLIB doesn't support bionic libc, so we can't use it on Android, we need something new! Thankfully libqmi and qmicli can be compiled with -DMESSAGE_ENABLE_TRACE to CFLAGS to enable dumping all the QMI messages and their contents!

uqmi

Similar functionality to libqmi, it's a QMI library...

upstream: https://git.openwrt.org/?p=project/uqmi.git;a=summary Someone wrote an Android.mk (pretty simple, should port to Soong): https://github.com/rpetrovski/android-x86-external-uqmi/commit/b5170cf4df28ec157930904b61dd572c1819c75b

No QRTR support, so would have to port, ModemManager have libqrtr-glib so does Bjorn, MM libqrtr is also GLIB so it's a no-go, Bjorns should implement enough features, or be more easily extended.

Not sure how these tie together, I guess QRTR becomes the backend instead of the qmi cdc chardev?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment