# Creating QMI traces from Android phones with Frida to reverse engineer Voice over LTE

DevFeed: [Creating QMI traces from Android phones with Frida to reverse engineer Voice over LTE](<https://devfeed.tech/articles/creating-qmi-traces-from-android-phones-with-frida-to-reverse-engineer-voice-over-lte-106670.md>)

Original publisher: [Read original article](<https://nura.eco/blog/2025/06/17/volte-project-qmi-sniffing-with-frida/>)

Published: 2025-06-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [postmarketOS](<https://devfeed.tech/sources/postmarketos-blog.md>)

Topics: [4g lte](<https://devfeed.tech/topics/4g-lte.md>), [adb](<https://devfeed.tech/topics/adb.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-phones](<https://devfeed.tech/tags/android-phones.md>), [frida](<https://devfeed.tech/tags/frida.md>), [lte](<https://devfeed.tech/tags/lte.md>), [nura](<https://devfeed.tech/tags/nura.md>), [postmarketos](<https://devfeed.tech/tags/postmarketos.md>)

## AI overview

The post describes a way to capture QMI traffic from a rooted OnePlus 6T running LineageOS to investigate Qualcomm VoLTE. After SCAT did not yield messages and osmo-qcdiag was limited to Linux TTY devices, the author uses Frida to inject a JavaScript sniffer into a running Android process. The laptop client then wraps captured QMI messages in GSMTAPv3 and sends them over UDP to localhost:4729 for tcpdump capture and decoding. The instructions specify Frida 16.6.6, adb root, qmi-frida-tracer and its Python requirements; the post notes that simulating a client ID and Wireshark support for GSMTAPv3 QMI decoding remain open improvements.

## Source excerpt

This is a guest blog post by Alexander 'lynxis' Couzens, one of the people behind the OpenIMSd NLnet project funded by NGI Zero Core. At postmarketOS we helped them create a grant proposal, and continue helping with project planning. For more details, check the project website. We thank NLnet and the NGI Zero Core fund for supporting this initiative. Introduction To investigate how the Voice over LTE stack in Qualcomm based phones works, I have to look into the QMI interface. QMI is a structured interface using TLV. Furthermore, QMI is a protocol which can be used over different interface and offers communication between services. A service usually handles a logical component of the baseband, e.g. the communication with the simcard is handled by the UIM (User Identity Module). Or the NAS handles the high level Network Access. QMI also supports multiple clients at the same time. It allows two daemons to communicate via QMI at the same time without the need to synchronize with each other. QMI supports at least communication over the following transports (not a full list): USB (e.g. mini-pcie) Shared memory (SoC) Socket (kernel socket class, but internally over shared memory) Tunneled over Qualcomm Diag To research the QMI VoLTE messages of a stock Android, we need to able to capture those messages. When I first encountered QMI and researched how the "legacy" voice calls are working on Qualcomm based phones, I used Qualcomm Diag for it using the osmo-qcdiag project. Sadly osmo-qcdiag only supports Qualcomm Diag when exposed as TTY on Linux via /dev/ttyXXXX, but not (as many other projects by now) directly via USB without a kernel driver. The issue with the kernel driver is the limited support of devices. When enabling Qualcomm Diag for a new phone, it requires a small patch to add the USB ID to the driver. Other projects like SCAT or QCSuper can use libusb to directly communicate with the phone. Because of this I tried to add QMI sniffing in SCAT, but it didn't work wi