Giter Club home page Giter Club logo

qcsuper's Introduction

QCSuper

QCSuper is a tool communicating with Qualcomm-based phones and modems, allowing to capture raw 2G/3G/4G (and for certain models 5G) radio frames, among other things.

It will allow you to generate PCAP captures of it using either a rooted Android phone, an USB dongle or an existing capture in another format.

Screenshot of using QCSuper along with Wireshark

After having installed it, you can plug your rooted phone in USB and using it, with a compatible device, is as simple as:

./qcsuper.py --adb --wireshark-live

Or, if you have manually enabled exposing a Diag port over your phone (the corresponding procedure may vary depending on your phone modem and manufacturer, see below for more explanations), or if you have plugged a mobile broadband dongle:

./qcsuper.py --usb-modem auto --wireshark-live

It uses the Qualcomm Diag protocol, also called QCDM or DM (Diagnostic Monitor) in order to communicate with your phone's baseband.

You are willing to report that your device works or does not work? You can open a Github issue.

Table of contents

Annexes:

Blog post/demo: Presenting QCSuper: a tool for capturing your 2G/3G/4G air traffic on Qualcomm-based phones

More documentation:

Installation

QCSuper was lately tested and developed on Ubuntu LTS 22.04 and also has been used over Windows 11. It depends on a few Python modules. It is advised to use Linux for better compatibility.

To use it, your phone must be rooted or expose a diag service port over USB. In order to check for compatibility with your phone, look up the phone's model on a site like GSMArena and check whether it has a Qualcomm processor.

In order to open PCAP files produced by QCSuper, you can use any Wireshark 2.x - 4.x for 2G/3G frames, but you need at least Wireshark 2.5.x for 4G frames (and 2.6.x for individual NAS messages decrypted out of 4G frames). Ubuntu currently provides a recent enough build for all versions.

Decoding 5G frames was tested under Wireshark 3.6.x and will be done through automatically installing a Wireshark Lua plug-in (in %APPDATA%\Wireshark\plugins under Windows or in ~/.local/lib/wireshark/plugins under Linux and macOS), which can be avoided through setting the DONT_INSTALL_WIRESHARK_PLUGIN=1 environment variable if you are willing to avoid this.

Ubuntu and Debian installation

In order to install the stable version of QCSuper system-wide from PyPI, you can run these commands:

# Install dependencies
sudo apt install python3-pip wireshark

# Install stable QCSuper system-wide
sudo pip3 install --upgrade qcsuper

Then, you can just type qcsuper in your terminal to run QCSuper. (Use this anywhere in place of where ./qcsuper.py is written below.)

In order to install the development version in a specific folder, open a terminal and type the following:

# Download QCSuper
git clone https://github.com/P1sec/QCSuper.git qcsuper
cd qcsuper

# Install dependencies
sudo apt install python3-pip wireshark
sudo pip3 install --upgrade pyserial pyusb crcmod https://github.com/P1sec/pycrate/archive/master.zip

Then, run QCSuper from the qcsuper/ directory, using the ./qcsuper.py command in the terminal.

Windows installation

QCSuper can run on Windows, but you should beforehand ensure that Google's ADB prompt correctly runs on your machine with your device, and you should as well manually create libusb-win32 filters (through the utility accessible in the Start Menu after installing it) in the case where your device directly needs to connect to the Diag port over pseudo-serial USB.

(Please note that if you mode-switch your device, the associated USB PID/VID may change and it may require to redo driver associations in the libusb-win32 filter creation utility - and/or in the Windows peripherial devices manager depending on the case)

On Windows, you may need (in addition to Google's ADB kernel drivers) to download and install your phone's USB drivers from your phone model (this may include generic Qualcomm USB drivers). Please search for your phone's model + "USB driver" or "ADB driver" on Google for instructions.

Then, you need to ensure that you can reach your device using adb. You can find a tutorial on how to download and setup adb here. The adb.exe shell (or whatever executable path you use, a copy of the ADB executable is present in the qcsuper/inputs/external/adb folder of QCSuper) command must display a prompt to continue.

Then, follow these links (the tool has been tested lately on Windows 11 - it is not guaranteed to work on Windows 7) in order to:

To install the required Python modules, open your command prompt and type:

pip3 install --upgrade pyserial pyusb crcmod https://github.com/P1sec/pycrate/archive/master.zip https://github.com/pyocd/libusb-package/archive/master.zip

Still in your command prompt, move to the directory containing QCSuper using the cd command. You can then execute commands (which should start with py qcsuper.py or py3 qcsuper.py if you installed Python 3 from the online installer, or python3.exe .\qcsuper.py if you installed it from the Windows Store).

As noted above, it is possible that you have to add a libusb-win32 filter through the utility available in the Start Menu in order to ensure that the interface corresponding to the Diag port is visible by QCSuper on the mode-switched device (a first failed attempt to run the tool using the --adb flag should trigger a mode-switch if the ADB driver is working and the device is correctly rooted).

Screenshot of adding a libusb-win32 filter for the Diag port of a Mi phone

Supported protocols

QCSuper supports capturing a handful of mobile radio protocols. These protocols are put after a GSMTAP header, a standard header (encapsulated into UDP/IP) permitting to identify the protocol, and GSMTAP packets are put into a PCAP file that is fully analyzable using Wireshark.

2G/3G/4G protocols can be broken into a few "layers": layer 1 is about the digital radio modulation and multiplexing, layer 2 handles stuff like fragmentation and acknowledgement, layer 3 is the proper signalling or user data.

QCSuper allows you most often to capture on layer 3, as it is the most pratical to analyze using Wireshark, and is what the Diag protocol provides natively (and some interesting information is here).

  • 2G (GSM): Layer 3 and upwards (RR/...)
  • 2.5G (GPRS and EDGE): Layer 2 and upwards (MAC-RLC/...) for data acknowledgements
  • 3G (UMTS): Layer 3 and upwards (RRC/...)
    • Additionally, it supports reassembling SIBs (System Information Blocks, the data broadcast to all users) in separate GSMTAP frames, as Wireshark currently can't do it itself: flag --reassemble-sibs
  • 4G (LTE): Layer 3 and upwards (RRC/...)
    • Additionally, it supports putting decrypted NAS message, which are embedded encrypted embedded into RRC packet, in additional frames: flag --decrypt-nas

By default, the IP traffic sent by your device is not included, you see only the signalling frames. You can include the IP traffic you generate using the --include-ip-traffic option (IP being barely the layer 3 for your data traffic in 2G/3G/4G, at the detail that its headers may be compressed (ROHC) and a tiny PPP header may be included).

The data traffic you send uses a channel different from the signalling traffic, this channed is setup through the signalling traffic; QCSuper should thus show you all details relevant to how this channel is initiated.

Usage notice

In order to use QCSuper, you specify one input (e.g: --adb (Android phone), --usb-modem) and one or more modules (--wireshark-live for opening Wireshark, --pcap-dump for writing traffic to a PCAP file, --info for generic information about the device...).

A few commands you can type are:

# Open Wireshark directly, using a rooted Android phone as an input,
# for compatible phones:
$ ./qcsuper.py --adb --wireshark-live

# Same, but dump to a PCAP file instead of opening Wireshark directly
$ ./qcsuper.py --adb --pcap-dump /tmp/my_pcap.pcap

Or, if it is not simple enough to work:

# Same, but using an USB modem/phone exposing a Diag serial port
# directly over USB, in the case where the "--adb" mode does not
# work directly:

# - With a compatible Android phone where the Diag port over USB has
#   been manually enabled by the user (see the "How to manually enable
#   the diagnostic ports on my phone" section below for a summary of
#   how this may be possible with most Qualcomm-based models)
#
#   In this case, you may try:
./qcsuper.py --usb-modem auto --wireshark-live
#   Or, if selecting manually the USB device corresponding to the 
#   Diag-enabled phone turns to be requried:
$ lsusb
(..)
Bus 001 Device 076: ID 05c6:9091 Qualcomm, Inc. Intex Aqua Fish & Jolla C Diagnostic Mode
$ ./qcsuper.py --usb-modem 1d6b:0003 --wireshark-live # With vendor ID:product ID...
$ ./qcsuper.py --usb-modem 002:001 --wireshark-live # ...or with bus ID:device ID
# Or, if selecting the configuration number and interface number (referred as "bConfigurationValue" and "bInterfaceNumber" in the USB desciprtors) turn to be required:
$ lsusb -v
(..)
$ ./qcsuper.py --usb-modem 1d6b:0003:1:0 --wireshark-live # With vendor ID:product ID:configuration:interface...
$ ./qcsuper.py --usb-modem 002:001:1:0 --wireshark-live # ...or with bus ID:device ID:configuration:interface

# - With a generic serial-over-USB device where the "usbserial" module has
#   loaded a /dev/ttyUSB{0-9} device corresponding to the diagnostic port:
$ sudo ./qcsuper.py --usb-modem /dev/ttyUSB2 --wireshark-live

# - With an Option device where the "hsoserial" module has loaded a
#   /dev/ttyHS{0-9} device corresponding to the diagnostic port:
$ sudo ./qcsuper.py --usb-modem /dev/ttyHS2 --wireshark-live

Here is the current usage notice for QCSuper:

usage: qcsuper.py [-h] [--cli] [--efs-shell] [-v] (--adb | --adb-wsl2 ADB_WSL2 | --usb-modem TTY_DEV | --dlf-read DLF_FILE | --json-geo-read JSON_FILE) [--info]
                  [--pcap-dump PCAP_FILE] [--wireshark-live] [--memory-dump OUTPUT_DIR] [--dlf-dump DLF_FILE] [--json-geo-dump JSON_FILE] [--decoded-sibs-dump]
                  [--reassemble-sibs] [--decrypt-nas] [--include-ip-traffic] [--start MEMORY_START] [--stop MEMORY_STOP]

A tool for communicating with the Qualcomm DIAG protocol (also called QCDM or DM).

options:
  -h, --help            show this help message and exit
  --cli                 Use a command prompt, allowing for interactive completion of commands.
  --efs-shell           Spawn an interactive shell to navigate within the embedded filesystem (EFS) of the baseband device.
  -v, --verbose         Add output for each received or sent Diag packet.

Input mode:
  Choose an one least input mode for DIAG data.

  --adb                 Use a rooted Android phone with USB debugging enabled as input (requires adb).
  --adb-wsl2 ADB_WSL2   Unix path to the Windows adb executable. Equivalent of --adb command but with WSL2/Windows interoperability.
  --usb-modem TTY_DEV   Use an USB modem exposing a DIAG pseudo-serial port through USB.
                        Possible syntaxes:
                          - "auto": Use the first device interface in the system found where the
                            following criteria is matched, by order of preference:
                            - bInterfaceClass=255/bInterfaceSubClass=255/bInterfaceProtocol=48/bNumEndpoints=2
                            - bInterfaceClass=255/bInterfaceSubClass=255/bInterfaceProtocol=255/bNumEndpoints=2
                          - usbserial or hso device name (Linux/macOS): "/dev/tty{USB,HS,other}{0-9}"
                          - COM port identifier (Windows): "COM{0-9}"
                          - "vid:pid[:cfg:intf]" (vendor ID/product ID/optional bConfigurationValue/optional
                            bInterfaceNumber) format in hexa: e.g. "05c6:9091" or "05c6:9091:1:0 (vid and pid
                            are four zero-padded hex digits, cfg and intf are canonical values from the USB
                            descriptor, or guessed using the criteria specified for "auto" above if not specified)
                          - "bus:addr[:cfg:intf]" (USB bus/device address/optional bConfigurationValue/optional
                            bInterfaceNumber) format in decimal: e.g "001:003" or "001:003:0:3" (bus and addr are
                            three zero-padded digits, cfg and intf are canonical values from the USB descriptor)
  --dlf-read DLF_FILE   Read a DLF file generated by QCSuper or QXDM, enabling interoperability with vendor software.
  --json-geo-read JSON_FILE
                        Read a JSON file generated using --json-geo-dump.

Modules:
  Modules writing to a file will append when it already exists, and consider it Gzipped if their name contains ".gz".

  --info                Read generic information about the baseband device.
  --pcap-dump PCAP_FILE
                        Generate a PCAP file containing GSMTAP frames for 2G/3G/4G, to be loaded using Wireshark.
  --wireshark-live      Same as --pcap-dump, but directly spawn a Wireshark instance.
  --memory-dump OUTPUT_DIR
                        Dump the memory of the device (may not or partially work with recent devices).
  --dlf-dump DLF_FILE   Generate a DLF file to be loaded using QCSuper or QXDM, with network protocols logging.
  --json-geo-dump JSON_FILE
                        Generate a JSON file containing both raw log frames and GPS coordinates, for further reprocessing. To be used in combination with --adb.
  --decoded-sibs-dump   Print decoded SIBs to stdout (experimental, requires pycrate).

PCAP generation options:
  To be used along with --pcap-dump or --wireshark-live.

  --reassemble-sibs     Include reassembled UMTS SIBs as supplementary frames, also embedded fragmented in RRC frames.
  --decrypt-nas         Include unencrypted LTE NAS as supplementary frames, also embedded ciphered in RRC frames.
  --include-ip-traffic  Include unframed IP traffic from the UE.

Memory dumping options:
  To be used along with --memory-dump.

  --start MEMORY_START  Offset at which to start to dump memory (hex number), by default 00000000.
  --stop MEMORY_STOP    Offset at which to stop to dump memory (hex number), by default ffffffff.

Specifying - to pipe data from stdin or towards stdout is supported (gzipped content may not be detected).

How to root my phone?

This README file is not a guide over how to root your phone (getting your phone to enable you to run commands such as "su").

In most of the recent Android devices, you must first use the "OEM/bootloader unlock" option prevent in the developer settings of the telephone in order to unlock the bootloader, then you may use a tool such as Magisk that will enable you to obtain a patched image for your phone's bootloader, that you will then be able to load onto your phone in fastboot mode.

QCSuper will have more chance to work easily on your Qualcomm-based device when your phone is rooted, but there often are ways to enable the Qualcomm Diag USB mode (also known as "DM", Diag Monitor) on your phone without having your phone rooted. This depends on your phone vendor and goes through, for example, typing a magic combination of digits onto your phone's dialer keypad. Please see the "How to manually enable the diagnostic ports on my phone?" section below for more details.

Before rooting your phone, remember that you may also want to use load an alternate recovery image such as TWRP onto your OEM-unlocked phone in order to perform partition backup using a tool such as TWRP (it may be as simple as loading the image through Fastboot, enabling the ADB link in the settings of TWRP, and using adb pull onto selected partitions in the /dev/block/by-name folder`).

For specific inscriptions on rooting or enabling the Diag mode on your phone model, you may search the information over the XDA-developers forum with appropriate keywords.

How to manually enable the diagnostic ports on my phone?

On Qualcomm/MSM Android-based devices bearing Linux kernel 4.9 or earlier (this includes roughly part of devices up to Android 12 and all devices before Android 10), Qualcomm-based Android devices normally contain a system device called /dev/diag which allows to communicate data to the diagnostics port of the baseband.

On Qualcomm/MSM Android-based devices bearing Linux kernel 4.14 or later (this includes roughly part of devices from Android 10 and all devices from Android 13), /dev/diag disappeared, as the corresponding diagchar module is disabled by default recent AOSP/Linux kernels.

On the devices bearing a Linux 4.9 or earlier MSM kernel, when using the --adb flag, QCSuper will try to connect through ADB automatically, will then attempt to transfer an executable utility connecting to the /dev/diag device, in order to launch it as root using a command such as su -c /data/local/tmp/adb_bridge, and subsequently transmit the diagnostics data with the device over TCP (also forwarding the corresponing TCP port through ADB).

On the devices bearing a Linux 4.14 or later MSM kernel, when using the --adb flag, QCSuper will try to connect through ADB automatically, will then attempt to mode-switch the USB port of the phone using a command such as su -c 'setprop sys.usb.config diag,adb', and then execute the equivalent of the --usb-modem auto flag (see below).

The --usb-modem <value> flag allows QCSuper to connect to the Qualcomm diagnostics port over a pseudo-serial port over USB, independently from ADB, which is the most common way to connect to the Qualcomm diag protocol of an Android-based phone using an external device.

In order to use --usb-modem <value> flag, the Qualcomm diagnostic port must be enabled on the corresponding phone, otherwise said the phone should have been USB mode-switched beforehand.

The most common way to USB mode-switch your device is to execute a command such as setprop sys.usb.config diag,adb as root, but there may be other ways (with certain phone vendors) to enable the Qualcomm diagnostics-over-USB mode, see for example this page for possible ways, for certain devices, to enable Diag without root - it often imples to type a magic combination of digits over the phone's dialer keypad.

In other devices, it may also be possible to use an APK file signed by the phone vendor and with System-related permissions in order to enable the Diag mode without rooting (search about the com.longcheertel.midtest APK for Xiaomi-based devices for example).

Once your device has been correctly most-switched, running the getprop sys.usb.config command over ADB should display a text string containing diag.

On the side of your computer, then, running lsusb (on Linux) should display a line referring your device, for example:

Bus 001 Device 076: ID 05c6:9091 Qualcomm, Inc. Intex Aqua Fish & Jolla C Diagnostic Mode

Note the 001:076 (bus index/device index identifier), and the 05c6:9091 (vendor ID/product ID) information present in this output.

Once you have this information available, you may try to use a flag such as --usb-modem 05c6:9091 or --usb-modem 001:076 with QCSuper (please respect the digit padding).

If this isn't conclusive, you may use the lsusb -v -d 05c6:9091 command, which should produce detailed output, including the USB configurations, interfaces and endpoints for the corresponding USB device:

Bus 001 Device 027: ID 05c6:9091 Qualcomm, Inc. Intex Aqua Fish & Jolla C Diagnostic Mode
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.01
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x05c6 Qualcomm, Inc.
  idProduct          0x9091 Intex Aqua Fish & Jolla C Diagnostic Mode
  bcdDevice            5.04
  iManufacturer           1 Xiaomi
  iProduct                2 Mi 11
  iSerial                 3 d94f4341
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0086
    bNumInterfaces          4
    bConfigurationValue     1
    iConfiguration          4 Default composition
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol     48 
      iInterface              0 
[...]

QCSuper allows you to manually select the identifiers of the configuration and the interface you are wishing to attempt to connect to on the concerned device (designated as bConfigurationValue and bInterfaceNumber in the raw USB descriptor), in the case where it isn't detected correctly. For example, the --usb-modem 05c6:9091:1:0 flag will select respectively configuration 1 and the interface 0 on the concerned device. --usb-modem 05c6:9091:1:4 will select the interface 4 over the configuration 1.

If the configuration and interface indexes detail isn't specified, it will select the first interface descriptor on the system USB bus which is found to match the following criteria, by order of preference:

  • bInterfaceClass=255/bInterfaceSubClass=255/bInterfaceProtocol=48/bNumEndpoints=2
  • bInterfaceClass=255/bInterfaceSubClass=255/bInterfaceProtocol=255/bNumEndpoints=2

When using the --usb-modem auto flag, the first device exposing an USB interface compilant with this criteria is picked, and if needed on Linux the underlying /dev/ttyUSB* (usbserial module) or /dev/ttyHS* (hso module) character device is selected, in the case where the device has been detected and mounted by a kernel module (see the "Using QCSuper with an USB modem" section below).

Alternately, on Linux, it may also be possible to manually create /dev/ttyUSB* endpoints corresponding to the interfaces of a given USB device, that you will able to can connect using QCSuper with a flag such as --usb-modem /dev/ttyUSB0 (this may require running QCSuper with root rights), using the usbserial module. For this, you can use a command such as:

sudo rmmod usbserial
sudo modprobe usbserial vendor=0x05c6 product=0x9091

Using QCSuper with an USB modem

You can use QCSuper with an USB modem exposing a Diag port using the --usb-modem <device> option, where <device> is the name of the pseudo-serial device on Linux (such as /dev/ttyUSB0, /dev/ttyHS2 and other possibilites) or of the COM port on Windows (such as COM2, COM3).

Please note that in most setups, you will need to run QCSuper as root in order to be able to use this mode, notably for handling serial port interference.

If you don't know which devices under /dev expose the Diag port, you may have to try multiple of these. You can try to auto-detect it by stopping the ModemManager daemon (sudo systemctl stop ModemManager), and using the following command: sudo ModemManager --debug 2>&1 | grep -i 'port is QCDM-capable' then Ctrl-C.

Please note that if you're not able to use your device with for example ModemManager in the first place, it is likely that it is not totally setup and that it will not work neither with QCSuper. A few possible gotchas are:

  • You didn't apply the proper mode switching command for your device.

  • If you bought a device that previously had a SIM from a different operator, your device may be sim-locked. You may have to use the unlock code from the former operator and submit it to the device, as if it was a PIN code: sudo mmcli -i 0 --pin=<your_unlock_code>

If your Qualcomm-based USB device doesn't expose a Diag port by default, you may need to type the following through the AT port in order to enable the Diag port:

AT$QCDMG

Please note that only one client may communicate with the Diag port at the same time. This applies to two QCSuper instances, or QCSuper and ModemManager instances.

If ModemManager is active on your system, QCSuper will attempt to dynamically add an udev rule to prevent it to access the Diag port and restart its daemon, as it's currently the best way to achieve this. It will suppress this rule when closed.

Supported devices

QCSuper was successfully tested with:

  • Sony Xperia Z (Phone) - 4G - works out of the box after rooting an enabling adb
  • Nexus 6P (Phone) - 4G - works out of the box after rooting an enabling adb
  • ZTE MF823 (USB Modem) - 4G - may require to mode-switch the device to CDC-WDM, set the device to factory mode, then execute the AT command mentioned above
  • ZTE MF667 (USB Modem) - 3G, 2011 - should work out of the box (may require mode switching)
  • Option Icon 225 (USB Modem) - 3G, 2008
  • Novatel Ovation MC998D (USB Modem)
  • ZTE WCDMA Technologies MSM MF110/MF627/MF636 (USB Modem)
  • ZTE 403zt (USB Modem) - 4G
  • OnePlus One and 3 (Phones)
  • Andromax A16C3H (Phone)
  • Samsung Galaxy S4 GT-I9505 (Phone)

Is it however aiming to be compatible with the widest possible range of devices based on a Qualcomm chipset, for the capture part.

Do no hesitate to report whether your device is successfully working or not through opening a Github issue.

Related tools using the Diag protocol

There are a few other open tools implementing bits of the Diag protocol, serving various purposes:

  • ModemManager: the principal daemon enabling to use USB modems on Linux, implements bits of the Diag protocol (labelled as QCDM) in order to retrieve basic information about USB modem devices.
  • SnoopSnitch (specifically gsm-parser): chiefly an Android application whose purpose is to detect potential attacks on the radio layer (IMSI catcher, fake BTS...). It also have a secondary feature to capture some signalling traffic to PCAP, which does not provide exactly the same thing as QCSuper (LTE traffic isn't encapsulated in GSMTAP for example, device support may be different).
    • diag-parser: A Linux tool that derivates from the PCAP generation feature from SnoopSnitch, somewhat improved, designed to work with USB modems.
  • MobileInsight: this Android application intends to parse all kinds of logs output by Qualcomm and Mediatek devices (not only those containing signalling information, but also proprietary debugging structures), and dumping these to a specific XML representation format. Does not provide user-facing PCAPs (but formerly used Wireshark as a backend for converting certain protocol information to XML).
  • qcombbdbg: A debugger for the Qualcomm baseband setting up itself by hooking a Diag command, through using the Diag command that allows to write to memory, for the Option Icon 225 USB modem.
  • OpenPST: A set of tools related to Qualcomm devices, including a GUI utility allowing, for example, to read data on the tiny embedded filesystem accessible through Diag (EFS).
  • SCAT: A tool with similar GSMTAP generation abilities, taking as input a serial port, also supporting Samsung Exynos.

qcsuper's People

Contributors

citypw avatar p1-bmu avatar p1-mmr avatar p1-ra avatar simonerni avatar wesmwoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qcsuper's Issues

Problem - I can not make it work

I'm in trouble too. I can not make it work

QCSuper# ./qcsuper.py --adb --wireshark-live -v
[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'error: closed\n'
[>] Running adb command: /usr/bin/adb shell "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
Communication with adb timed out, is your phone displaying a confirmation dialog?

Error: error response received: DIAG_BAD_CMD_F with payload b'', while the request was DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x01\x00\x00\x00'. Maybe this operation is not supported by your device.

kali linux

Disconnect fix

I went from maybe getting a solid packet or two, to it working properly, minus checks for the su being funky on my builds and saying I had no quallcomm, I fixed the disconnect errors by using ssh.
(so one has to use tmux, but, the upside is you can put it where-ever.)
Also to note, you gotta have a sim card, didn't know that, but a few hours and now ya can get the
info totally remotely..
I did the following:
#run_safe([adb_exe, 'forward', 'tcp:' + str(QCSUPER_TCP_PORT), 'tcp:' +
str(QCSUPER_TCP_PORT)], check = True, stdin = DEVNULL)
(hard coded version, im not a python dude.)
os.system('ssh -TfN -p 8022 -L 43555:localhost:43555 proxy ')
But this buffers such that it doesn't hose, cause adb's really bad about tcp over tcp, sepeculations of why, but it just chokes and drops connections in that manner of forwarding, usb or not. ssh properly keeps it from dieing and this makes --wireshark-live work way better too.

On Pixel 3, get "The connection to the adb bridge was closed, or preempted by another QCSuper instance"

When I run with a rooted Pixel 3 attached (running AOSP master), I get:

./qcsuper.py --adb --pcap-dump outputfile
43555
ioctl: Invalid argument

The connection to the adb bridge was closed, or preempted by another QCSuper instance

When I run strace /data/local/tmp/adb_bridge on the device, here's the last lines:

mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xeb8d1000
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0xeb8d1000, 4096, "atexit handlers") = 0
mprotect(0xeb8d1000, 4096, PROT_READ) = 0
munmap(0xeb776000, 409600) = 0
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
openat(AT_FDCWD, "/dev/properties/u:object_r:vendor_socket_hook_prop:s0", O_RDONLY|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC) = 3
fstat64(3, 0xffef2e40) = 0
mmap2(NULL, 131072, PROT_READ, MAP_SHARED, 3, 0) = 0xeb7ba000
close(3) = 0
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
prctl(PR_GET_DUMPABLE) = 1 (SUID_DUMP_USER)
futex(0xeb2d6080, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mprotect(0xeb8e1000, 409600, PROT_READ) = 0
mprotect(0xeb9c1000, 409600, PROT_READ) = 0
mprotect(0xeb83e000, 409600, PROT_READ) = 0
mprotect(0xeb7da000, 409600, PROT_READ) = 0
mprotect(0xeb8d1000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xeb8d1000, 4096, PROT_READ) = 0
mmap2(NULL, 10498048, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0xea584000
mmap2(0xea585000, 10489856, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xea585000
prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, 0xea585000, 10489856, "scudo:secondary") = 0
openat(AT_FDCWD, "/dev/diag", O_RDWR|O_LARGEFILE) = 3
ioctl(3, _IOC(_IOC_NONE, 0, 0x20, 0), 0xb439f08c) = 1
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0x2) = -1 EFAULT (Bad address)
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0xb4395520) = -1 EINVAL (Invalid argument)
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0xb439552c) = -1 EINVAL (Invalid argument)
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0xffef47c0) = -1 EINVAL (Invalid argument)
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0x2) = -1 EFAULT (Bad address)
ioctl(3, _IOC(_IOC_NONE, 0, 0x7, 0), 0xffef47c0) = -1 EINVAL (Invalid argument)
write(2, "ioctl: Invalid argument\n", 24ioctl: Invalid argument
) = 24
mprotect(0xeb8d1000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xeb8d1000, 4096, PROT_READ) = 0
mprotect(0xeb8d1000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xeb8d1000, 4096, PROT_READ) = 0
exit_group(1) = ?
+++ exited with 1 +++

I'm at this commit:

commit 4a9fa934e9a564c09b5fddfe2b36a42b02e750c9 (HEAD -> master, origin/master, origin/HEAD)
Merge: ff44913 0ce0e27
Author: Marin <[email protected]>
Date:   Wed Dec 18 19:38:45 2019 +0100

    Merge branch 'master' of https://github.com/P1sec/QCSuper

Segmentation fault /data/local/tmp/...

The Error:

[1] Segmentation fault /data/local/tmp/...

Wireshark opens, and says 'No Packets Captured'
Full Output:

~/qcsuper$ ./qcsuper.py --adb --wireshark-live -v
[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'error: closed\n'
[>] Running adb command: /usr/bin/adb shell "su test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; su test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; su test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb shell "su test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; su test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; su test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'Usage: su [options] [LOGIN]\r\n\r\nOptions:\r\n -c, --command COMMAND pass COMMAND to the invoked shell\r\n -h, --help display this help message and exit\r\n -, -l, --login make the shell a login shell\r\n -s, --shell SHELL use SHELL instead of the default in passwd\r\n -v, --version display version number and exit\r\n -V display version code and exit. this is\r\n used almost exclusively by Superuser.apk\r\nDIAG_NOT_WRITEABLE=0\r\nUsage: su [options] [LOGIN]\r\n\r\nOptions:\r\n -c, --command COMMAND pass COMMAND to the invoked shell\r\n -h, --help display this help message and exit\r\n -, -l, --login make the shell a login shell\r\n -s, --shell SHELL use SHELL instead of the default in passwd\r\n -v, --version display version number and exit\r\n -V display version code and exit. this is\r\n used almost exclusively by Superuser.apk\r\nDIAG_NOT_EXISTS=0\r\nUsage: su [options] [LOGIN]\r\n\r\nOptions:\r\n -c, --command COMMAND pass COMMAND to the invoked shell\r\n -h, --help display this help message and exit\r\n -, -l, --login make the shell a login shell\r\n -s, --shell SHELL use SHELL instead of the default in passwd\r\n -v, --version display version number and exit\r\n -V display version code and exit. this is\r\n used almost exclusively by Superuser.apk\r\nDEV_NOT_READABLE=0\r\nuid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet)\r\n'
[>] Running adb command: /usr/bin/adb shell "su test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"
[<] Obtained result for running "/usr/bin/adb shell "su test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"": b'Usage: su [options] [LOGIN]\r\n\r\nOptions:\r\n -c, --command COMMAND pass COMMAND to the invoked shell\r\n -h, --help display this help message and exit\r\n -, -l, --login make the shell a login shell\r\n -s, --shell SHELL use SHELL instead of the default in passwd\r\n -v, --version display version number and exit\r\n -V display version code and exit. this is\r\n used almost exclusively by Superuser.apk\r\nDIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: /usr/bin/adb push /home/my/Downloads/qcsuper/QCSuper-master/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /home/my/Downloads/qcsuper/QCSuper-master/inputs/adb_bridge/adb_bridge /data/local/tmp": b'248 KB/s (11636 bytes in 0.045s)\n'
[>] Running adb command: /usr/bin/adb shell "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "/usr/bin/adb shell "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: permission denied\r\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
[1] Segmentation fault /data/local/tmp/...
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'

The connection to the adb bridge was closed, or preempted by another QCSuper instance

In Windows (instead of the last error message above):

Traceback (most recent call last):
File "C:\Users\my\Downloads\QCSuper-master\QCSuper-master\inputs_base_input.py", line 156, in _read_thread
self.read_loop()
File "C:\Users\my\Downloads\QCSuper-master\QCSuper-master\inputs\adb.py", line 292, in read_loop
socket_read = self.socket.recv(1024 * 1024 * 10)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

Samsung Note 4 and Samsung S5 do not capture user data (IP traffic)

Hi,
I am not able to capture UE user data with the QCSuper option --include-ip-traffic with my two UEs.

Samsung Galaxy Note 4 SM-N915F
Samsung Galaxy S5 SM-G900F

Attached is output from "qcsuper.py --adb --info" for the two mobiles.

Samsung Note 4:
[+] Compilation date: Feb 16 2017 16:03:37
[+] Release date: Jan 28 2016 15:00:00
[+] Version directory: TAARANAZ

[+] Common air interface information:
[+] Station classmark: 58
[+] Common air interface revision: 9
[+] Mobile model: 255
[+] Mobile firmware revision: 100
[+] Slot cycle index: 2
[+] Hardware revision: 0x923 (9.35)

[+] Mobile model ID: 0xffd
[+] Chip version: 2
[+] Firmware build ID: MPSS.BO.1.0.r10-00232-M9635TAARANAZM-1.42683.1

[+] Diag version: 8

Samsung S5:
[+] Compilation date: Mar 29 2014 15:46:27
[+] Release date: Feb 26 2014 01:00:00
[+] Version directory: AAAAANRZ

[+] Common air interface information:
[+] Station classmark: 58
[+] Common air interface revision: 9
[+] Mobile model: 255
[+] Mobile firmware revision: 100
[+] Slot cycle index: 2
[+] Hardware revision: 0x7b4 (7.180)

[+] Mobile model ID: 0xff3
[+] Chip version: 1
[+] Firmware build ID: MPSS.DI.2.0.1.c2.2-00006-M8974AAAAANRZM-1

[+] Diag version: 8

Any ideas how it could be possible to fix this?

Thanks in advance.

Regards

/Mattias

LG G4 Error, Samsung Galaxy S3 Neo works, no captured packets

Tried it on an LG G4, rooted on a custom Rom, with a working Sim Card inserted. After a few Seconds Wireshark terminates because "no data was captured, so the temporary File will be closed"

This is the Terminal Output: Error: Diag request DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x00\x00\x00\x00' timed out

Also the --info Option doesn't work for me.

Trying to work on ZTE MF79S 4G

Hi guys!
I've been trying to run QCSuper on a 4g ZTE MF79S dongle, but so far unsucessfully.
What i've done:

  1. Mount command to find out the /dev directory of the dongle

This gives me the following result: /dev/sr1 on /media/root/ZTEMODEM type iso9660 (ro,nosuid,nodev,relatime,norock,check=r,map=n,blocksize=2048,uid=0,gid=0,dmode=500,fmode=400,uhelper=udisks2)

  1. I'm trying to run QCSuper with the following command:
    ./qcsuper.py --usb-modem /dev/sr1 --wireshark-live

This gets me the following error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 323, in _reconfigure_port
orig_attr = termios.tcgetattr(self.fd)
termios.error: (22, 'Invalid argument')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./qcsuper.py", line 68, in
diag_input = UsbModemConnector(args.usb_modem)
File "/root/tsworkshop/QCSuper/inputs/usb_modem.py", line 66, in init
dsrdtr = True
File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in init
self.open()
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 272, in open
self._reconfigure_port(force_update=True)
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 326, in _reconfigure_port
raise SerialException("Could not configure port: {}".format(msg))
serial.serialutil.SerialException: Could not configure port: (22, 'Invalid argument')

I'm pretty sure i'm doing something wrong. Could use your help. Thanks in advance!

No capture in Wireshark

I'm using the command /.qcsuper.py --adb --wireshark-live. The terminal shows "ioctl: Invalid argument" and "The connection to the adb bridge was closed, or preempted by another QCsuper instance". The Wireshark runs and closed immediately without capturing any data. The same problem happens when I'm trying to dump the packets to .pcap. May I know the reason for the same?

Working on Nokia 3.2

I successfully made it work using Magisk root and my windows computer.

I followed the tutorial, no issue at all. and all packet seems to be correctly captured :) thanks !
image

Connecticity issue LG Nexus 5 (rooted)

When I execute the command: ./qcsuper.py --adb --wireshark-live
I get the following result: Could not find /dev/diag, does your phone have a Qualcomm chip?

The phone is rooted and has a Qualcomm chip but I can't get it to connect.
I have also tried executing the command: su setprop sys.usb.config diag,adb to get the phone in diag mode, but I am not sure it works.

QCSuper not writing pcap file or displaying on wireshark

I am running QCSuper on a rooted Sony Experia XZ Premium (which runs mobile insight fine).

When running in verbose mode I see data being returned by its not being written to pcap file. I've also tried with wireshark but no packets are captured.

Trace below

\QCSuper-master>qcsuper.py --adb --pcap-dump mydump.pcap -v
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id
[<] Obtained result for running "C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id": b"uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1026(drmrpc),1028(sdcard_r),2993(trimarea),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc) context=u:r:shell:s0\nadb server version (41) doesn't match this client (39); killing...\r\n* daemon started successfully\r\n"
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\nDIAG_NOT_EXISTS=1\nDEV_NOT_READABLE=1\nuid=0(root) gid=0(root) groups=0(root) context=u:r:supersu:s0\r\n'
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""
[<] Obtained result for running "C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""": b'DIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\r\nC:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\adb_bridge/adb_bridge: 1 file pushed. 2.8 MB/s (11636 bytes in 0.004s)\r\n'
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""
[<] Obtained result for running "C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""": b'killall: adb_bridge: No such process\r\n'
[>] Running adb command: C:\BC-code\WimTech\qcsuper\QCSuper-master\inputs\external\adb/adb_windows.exe forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x01\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 75: b'\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\t\x00\x00 \x04\x00\x00\x00\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8a\x03\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 336: b'\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x02\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 340: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x02\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 305: b'\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 309: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 147: b'\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 151: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 175: b'\x00\x00\x00\x03\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 179: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 129: b'\x00\x00\x00\x03\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 133: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 80: b'\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 84: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 79: b'\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 83: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

[<] Received response 152 of length 57: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00.\x00.\x00/Av^{{kr\xed\x00\x06+\x1e\x00BU\x93M \x96U\xa7_B|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response 152 of length 57: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00.\x00.\x00/A\xb6:{}kr\xed\x00\x06+\x1e\x00BU\x93M \x96U\xa7_B|\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xdcp\xa8\xaekr\xed\x00\x84(\x1f\x00=\t\x01\xcd\xa4\xbc\x0e\xd2\x86T\x86E\xab{\x8a\x19R\x19~\x9fo(eHd\xfa\x83\xc0\xa1\x95!\x96\xce'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xdeT\xb8\xaekr\xed\x00\x84(\x1f\x00=\t\x01\xcd\xc4\xbd\xc4\xa1\x95!\x90\n\xe3"\x86T\x86H\xa7\xec\xca\x19R\x19X\xa0\xb4(eHd\x8a\xb6\xd5'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xe0T\xc8\xaekr\xed\x00\x84(\x1f\x00=
\t\x01\xcd\xe6\xbee(eHe\xd2\xb8\xd8\xa1\x95!\x94\x8a\xd4\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xe2P\xd8\xaekr\xed\x00\x84(\x1f\x00=\t\x01\xce\x0e \x7fq\x95@D\xae!\xc1B!\x85\x84I\xc4\x820 8\xb8\x14\x00\x00\x00\x00\x00\x00\x00\x03'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xe4P\xe8\xaekr\xed\x00\x84(\x1f\x00=
\t\x01\xce."\x17\x00\x00\x10\x1c|\x19m\xfd\x82\x16\xd6@F\x06\x1cA\x95\xff\xff\xf5a\x10\x00\x00\x00\x00\x03'
[<] Received response 152 of length 46: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00#\x00#\x00/A\xe4\x04\xeb\xaekr\xed\x00\x00\x00\x13\x009>\xe6\xa6\xb1eP\x10\x06X\x10\xe04\xa0Z\xb6\x8b\xbe\xd0'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\xe6X\xf8\xaekr\xed\x00\x84(\x1f\x00=\t\x01\xce@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
[<] Received response 152 of length 134: b"\x01\x00\x00\x02\x00\x00\x00\x10\x00{\x00{\x00/A\xf50t\xafkr\xed\x00\x02\x00k\x009>\xe6\xa6\xb1eP\x10\x06Y\xf0\x08\x19\x81\x97s\xa5\x80\xf0\x00\xf9\x89\x07'\xc1\x08\xf8e\x08\x00\t\x03\x0f\xe8\xa1d\xcc\x02\x14\x84\xc7'\xc5\x08\xf8\xe5\x18\x00\t\x14''\xc9(\xf9e(\x00)$''\xcd(\xf9\xe58\x00)2\x00\x00\xc0\xf1\xa1\x9e\x03\xe0\t\x00\x88\xec\xda\xc1>\xbf\\xa8'\xe0-\x0f\xe8a?\n\x19Z\xb3\xc0\x88H\x02p)\xa0\x00"
[<] Received response 152 of length 76: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00A\x00A\x00/A\xf54\xa3\xafkr\xed\x00\x01\x021\x00J\x88\x00\n \x00\x052\xaa\xd5\x06\xa5V\xa8\x8ah\x83\x04\x08\x00\x18\x00\x11\x026x;;\x1a\x81&\x97\xd4_\x92,\xd6H\xc2\xb8\x1f\x01@\n\x84\x80\x00\x11\x80'
[<] Received log 0x713a of length 18: b'\x01\r\x00\x00\x00\x05$\x01\x03WX\xa6\x05\xf4>\xe6\xa6\xb1'
[<] Received response 152 of length 48: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00%\x00%\x00/A\xf6\x80\xa6\xafkr\xed\x00\x01\x03\x15\x00\x15\x03\x9a\x00) \x08\x1a\xba\xc50/\xa1\xf755\x8a\x00\x05\x00' [<] Received response 152 of length 174: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\xa3\x00\xa3\x00/A\x10\xa0t\xb0kr\xed\x00\x03\x02\x93\x00"N \x01n\x0f\xc0\x14&\x86(\xa0tQE\x04\xa3\x8a(E$QB\xa9b\x89\xb1M\x14M\x9ax\xa2mTE\x16\x8e\xa6(\x8f\xb5QD\xdb\xab\x8a!-dQ\x08\xebb\x88\xef]\x14KZ\xf8\xa22XE\x12>\xc6(\x91\xd6QD\x8d\xb3\x8a!\xd5\xa4QR\xedb\x8a\x95m\x14T\x1bx\xa2N\xdcE\x13\x92\xe6(\x9cwQD\xe2\xbb\x8a#\xad\xe4Qx\xafb\x88)}\x14A;\xf8\xa2<\xd3\x11aab\x90C\x01J\x16\xf6 \xc0\x06\x02\x93\x961\xec\xc8\xc5U\x0c\x11\x80\x90' [<] Received response 152 of length 106: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00_\x00_\x00/A\x18\x9c\xb4\xb0kr\xed\x00\x03\x03O\x00\x14\x80\x96\nd\x86G \x00\xa8\x00\xca\x00\xd8\x00\xd6\x00\xde\x00\xda\x00Z\x00\xa6\x00\xe8\x00\xc2\x00\xf2\x00\x90\x00\xde\x00\xda\x00\xca\x00\xa6\x00\x82\x8aG \x00\xa8\x00\xca\x00\xd8\x00\xd6\x00\xde\x00\xda\x00Z\x00\xa6\x00\xe8\x00\xc2\x00\xf2\x00\x90\x00\xde\x00\xda\x00\xca\x00\xa6\x00\x82' [<] Received log 0x713a of length 81: b'\x00L\x00\x00\x00\x052C#\x90\x00T\x00e\x00l\x00k\x00o\x00m\x00-\x00S\x00t\x00a\x00y\x00H\x00o\x00m\x00e\x00S\x00AE#\x90\x00T\x00e\x00l\x00k\x00o\x00m\x00-\x00S\x00t\x00a\x00y\x00H\x00o\x00m\x00e\x00S\x00A' [<] Received response 152 of length 52: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00)\x00)\x00/A!\xa0\xfc\xb0kr\xed\x00\x03\x02\x19\x00\xe4\xa0\xeb\xc8\x0c\r\x80\x01\x80\x01(\xc0\x00\x01\x00\xc1\x00(\xc0\x02\xe6u\x83)\x00' [<] Received response 152 of length 45: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00"\x00"\x00/A!\x94\xfd\xb0kr\xed\x00\x01\x02\x12\x00\xd3\x9d[\xc0\r7\x00\x00\x01\x80\x00\x02\x01\x02\x00!\x80\x00' [<] Received log 0x713a of length 35: b'\x01\x1e\x00\x00\x00\x03E\x04\x07\x08\x04\x02\x00\x05\x81^\x03\x81\x81\xf0\x15\x02\x01\x00@\x08\x04\x02\x04\x00\x02\x1f\x02' [<] Received response 152 of length 65: b'\x01\x00\x00\x02\x00\x00\x00\x10\x006\x006\x00/A) >\xb1kr\xed\x00\x01\x03&\x00\xc9\x0c\xba\x92\x8e\xc0\x0e\x81\xa2\x82\x03\xb0\x04\x02\x01\x00\x02\xc0\xaf\x01\xc0\xc0\xf8\n\x81\x00\x80 \x04\x02\x010\x02\x00\x01\x0f\x81\x00' [<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/A<\xa4\xd4\xb1kr\xed\x00\x03\x03\n\x00\xb1x\x80T\x89@\x000@'
[<] Received log 0x713a of length 7: b'\x00\x02\x00\x00\x00\x83\x02'
[<] Received response 152 of length 215: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\xcc\x00\xcc\x00/Ao<m\xb3kr\xed\x00\x03\x02\xbc\x00\xaf\x98\xad\xc6\x13\xaf\xc0\x81\n-\x03\x18#\x01\x80@&!\x19\x100\x01\x00\xb2\x0c\x01X\x024\x83\x00\x96\x01\x08\x81\xc3\xfa(Y3\x00\x85!\xb1\x05\x87\xf4P\xb2f\x01\nCb\x0f\x0f\xe8\xa1d\xcc\x02\x14\x86\xc4\x08\x05\x80\x1e\xd0C\xe6Xg\xcc\x0f\xe9\xa1\xdf\\+\xc6|\x81 \x11\x1d\x9b\x00"\x00\x00\x818\x10Q\x028\x84\x04@3\x84G\x02\x01\x08\x03\xc0\x88\xa8\x02\xa1\x81\x00\x08 \x1e\x16\x1d\x8f\x07\xa4BYH\xee9\xf5\xfa\xe0\x01(\x00\x04\t\xc0\x81P\x107\x02\x07\xa0AD\x08\xe2\x14\x80 \x90g\x00\x06\xa0@\xfc\x08+\x81\x06p#\x81\x00HR\x8bC\xfa\x18O\xc0C+\x10T$\x018\x14\xd0\x01\x96\xdf\xd8'
[<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/A\x8b\x8cP\xb4kr\xed\x00\x01\x02\n\x00\xea1M\x86\x13\xcc \x00U\x00'
[<] Received response 152 of length 47: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00$\x00$\x00/A\xa4\xb8\x14\xb5kr\xed\x00\x03\x02\x14\x00\xb5K\xe3-\x1a,\xe2\x048\x030\x00e\xb4\x00\xd9Z\x80M@'
[<] Received response 152 of length 47: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00$\x00$\x00/A\xa8\xa44\xb5kr\xed\x00\x03\x02\x14\x00\xcavN\xad\xa24\xe2\x088\x034\x00e\x87\x80\xd9D\x80M@'
[<] Received response 152 of length 43: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00 \x00 \x00/A\xac\x98T\xb5kr\xed\x00\x03\x02\x10\x00\x97+\xbf\x8c\xaa<\xe2\x10\x06\xccA\x81\x81\x9a^\xc0'
[<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/A\xb0\x98t\xb5kr\xed\x00\x03\x02\n\x00\xc7\x8c{\xa72%\xe2\x14\xb4\xa6'
[<] Received response 152 of length 59: b'\x01\x00\x00\x02\x00\x00\x00\x10\x000\x000\x00/A\xbc\x9c\xd4\xb5kr\xed\x00\x03\x03 \x00\xd7\x08\x12\xd1\x11H\x02\xf0#\x82\x14!\xc0@ \x00@"\x06\x00\xd0 %\x10\x80 \xe3\xc0]Q\x00' [<] Received log 0x713a of length 29: b'\x00\x18\x00\x00\x00\x83\x01\x1c\x10\xa1\x0e\x02\x01\x00\x02\x01\x100\x06\x81\x01(\x84\x01\x07\x1e\x02\xea\x88' [<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/A\xcc\x9cT\xb6kr\xed\x00\x03\x03\n\x00\xa66!\x99\x19L\x000\xe0'
[<] Received log 0x713a of length 7: b'\x00\x02\x00\x00\x00\x83\x07'
[<] Received log 0x713a of length 7: b'\x01\x02\x00\x00\x00\x03\x8f'
[<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/A\xccPV\xb6kr\xed\x00\x01\x03\n\x00\x94n\w\x96\xc0\x00\x81\xc7\x80'
[<] Received response 152 of length 35: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x18\x00\x18\x00/A%L \xb9kr\xed\x00\x01\x02\x08\x00\xe8\xc6\xc9d\x1a\x04%@'
[<] Received response 152 of length 35: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x18\x00\x18\x00/A)\x10?\xb9kr\xed\x00\x01\x02\x08\x00\xbf=\x1b}\xa2\x04E@'
[<] Received log 0x713a of length 10: b'\x01\x05\x00\x00\x00\x03\xe5\x02\xe0\x90'
[<] Received response 152 of length 40: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1d\x00\x1d\x00/A:\x90\xc9\xb9kr\xed\x00\x01\x03\r\x00\x826A\x02\x1e\xc0\x02\x01\xf2\x81pH\x00'
[<] Received response 152 of length 41: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1e\x00\x1e\x00/AP\xa8t\xbakr\xed\x00\x03\x03\x0e\x00\xd2\x9b\xfe\xb9!@\x00\xb0e\xa1\x00\\x12\x00'
[<] Received log 0x713a of length 11: b'\x00\x06\x00\x00\x00\x83-\x08\x02\xe0\x90'
[<] Received log 0x713a of length 7: b'\x01\x02\x00\x00\x00\x03
'
[<] Received response 152 of length 37: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x1a\x00\x1a\x00/AP\v\xbakr\xed\x00\x01\x03\n\x00\xd4\xa1\xc5\x92\xa6\xc0\x00\x81\x95\x00'
[<] Received response 152 of length 34: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x17\x00\x17\x00/Ap\xb0t\xbbkr\xed\x00\x03\x01\x07\x00\xe2\x19f2\x8b\xe9\x00'
[<] Received response 152 of length 33: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x16\x00\x16\x00/Ap\xa0v\xbbkr\xed\x00\x01\x01\x06\x00\xc8\xf0\n\xa3\x8cD'
[<] Received response 152 of length 33: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\x16\x00\x16\x00/At\x1c\x97\xbbkr\xed\x00\x01\x01\x06\x00\xa2A\xeeF\x14D'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\x8c^(\xbckr\xed\x00\x84(\x1f\x00=\t\x01\xe8\xa6Q\x8bD3\x00\x0f\x10\xc0-\xb64\x00\x86\x11(\x16F\x10\xbd\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\x8eZ8\xbckr\xed\x00\x84(\x1f\x00=
\t\x01\xe8\xce\x01\x97\xe4\x03-\x08P\t\x12\x00\x10\xd2\xe7\x97\xac\x00\x15\x89Sa\x08\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\x90ZH\xbckr\xed\x00\x84(\x1f\x00=\t\x01\xe8\xee\x1b\x8f\x848E_\xeao\x00\x10\x08\x01\x00\x80h\x04\x80!E8\x00\x00\x00\x00\x00\x00\x00\x00\x03'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\x92VX\xbckr\xed\x00\x84(\x1f\x00=
\t\x01\xe9\x0e \x7fq\x95@D\xae!\xc1B!\x85\x84I\xc4\x820 8\xb8\x14\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response 152 of length 44: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00!\x00!\x00/A\x92\xbaY\xbckr\xed\x00\xfe(\x11\x00\x00q\x95@D\xae!\xc1B!\x85\x84I\xc4\x820 '
[<] Received response 152 of length 46: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00#\x00#\x00/A\x92\xbaY\xbckr\xed\x00\xfe(\x13\x00\x1b\x848E_\xeao\x00\x10\x08\x01\x00\x80h\x04\x80!E8'
[<] Received response 152 of length 47: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00$\x00$\x00/A\x92\xbaY\xbckr\xed\x00\xfe(\x14\x00\x01\xe4\x03-\x08P\t\x12\x00\x10\xd2\xe7\x97\xac\x00\x15\x89Sa\x08'
[<] Received response 152 of length 46: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00#\x00#\x00/A\x92\xbaY\xbckr\xed\x00\xfe(\x13\x00\x03\x83-\xbf\xb0B\xda\xc8\x08\xc0\xc3\x882\xbf\xff\xfe\xac"\x00'
[<] Received response 152 of length 101: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00Z\x00Z\x00/A\x92\xbaY\xbckr\xed\x00\xfe(J\x00\x05\xa3@\x0e\x80?\xc0\xff\xff\x04\x84<\nC\x02\xa0\x06\x00\x03#|\xacW\x98A\xfc\x00\x00\x0f\xd8\xf2\x99\xc0\x00\t\x1e%\x04\x0c\x80\x00A\x10\x01\x80\x88\xb9X\x805\x84\x814@0\x04C0\x00\xf1\x0c\x02\xdbc@\x08a\x12\x81da\x0b\xd0' [<] Received response 152 of length 457: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00\xbe\x01\xbe\x01/A\x92\xbaY\xbckr\xed\x00\xfe(\xae\x01\x0b\x9a\xc0\x1e\xb4\xfc\x01BhJm@@\x88\xa6\xcc\x04\x08\xca\x81\xc0@\x90\xa8$\x04\tJ\x84@@\x98\xa8T\x04\t\xcal@@\xa0\xad\x1c\x04\nJ>\xc0@\xa8\xa6\xdc\x04\n\xca\x12\xc0@\xb0\xa1\x1c\x04KJ;\xc0@\xb8\xa5\xac\x04\x0b\xca2@C\xc0\xa4|\x04<JG@C\xc8\xa4l\x04<\xca\x1d@C\xd0\xaa\\\x04\rJ\xa5@@\xd8\xaa\x0c\x04\r\xcaN\xc0@\xe0\xa7$\x04\x0eJq\xc0@\xe8\xa7\x14\x04\x0e\xca:\xc0@\xf0\xaf\x14\x04\x0fJ\n@@\xf8/\x1d\xf8X\xb8\x0f\x94\xc0\xcdAR\xb0P\x93\x0b,e(P\xc5\xd0\xb1%d\x17S\x0cP\xcb\x1b,e(P\xc5\x0c\xb2%d\x17S\x0cF\xab+,e(P\xc5\x83\xa3C\x10\xc2\x8f\x0cX\x9bBVAu0\xc5\x89\xb4\xb2\xc6R\x85\x0c]\x9aT1D\xe9p\xc4=\xa6C\x14\xaa\x9b\x0cF{rVAu0\xc4g\xb7\xb2\xc6R\x85\x0cB{\x82VAu0\xc4\'\xb8\xb2\xc6R\x85\x0cXj\x941\x01*p\xc4\xdd\xba%d\x17S\x0cM\xdaZ\x02\x86T\x86U\xabxJ\x19R\x19\x12\xa0"(eHd\xa2}\x8c\xa1\x95!\x90\xea\xd6B\x86T\x86M+\x19J\x19R\x19\x06\xac\xe6(eHe\x12\x81\x9c\xa1\x95!\x97J\xca\x82\x86T\x86^(\x1aJ\x19R\x19(\xad*(eHe\x82\xb8\xac\xa1\x95!\x96I\xfa\xc2\x86T\x86\\\xa8;J\x19R\x19\x16\xad\xee(eHe\xfa}\xbc\xa1\x95!\x93\xea\x0f\x02\x86T\x86X\xab<J\x19R\x19\x00\xae2(eHd\x8a~\xcc\xa1\x95!\x95\x8a\x0bB\x86T\x86H\xabmJ\x19R\x19t\xae6(eHe"\xb5' [<] Received response 152 of length 57: b'\x01\x00\x00\x02\x00\x00\x00\x10\x00.\x00.\x00/A\x92\xbaY\xbckr\xed\x00\xfe(\x1e\x00\x1fE\x89\x06R\xeb\xd7\x1a%^wFJ\xb0\x0e\xe2\xa3%Z`\x92\xe3D\xad1\xd5q\xa2\x14'
[<] Received response 152 of length 62: b'\x01\x00\x00\x02\x00\x00\x00\x10\x003\x003\x00/A\x94^h\xbckr\xed\x00\x84(\x1f\x00=*\t\x01\xe9."\x17\x00\x00\x10\x1c|\x19m\xfd\x82\x16\xd6@F\x06\x1cA\x95\xff\xff\xf5a\x10\x00\x00\x00\x00\x00'

Feature Request: Send pcap data to stdout

If I could make a minor feature request. It would be useful to be able to send the pcap data directly to standard output, allowing the launch of the script via SSH and tunnelling of the data to wireshark on a remote host.

not working with S10+ and Oneplus 7pro

I have oneplus7pro , rooted . QCsuper is giving following output.

root@ubuntu:/home/user1/Desktop/QCSuper-master# lsusb
Bus 001 Device 008: ID 2a70:4ee7
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@ubuntu:/home/user1/Desktop/QCSuper-master#

root@ubuntu:/home/user1/Desktop/QCSuper-master# python3 ./qcsuper.py --adb --wireshark-live
ioctl: Invalid argument
The connection to the adb bridge was closed, or preempted by another QCSuper instance

root@ubuntu:/home/user1/Desktop/QCSuper-master# python3 ./qcsuper.py --adb --wireshark-live -v
[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: /usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0\r\n'
[>] Running adb command: /usr/bin/adb exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""
[<] Obtained result for running "/usr/bin/adb exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""": b'DIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: /usr/bin/adb push /home/user1/Desktop/QCSuper-master/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /home/user1/Desktop/QCSuper-master/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/user1/Desktop/QCSuper-master/inputs/adb_bridge/adb_bridge: 1 file pushed. 0.9 MB/s (11636 bytes in 0.013s)\n'
[>] Running adb command: /usr/bin/adb exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""
[<] Obtained result for running "/usr/bin/adb exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""": b'killall: adb_bridge: No such process\r\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
ioctl: Invalid argument
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'

The connection to the adb bridge was closed, or preempted by another QCSuper instance
root@ubuntu:/home/user1/Desktop/QCSuper-master#

Please advice.

Wireshark does not show any packet from Xiaomi Mi A1 rooted phone

Hi Dear P1sec/QCSuper's Team,

This time I wrote this message to let know you that QCSuper is not working correctly with my rooted phone (Xiaomi Mi A1 Android 9.0).

After install of the programas and depencies needed, I execute the command, however, wireshark is no showing any packet.
qcsuper.py --adb --wireshark-live

It was tested in following OS with the same results.

Windows 10 / Linux Ubuntu 16.04.6

Please let me know, how could I contribute to solve this issue.

Best Regards..
-- Jonmar Pineda

[Issue] Pcap dump / Xiaomi Mi Note 3 / Fail to detect current RAT

Context

Xiaomi Mi Note 3 (Qualcomm Snapdragon 660), connected on 3G network for CS (CS fallback) and 4G for PS.
Only one SIM activated.

[+] Compilation date:    Mar 22 2019 19:44:52
[+] Release date:        Dec 19 2018 07:00:00
[+] Version directory:   sdm660.g

[+] Common air interface information:
[+]   Station classmark: 58
[+]   Common air interface revision: 9
[+]   Mobile model:      255
[+]   Mobile firmware revision: 100
[+]   Slot cycle index:  48
[+]   Hardware revision: 0x08c (0.140)

[+] Mobile model ID:     0x1012
[+] Chip version:        0
[+] Firmware build ID:   MPSS.AT.3.1.c7-00023-SDM660_GEN_PACK-1

[+] Diag version:        8

Issue

On running "PCAP dump" or "Wireshark-Live" on QCsuper, no PCAP traffic is generated despite I can see some "Diag" response from the debug logs when I initiate a call.

  • python qcsuper.py --adb -v --wireshark-live --reassemble-sibs --decrypt-nas --include-ip-traffic
  • python qcsuper.py --adb -v --pcap-dump ran.pcap

I've made some investigations and discovered that:

  • I'm receiving some "Diag" logs of type LOG_UMTS_NAS_OTA_MESSAGE_LOG_PACKET_C and enter in the following condition:
    elif log_type == LOG_UMTS_NAS_OTA_MESSAGE_LOG_PACKET_C: # 0x713a - 2G/3G DTAP from NAS
    if self.current_rat != '2g': # Not needed in 3G, where this is already embedded in RRC
    return

But:

  • The attribute current_rat value is None
  • By ignoring the return statement (I'm connected in 3G and not in 2g), QCSuper is able to properly decode the received packets and thus I'm able to generate some PCAP traces.

hanging in xperia z1

I got the script hanging and doesn't poping wireshark when launch it on my phone.

This is what it look like

./qcsuper.py --adb --wireshark-live -v
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out id
[<] Obtained result for running "/home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out id": b'uid=2000(shell) gid=2000(shell) groups=1004(input),1007(log),1011(adb),1015(sdcard_rw),1026(drmrpc),1028(sdcard_r),2991(removable_rw),2993(trimarea),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0\n'
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=1\nuid=0(root) gid=0(root) context=u:r:init:s0\n'
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""
[<] Obtained result for running "/home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""": b'DIAG_NOT_EXISTS=0\n'
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux push /home/ghost/tools/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/home/ghost/tools/qcsuper/inputs/external/adb/adb_linux push /home/ghost/tools/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/ghost/tools/qcsuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 2.6 MB/s (11608 bytes in 0.004s)\n'
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""
[>] Running adb command: /home/ghost/tools/qcsuper/inputs/external/adb/adb_linux forward tcp:43555 tcp:43555
WARNING: linker: /data/local/tmp/adb_bridge: unused DT entry: type 0x6ffffffe arg 0x5b0
WARNING: linker: /data/local/tmp/adb_bridge: unused DT entry: type 0x6fffffff arg 0x1

However after checking some line i got that line 164 from adb.py is causing my problem.

When i change directly to

self.adb_proc = Popen([adb_exe, 'shell', self.su_command % (ANDROID_TMP_DIR + '/adb_bridge')],
stdin = DEVNULL, stdout = PIPE, stderr = STDOUT,
preexec_fn = setpgrp,
bufsize = 0, universal_newlines = True
)

it's work like a charm.

I hope you can make some adjustment for that hanging problem
Thanks

Manually listening to radio packets in wireshark

Hi all,

Thanks to P1sec for writing this tool.

After enabling the --Wireshark-live option If I close the Wireshark that is spawned by the QCsuper tool and try to listen to the loopback interface manually I only see TCP packets which do not have any LTE/GSM signalling messages, what interface is the DIAG traffic forwarded too?

Is it loopback or something else?

If it is loopback why am I not able to see any signalling messages?

AFAIK after hitting usr/bin/adb forward tcp:43555 tcp:43555 I should see signalling messages even if I manually listen on port 43555 using Wireshark and tshark but that is not happening in this case, what am I missing?

Also, can I implement the same using C language?

Regards.

Not working on HTC one M8

Greetings,
I have problem with HTC One M8.
I am re-posting my problem.
Last week, When I tried, I at least, wireshark started automatically and no packets captured. At that time, I got the following error on the cosole.
Error: Diag request DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x00\x00\x00\x00' timed out
Today I had updated with the new QCSuper. When I start qcsuper.py, wireshark is not being started and getting stuck.

Additional information and output of the following commands.
adb shell su -c "stat /dev/diag"
File: `/dev/diag'
Size: 0 Blocks: 0 IO Blocks: 4096 character device
Device: bh Inode: 6894 Links: 1
Access: (660/crw-rw----) Uid: (1001/ radio) Gid: (3009/ radio)
Access: 2019-07-16 11:11:44.850000000
Modify: 2019-07-16 11:11:44.850000000
Change: 2019-07-16 11:11:49.010000001

adb version
Android Debug Bridge Daemon version 1.0.32 0cd298a64b51-android

Can you please help or please let me know if you need more information to get it running.
Thanks in advance.

IOCTL error in adb_bridge over OnePlus 3T

Hello!

Well first of all let me say thanks for such a great effort in developing this software, pretty cool and useful!

I am just beginning to use it, mostly for network engineering and testing , and the most common device I use for this purpose is a OnePlus 3T, which is really mostly the same thing as the OnePlus 3 , actually the box and enclosure says 3.. not 3T.. anyway...

The thing is: adb_bridge fails giving a short 'ioctl: Invalid argument' message when run from console (in the ue).

Device: OnePlus A3003
OzygenOS 3.5.4
Android 6.0.1

Kernel 3.18.20
BaseBand: MPSS.TH.2.0.c1.9.2

the device is rooted, connected through ADB , and everything looks fine.. but fails on adb_bridge

any advice?

Thanks a lot!
Raul

Mostly working on Nokia 8110 4G

Hello all,
I came here to report that Nokia 8110 4G is mostly working. Mine is running GerdaOS/firmware 13.00.17.01, it's rooted, it has ADB enabled and Qualcomm chip inside. No Android but close enough. It's a dual-SIM handset but haven't tried two SIMs at the same time. Phone menu has an option to limit which networks to use; 4G/3G/2G, 3G/2G or 2G only. When I'm talking about 3G mode, I've selected 3G/2G, and so on. No idea if the phone can be forced to 4G or 3G only, but chime in if you know.

Seems like ADB connection won't work immediately after a reboot (or running for the first time), at least on my computer, but Ctrl+C and running the command again does the trick. Not a big deal.

C:\Stuff\QCSuper>qcsuper.py --adb --info
Traceback (most recent call last):
  File "C:\Stuff\QCSuper\qcsuper.py", line 66, in <module>
    diag_input = AdbConnector()
  File "C:\Stuff\QCSuper\inputs\adb.py", line 146, in __init__
    self._relaunch_adb_bridge()
  File "C:\Stuff\QCSuper\inputs\adb.py", line 171, in _relaunch_adb_bridge
    for line in self.adb_proc.stdout:
  File "C:\Users\Pena\AppData\Local\Programs\Python\Python37\lib\encodings\cp1252.py", line 22, in decode
    def decode(self, input, final=False):
KeyboardInterrupt

C:\Stuff\QCSuper>qcsuper.py --adb --info
bind: Address already in use

[+] Compilation date:    Oct 25 2018 20:30:46
[+] Release date:        Oct 22 2018 03:00:00
[+] Version directory:   8909.lwg

[+] Common air interface information:
[+]   Station classmark: 0
[+]   Common air interface revision: 0
[+]   Mobile model:      255
[+]   Mobile firmware revision: 100
[+]   Slot cycle index:  0
[+]   Hardware revision: 0x094 (0.148)

[+] Mobile model ID:     0x100c
[+] Chip version:        0
[+] Firmware build ID:   MPSS.JO.3.0.c4-00104-8909_GEN_PACK-1.172041.1.172362.4

[+] Diag version:        8


C:\Stuff\QCSuper>qcsuper.py --adb --wireshark-live --decoded-sibs-dump --decrypt-nas --include-ip-traffic
bind: Address already in use

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

Wireshark sees LTE and GSM frames on 4G and 2G modes, like calls, text messages, USSD commands, paging, etc. back and forth, but on 3G Wireshark gets no frames at all. If lines 254 and 256 (if self.current_rat != '2g': return) on pcap_dump.py are commented out, some GSMTAP frames appear on Wireshark when doing something like flipping airplane mode on and off.

I noticed opcode variable under dispatch_received_diag_packet in _base_input.py is 16 all the time on 2G, but on 3G opcode is mostly 152 and rarely 16. There's no 4G voice on DNA Finland prepaid SIMs and I have no idea if "phone things" on 4G fallback to 3G or 2G. Can't be sure if the phone really is on 3G network, so forcing to 3G only would help...

Welp, I don't know Python or mobile networks, I'm just poking around. Just saying that if you're interested in 2G or 4G, but 3G isn't your favorite, then 8110 works.

Thanks for the great tool!

QCSuper with HTC OneM8 does not work

Greetings!
I tried to run qcsuper with HTC One(M8). The Chipset is Qualcomm MSM8974.
but I get the following error. Is that also possible to support this device ?

QCSuper# sudo ./qcsuper.py --adb --wireshark-live
Error: Diag request DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x00\x00\x00\x00' timed out
QCSuper# ./qcsuper.py --adb --pcap-dump /tmp/my_pcap.pcap
Error: Diag request DIAG_LOG_CONFIG_F with payload b'\x00\x00\x00\x00\x00\x00\x00' timed out

Samsung A8 star (660) ROOT ,Neo works, no captured packets

Annotation 2019-07-18 192500

./qcsuper.py --adb --wireshark-live -v

[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux exec-out id
[<] Obtained result for running "/home/het/qcsuper/inputs/external/adb/adb_linux exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc) context=u:r:shell:s0\n'
[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/home/het/qcsuper/inputs/external/adb/adb_linux exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0\r\n'
[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""
[<] Obtained result for running "/home/het/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?""": b'DIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux push /home/het/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/home/het/qcsuper/inputs/external/adb/adb_linux push /home/het/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/het/qcsuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 1.0 MB/s (11636 bytes in 0.011s)\n'
[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""
[<] Obtained result for running "/home/het/qcsuper/inputs/external/adb/adb_linux exec-out "su -c "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge""": b'killall: adb_bridge: No such process\r\n'
[>] Running adb command: /home/het/qcsuper/inputs/external/adb/adb_linux forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x01\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 75: b'\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x11\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\t\x00\x00 \x04\x00\x00\x00\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8a\x03\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 338: b'\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x11\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 342: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x11\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 305: b'\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 309: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 147: b'\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 151: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 175: b'\x00\x00\x00\x03\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 179: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 129: b'\x00\x00\x00\x03\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 133: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 80: b'\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 84: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 79: b'\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 83: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

Works with Huawei Nexus 6P (angler), but DIAG_VERNO_F is not supported

Using a rooted Nexus 6P (angler) running LineageOS 15.1 (Oreo 8.1) and a NetHunter kernel:

$ su -c './qcsuper.py --adb --wireshark-live --reassemble-sibs --decrypt-nas --include-ip-traffic'

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

Trying the --info CLI argument with verbosity:

$ su -c './qcsuper.py -v --adb --info'
[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: /usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=0\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:sudaemon:s0\r\n'
[>] Running adb command: /usr/bin/adb exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"
[<] Obtained result for running "/usr/bin/adb exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"": b'DIAG_NOT_EXISTS=0\n'
[>] Running adb command: /usr/bin/adb push /home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 2.8 MB/s (11636 bytes in 0.004s)\n'
[>] Running adb command: /usr/bin/adb exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "/usr/bin/adb exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: adb_bridge: No such process\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'

[>] Sending request DIAG_VERNO_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x00'
Error: error response received: DIAG_BAD_CMD_F with payload b'\x00', while the request was DIAG_VERNO_F with payload b''. Maybe this operation is not supported by your device.

Trying to circumvent this error:

$ sed -i 's/accept_error = False)/accept_error = True)  # DEBUG/' modules/info.py

$ su -c './qcsuper.py -v --adb --info'
[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: /usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=0\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:sudaemon:s0\r\n'
[>] Running adb command: /usr/bin/adb exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"
[<] Obtained result for running "/usr/bin/adb exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"": b'DIAG_NOT_EXISTS=0\n'
[>] Running adb command: /usr/bin/adb push /home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/initbrain/Outils/qcsuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 4.1 MB/s (11636 bytes in 0.003s)\n'
[>] Running adb command: /usr/bin/adb exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "/usr/bin/adb exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: adb_bridge: No such process\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'

[>] Sending request DIAG_VERNO_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x00'
[>] Sending request DIAG_EXT_BUILD_ID_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'|'
[>] Sending request DIAG_DIAG_VER_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x1c'
[>] Sending request DIAG_ESN_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 0: b''

$ sed -i 's/accept_error = True)  # DEBUG/accept_error = False)/' modules/info.py

Extract of raw information about the device:

$ adb shell

angler:/ $ getprop | grep -iE 'hardware|network|version|cpu|baseband|qualcomm|model|build'
[gsm.network.type]: [LTE]
[...]
[gsm.version.baseband]: [angler-03.88]
[gsm.version.ril-impl]: [Qualcomm RIL 1.0]
[...]
[ro.baseband]: [msm]
[ro.boot.baseband]: [msm]
[ro.boot.hardware]: [angler]
[...]
[ro.boot.hardware.revision]: [ANGLER-ROW-VN1]
[ro.boot.hardware.sku]: [H1512]
[ro.boot.secure_hardware]: [1]
[ro.bootimage.build.date]: [Fri Mar 22 10:41:56 UTC 2019]
[ro.bootimage.build.date.utc]: [1553251316]
[ro.bootimage.build.fingerprint]: [google/angler/angler:8.1.0/OPM7.181205.001/5080180:user/release-keys]
[ro.build.characteristics]: [nosdcard]
[ro.build.date]: [Fri Mar 22 10:41:56 UTC 2019]
[ro.build.date.utc]: [1553251316]
[ro.build.description]: [angler-user 8.1.0 OPM7.181205.001 5080180 release-keys]
[ro.build.display.id]: [lineage_angler-userdebug 8.1.0 OPM7.181205.001 51a828909b]
[ro.build.fingerprint]: [google/angler/angler:8.1.0/OPM7.181205.001/5080180:user/release-keys]
[ro.build.flavor]: [lineage_angler-userdebug]
[ro.build.host]: [lineage-runner]
[ro.build.id]: [OPM7.181205.001]
[ro.build.product]: [angler]
[ro.build.selinux]: [1]
[ro.build.tags]: [release-keys]
[ro.build.type]: [userdebug]
[ro.build.user]: [gitlab-runner]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [51a828909b]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [8.1.0]
[ro.build.version.sdk]: [27]
[ro.build.version.security_patch]: [2019-03-05]
[ro.hardware]: [angler]
[ro.lineage.build.version]: [15.1]
[ro.lineage.build.version.plat.rev]: [0]
[ro.lineage.build.version.plat.sdk]: [9]
[ro.lineage.display.version]: [15.1-20190322-NIGHTLY-angler]
[ro.lineage.version]: [15.1-20190322-NIGHTLY-angler]
[ro.modversion]: [15.1-20190322-NIGHTLY-angler]
[...]
[ro.product.cpu.abi]: [arm64-v8a]
[ro.product.cpu.abilist]: [arm64-v8a,armeabi-v7a,armeabi]
[ro.product.cpu.abilist32]: [armeabi-v7a,armeabi]
[ro.product.cpu.abilist64]: [arm64-v8a]
[ro.product.model]: [Nexus 6P]
[...]
[ro.vendor.build.date]: [Fri Oct 19 16:45:06 UTC 2018]
[ro.vendor.build.date.utc]: [1539967506]
[ro.vendor.build.fingerprint]: [google/angler/angler:8.1.0/OPM7.181205.001/5080180:user/release-keys]
[ro.vendor.product.model]: [Nexus 6P]
[...]


angler:/ $ cat /proc/cpuinfo                                                                                    
processor	: 0
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

processor	: 1
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

processor	: 2
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

processor	: 3
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x0
CPU part	: 0xd03
CPU revision	: 2

processor	: 4
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 5
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 6
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

processor	: 7
Features	: fp asimd evtstrm aes pmull sha1 sha2 crc32
CPU implementer	: 0x41
CPU architecture: 8
CPU variant	: 0x1
CPU part	: 0xd07
CPU revision	: 1

Hardware	: Qualcomm Technologies, Inc MSM8994

PS: regarding the absence of the latest security patches, this is due to the fact that it is no longer my main smartphone ;)

Anyway, I can't tell you how much I appreciate your work.
Thank you for sharing with the community <3

problem when running on wireshark

i have problem when ruuning with ./qcsuper.py --adb --wireshark-live
on wireshark send error message:
Could not create profiles directory
"/root/.config/wireshark"

Could not open common recent file
"/root/.config/wireshark/recent_common": Permission denied.

Could not open recent file
"/root/.config/wireshark/recent": Permission denied.

You don't have permission to read the file "hosts".

You don't have permission to read the file "subnets".

You don't have permission to read the file "subnets".

You don't have permission to read the file "ss7pcs".

You don't have permission to read the file "init.lua".

Could not open recent file
"/root/.config/wireshark/recent_common": Permission denied.

Error loading table 'Display expressions': Permission denied

Error loading table 'SMI Paths': Permission denied

Error loading table 'SMI Modules': Permission denied

Error loading table 'MaxMind Database Paths': Permission denied

Error loading table 'OID Tables': Permission denied

Error loading table 'Custom BootP/DHCP Options (Excl. suboptions)': Permission denied

Error loading table 'BTMesh Network keys': Permission denied

Error loading table 'Force Decode by Channel': Permission denied

Error loading table 'Decryption Table': Permission denied

Error loading table 'Node bodytypes': Permission denied

Error loading table 'DMP Security Classifications': Permission denied

Error loading table 'DPS Security Mode Templates': Permission denied

Error loading table 'DPS Session Keys': Permission denied

Error loading table 'DPS Identity Secrets': Permission denied

Error loading table 'DTLS RSA Keylist': Permission denied

Error loading table 'Device-Specific Profiles': Permission denied

Error loading table 'NodeID-Specific Profiles': Permission denied

Error loading table 'ESS Category Attributes': Permission denied

Error loading table 'Custom HTTP Header Fields': Permission denied

Error loading table 'Custom HTTP2 Header Fields': Permission denied

Error loading table 'WEP and WPA Decryption Keys': Permission denied

Error loading table 'Static Addresses': Permission denied

Error loading table 'Keys': Permission denied

Error loading table 'Custom IMF headers': Permission denied

Error loading table 'ESP SAs': Permission denied

Error loading table 'IKEv1 Decryption Table': Permission denied

Error loading table 'IKEv2 Decryption Table': Permission denied

Error loading table 'K12 Protocols': Permission denied

Error loading table 'LBMPDM-TCP tag definitions': Permission denied

Error loading table 'LBMR tag definitions': Permission denied

Error loading table 'LBT-RM tag definitions': Permission denied

Error loading table 'LBT-RU tag definitions': Permission denied

Error loading table 'LBT-TCP tag definitions': Permission denied

Error loading table 'Custom LDAP AttributeValue types': Permission denied

Error loading table 'LoRaWAN Encryption Keys': Permission denied

Error loading table 'Static LCID -> drb Table': Permission denied

Error loading table 'Message Decoding': Permission denied

Error loading table 'Security Contexts': Permission denied

Error loading table 'PDCP UE security keys': Permission denied

Error loading table 'PRES Users Context List': Permission denied

Error loading table 'Kind-ID Table': Permission denied

Error loading table 'SCCP Users Table': Permission denied

Error loading table 'Chunk types for the statistics dialog': Permission denied

Error loading table 'Custom SIP Header Fields': Permission denied

Error loading table 'SIP authorization users': Permission denied

Error loading table 'Secret session key to use for decryption': Permission denied

Error loading table 'SNMP Users': Permission denied

Error loading table 'SNMP Enterprise Specific Trap Types': Permission denied

Error loading table 'SSL Decrypt': Permission denied

Error loading table 'RSA Keys': Permission denied

Error loading table 'XTEA Keys': Permission denied

Error loading table 'NM User Data Fields Table': Permission denied

Error loading table 'User DLTs Table': Permission denied

Error loading table 'Bitstream Channel Table': Permission denied

Error loading table 'Pre-configured Keys': Permission denied

Error loading table 'ZigBee GP Security Keys': Permission denied

Error loading table 'Display Filter Macros': Permission denied

Error loading table 'Expert Info Severity Level Configuration': Permission denied

Error loading table 'Packet Lengths': Permission denied

Can't open your preferences file "/root/.config/wireshark/preferences": Permission denied.

Could not open your disabled protocols file
"/root/.config/wireshark/disabled_protos": Permission denied.

Could not open your enabled protocols file
"/root/.config/wireshark/enabled_protos": Permission denied.

Could not open your heuristic dissectors file
"/root/.config/wireshark/heuristic_protos": Permission denied.

Could not open your capture filter file
"/root/.config/wireshark/cfilters": Permission denied.

Could not open your display filter file
"/root/.config/wireshark/dfilters": Permission denied.

Could not open filter file
"/root/.config/wireshark/colorfilters": Permission denied.

and
couldn't run /usr/bin/dumpcap in child process: permission denied

please help me

Oneplus6 and oneplus6t still not work after the kernel has opened /dev/diag

Hello, respected developer. Thank you very much for sharing the tools. However, I have encountered the following problems in use.
Basic debugging information:
OS Kali linux
Qualcomm processor sdm845
Mobile phone network card chip wcn3990
Compile adb_bridge with aarch64 ndkR20
/dev/diag opens in kernel configuration options

Through the above steps, I successfully saw /dev/diag on oneplus6 and 6T.

Then I installed QCSuper through normal steps.

The following is the QCSuper command output information.

OnePlus6T:/ # file /data/local/tmp/adb_bridge                                                                                                    
/data/local/tmp/adb_bridge: ELF executable, 64-bit LSB arm64, static, for Android 28, built by NDK r20 (5594570), not stripped


./qcsuper.py --adb --info

Error: error response received: DIAG_BAD_CMD_F with payload b'\x00', while the request was DIAG_VERNO_F with payload b''. Maybe this operation is not supported by your device.
./qcsuper.py --adb --wireshark-live -v

[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: /usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0\r\n'
[>] Running adb command: /usr/bin/adb exec-out "su -c \"test -e /dev/diag; echo DIAG_NOT_EXISTS=$?\""
[<] Obtained result for running "/usr/bin/adb exec-out "su -c \"test -e /dev/diag; echo DIAG_NOT_EXISTS=$?\""": b'DIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: /usr/bin/adb push /root/QCSuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /root/QCSuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[  1%] /data/local/tmp/adb_bridge\n[  3%] /data/local/tmp/adb_bridge\n[  5%] /data/local/tmp/adb_bridge\n[  6%] /data/local/tmp/adb_bridge\n[  8%] /data/local/tmp/adb_bridge\n[ 10%] /data/local/tmp/adb_bridge\n[ 11%] /data/local/tmp/adb_bridge\n[ 13%] /data/local/tmp/adb_bridge\n[ 15%] /data/local/tmp/adb_bridge\n[ 16%] /data/local/tmp/adb_bridge\n[ 18%] /data/local/tmp/adb_bridge\n[ 20%] /data/local/tmp/adb_bridge\n[ 21%] /data/local/tmp/adb_bridge\n[ 23%] /data/local/tmp/adb_bridge\n[ 25%] /data/local/tmp/adb_bridge\n[ 26%] /data/local/tmp/adb_bridge\n[ 28%] /data/local/tmp/adb_bridge\n[ 30%] /data/local/tmp/adb_bridge\n[ 31%] /data/local/tmp/adb_bridge\n[ 33%] /data/local/tmp/adb_bridge\n[ 35%] /data/local/tmp/adb_bridge\n[ 36%] /data/local/tmp/adb_bridge\n[ 38%] /data/local/tmp/adb_bridge\n[ 40%] /data/local/tmp/adb_bridge\n[ 42%] /data/local/tmp/adb_bridge\n[ 43%] /data/local/tmp/adb_bridge\n[ 45%] /data/local/tmp/adb_bridge\n[ 47%] /data/local/tmp/adb_bridge\n[ 48%] /data/local/tmp/adb_bridge\n[ 50%] /data/local/tmp/adb_bridge\n[ 52%] /data/local/tmp/adb_bridge\n[ 53%] /data/local/tmp/adb_bridge\n[ 55%] /data/local/tmp/adb_bridge\n[ 57%] /data/local/tmp/adb_bridge\n[ 58%] /data/local/tmp/adb_bridge\n[ 60%] /data/local/tmp/adb_bridge\n[ 62%] /data/local/tmp/adb_bridge\n[ 63%] /data/local/tmp/adb_bridge\n[ 65%] /data/local/tmp/adb_bridge\n[ 67%] /data/local/tmp/adb_bridge\n[ 68%] /data/local/tmp/adb_bridge\n[ 70%] /data/local/tmp/adb_bridge\n[ 72%] /data/local/tmp/adb_bridge\n[ 73%] /data/local/tmp/adb_bridge\n[ 75%] /data/local/tmp/adb_bridge\n[ 77%] /data/local/tmp/adb_bridge\n[ 79%] /data/local/tmp/adb_bridge\n[ 80%] /data/local/tmp/adb_bridge\n[ 82%] /data/local/tmp/adb_bridge\n[ 84%] /data/local/tmp/adb_bridge\n[ 85%] /data/local/tmp/adb_bridge\n[ 87%] /data/local/tmp/adb_bridge\n[ 89%] /data/local/tmp/adb_bridge\n[ 90%] /data/local/tmp/adb_bridge\n[ 92%] /data/local/tmp/adb_bridge\n[ 94%] /data/local/tmp/adb_bridge\n[ 95%] /data/local/tmp/adb_bridge\n[ 97%] /data/local/tmp/adb_bridge\n[ 99%] /data/local/tmp/adb_bridge\n[100%] /data/local/tmp/adb_bridge\n/root/QCSuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 33.8 MB/s (3897824 bytes in 0.110s)\n'
[>] Running adb command: /usr/bin/adb exec-out "su -c \"killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge\""
[<] Obtained result for running "/usr/bin/adb exec-out "su -c \"killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge\""": b'killall: adb_bridge: No such process\r\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x01\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 75: b'\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\t\x00\x00 \x04\x00\x00\x00\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8a\x03\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 418: b'\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 422: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 305: b'\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 309: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 147: b'\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 151: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 175: b'\x00\x00\x00\x03\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 179: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 129: b'\x00\x00\x00\x03\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 133: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 335: b'\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 339: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 79: b'\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 83: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

I don't know if my operation error caused me to smell any traffic packets. Or is this a Bug?

No output or errors on Pixel4 Android 10 Windows / Raspberian

[+] Compilation date:
[+] Release date:
[+] Version directory:

[+] Common air interface information:
[+]   Station classmark: 0
[+]   Common air interface revision: 0
[+]   Mobile model:      0
[+]   Mobile firmware revision: 0
[+]   Slot cycle index:  0
[+]   Hardware revision: 0x000 (0.0)

[>] Sending request DIAG_EXT_BUILD_ID_F of length 0: b''
[<] Received response DIAG_EXT_BUILD_ID_F of length 13: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[+] Chip version:        0
[+] Firmware build ID:

[>] Sending request DIAG_DIAG_VER_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x1c'
[>] Sending request DIAG_ESN_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x01'


"C:\Users\melon\AppData\Local\Programs\Python\Python36-32\python" qcsuper.py --adb --info -v

C:\Users\melon\Downloads\QCSuper-master\QCSuper-master>"C:\Users\melon\AppData\Local\Programs\Python\Python36-32\python" qcsuper.py --adb --info -v
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=0\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0\r\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"": b'DIAG_NOT_EXISTS=0\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\r\nC:\\Users\\melon\\Downloads\\QCSuper-master\\QCSuper-master\\inputs\\adb_bridge/adb_bridge: 1 file pushed. 5.6 MB/s (11636 bytes in 0.002s)\r\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: adb_bridge: No such process\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'

[>] Sending request DIAG_VERNO_F of length 0: b''
[<] Received response DIAG_VERNO_F of length 54: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[+] Compilation date:
[+] Release date:
[+] Version directory:

[+] Common air interface information:
[+]   Station classmark: 0
[+]   Common air interface revision: 0
[+]   Mobile model:      0
[+]   Mobile firmware revision: 0
[+]   Slot cycle index:  0
[+]   Hardware revision: 0x000 (0.0)

[>] Sending request DIAG_EXT_BUILD_ID_F of length 0: b''
[<] Received response DIAG_EXT_BUILD_ID_F of length 13: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[+] Chip version:        0
[+] Firmware build ID:

[>] Sending request DIAG_DIAG_VER_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x1c'
[>] Sending request DIAG_ESN_F of length 0: b''
[<] Received response DIAG_BAD_CMD_F of length 1: b'\x01'

C:\Users\melon\Downloads\QCSuper-master\QCSuper-master>"C:\Users\melon\AppData\Local\Programs\Python\Python36-32\python" qcsuper.py --adb --wireshark-live -v
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out id": b'uid=2000(shell) gid=2000(shell) groups=2000(shell),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:shell:s0\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=0\nDIAG_NOT_EXISTS=0\nDEV_NOT_READABLE=0\nuid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0\r\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"": b'DIAG_NOT_EXISTS=0\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe push C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\r\nC:\\Users\\melon\\Downloads\\QCSuper-master\\QCSuper-master\\inputs\\adb_bridge/adb_bridge: 1 file pushed. 5.4 MB/s (11636 bytes in 0.002s)\r\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: adb_bridge: No such process\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 11: b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_EXT_MSG_CONFIG_F of length 7: b'\x05\x01\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x01\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 75: b'\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\t\x00\x00 \x04\x00\x00\x00\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8a\x03\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 418: b'\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 422: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 305: b'\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 309: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 147: b'\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 151: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 175: b'\x00\x00\x00\x03\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 179: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 129: b'\x00\x00\x00\x03\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 133: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 335: b'\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 339: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x0c0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 79: b'\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 83: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"
[<] Obtained result for running "C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe exec-out "killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge"": b'killall: adb_bridge: No such process\n'
[>] Running adb command: C:\Users\melon\Downloads\QCSuper-master\QCSuper-master\inputs\external\adb/adb_windows.exe forward tcp:43555 tcp:43555
[>] Sending request DIAG_LOG_CONFIG_F of length 418: b'\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 422: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x94\x0c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 305: b'\x00\x00\x00\x03\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 309: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x04\x00\x00\x00\x10\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 147: b'\x00\x00\x00\x03\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 151: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x05\x00\x00\x00 \x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 175: b'\x00\x00\x00\x03\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 179: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00\xff\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 129: b'\x00\x00\x00\x03\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 133: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\n\x00\x00\x00\x8a\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 335: b'\x00\x00\x00\x03\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 339: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\x0b\x00\x00\x00\xff\t\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[>] Sending request DIAG_LOG_CONFIG_F of length 79: b'\x00\x00\x00\x03\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
[<] Received response DIAG_LOG_CONFIG_F of length 83: b'\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00\r\x00\x00\x00\xff\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

Trying to decode MIB and SIB

Hi, Thank you for leading and sharing this project. I really excited when I successfully installed it on my machine.

In my own research, I want to see broadcast messages such as MIB and SIB when I send some fake-broadcast messages.
I'm using Nexsus 6P, commercial LTE, and I'm using following command for QCSuper.
./qcsuper.py --adb --decoded-sibs-dump --wireshark-live --reassemble-sibs --decrypt-nas

With QCSuper, I could see MIB and SIB, right before I insert my sim card from my android phone. Is there any way to see MIB and SIB decoded messages without off a sim card?

From following capture, after I insert Sim into phone, RRC Connection is starting, and I couldn't see and SIM and MIB anymore. Even I put my phone into the shelter which is completely disconnected from wireless signal.

RRC_capture

How to communicate with /dev/diag manually?

Hi all,

I want to understand the internals of the diag protocol practically so I'm trying to manually send and receive commands to the /dev/diag interface I've recreated the following steps but don't know how to proceed further.

/usr/bin/adb exec-out id

/usr/bin/adb exec-out "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?"

/usr/bin/adb exec-out "test -e /dev/diag; echo DIAG_NOT_EXISTS=$?"

/usr/bin/adb exec-out "test -r /dev"

/usr/bin/adb exec-out "echo DEV_NOT_READABLE=$?"

/usr/bin/adb exec-out "su -c id"

/usr/bin/adb exec-out "su -c "test -e /dev/diag""

/usr/bin/adb exec-out "su -c \"test -e /dev/diag; echo DIAG_NOT_EXISTS=$?\""

/usr/bin/adb push /home/..../QCSuper/inputs/adb_bridge/adb_bridge /data/local/tmp

/usr/bin/adb exec-out "su -c \"killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge\""

adb shell "su -c /data/local/tmp/adb_bridge"

After these steps, I receive the following prompt...

Connection to Diag established

and it waits for my input but I don't know what input should I provide for further communication.

How should I proceed further?
@p1-martin

Note: I'm not forwarding the messages over TCP port 43555 here as I want to see the raw message output on my terminal over the ADB shell I've spawned and analyze what messages are being executed.

Adding new message types/versions

Hi

After a little bit of working with my modem module (quectel) and QCSuper (and also mobile-insight) I have found out that my modem is using message versions not supported by this program (and not the other one either).
What is the procedure of adding such messages to the program so that I could analyze them properly?
And First and foremost, where could I find out what has changed in a message with a new version?

Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C

I tried this on a rooted Nexus5x with a data-only googlefi sim and wasn't able to see any messages in wireshark (I wasn't sure if it would work but figured it was worth a try).

I did see the following errors on the command line:

$ ./qcsuper.py --adb --wireshark-live

[+] Enabled logging for: 1X (1), WCDMA (4), GSM (5), UMTS (7), DTV (10), APPS/LTE/WIMAX (11), TDSCDMA (13)

Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
Unknown log type received for LOG_LTE_RRC_OTA_MSG_LOG_C: 11
...

How to run QCSuper for one of the adb devices when multiple adb devices are connected

adb command with qcsuper does not accept any arguments.
When multiple devices are connected and we want to run qcsuper for one of the particular device, I am not able to do so.
Only single ADB device when connected runs perfectly fine.

Please find the output below.

root@Uecontroller-anoopk:~/darpan/QCSuper-master# adb devices
List of devices attached
ZF6222B8NJ device
ZY3223D9F4 device

root@Uecontroller-anoopk:/darpan/QCSuper-master# ./qcsuper.py adb -s ZF6222B8NJ --wireshark-live
usage: qcsuper.py [-h] [--cli] [-v]
(--adb | --usb-modem TTY_DEV | --dlf-read DLF_FILE | --json-geo-read JSON_FILE)
[--info] [--pcap-dump PCAP_FILE] [--wireshark-live]
[--memory-dump OUTPUT_DIR] [--dlf-dump DLF_FILE]
[--json-geo-dump JSON_FILE] [--decoded-sibs-dump]
[--reassemble-sibs] [--decrypt-nas] [--include-ip-traffic]
[--start MEMORY_START] [--stop MEMORY_STOP]
qcsuper.py: error: one of the arguments --adb --usb-modem --dlf-read --json-geo-read is required
root@Uecontroller-anoopk:
/darpan/QCSuper-master#

Please help.
Thanks in advance

Issue while trying to use One plus 8

Hello
I am facing issues while trying to connect a Qualcomm phone. the phone is rooted. when I run the command in window 10 I see follwoing.

C:\Users\test\OneDrive - \Downloads\platform-tools_r30.0.3-windows\platform-tools>qcsuper.py --adb --wireshark-live
ioctl: Invalid argument
Traceback (most recent call last):
File "C:\Users\test\OneDrive - \Downloads\platform-tools_r30.0.3-windows\platform-tools\inputs_base_input.py", line 156, in _read_thread
self.read_loop()
File "C:\Users\test\OneDrive - \Downloads\platform-tools_r30.0.3-windows\platform-tools\inputs\adb.py", line 292, in read_loop
socket_read = self.socket.recv(1024 * 1024 * 10)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

Works with ZTE WCDMA Technologies MSM MF110/MF627/MF636

[+] Compilation date: Mar 10 2010 14:29:52
[+] Release date: Mar 08 2010 10:00:00
[+] Version directory: KP671A2

[+] Common air interface information:
[+] Station classmark: 0
[+] Common air interface revision: 0
[+] Mobile model: 29
[+] Mobile firmware revision: 0
[+] Slot cycle index: 0
[+] Hardware revision: 0x1c0 (1.192)

[+] Chip version: 3
[+] Firmware build ID: M6290A-KPRZL-2.4.0105T

[+] Diag version: 8

Problem with HTC One V

Hello again developers.
I tried to connect with a rooted HTC One V. After executing the ./qcsuper.py --adb --wireshark-live --info -v command, I get the following results

[>] Running adb command: /usr/bin/adb exec-out id
[<] Obtained result for running "/usr/bin/adb exec-out id": b'error: closed\n'
[>] Running adb command: /usr/bin/adb shell "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"
[<] Obtained result for running "/usr/bin/adb shell "test -w /dev/diag; echo DIAG_NOT_WRITEABLE=$?; test -e /dev/diag; echo DIAG_NOT_EXISTS=$?; test -r /dev; echo DEV_NOT_READABLE=$?; su -c id"": b'DIAG_NOT_WRITEABLE=1\r\nDIAG_NOT_EXISTS=0\r\nDEV_NOT_READABLE=0\r\nuid=0(root) gid=0(root) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats)\r\n'
[>] Running adb command: /usr/bin/adb shell "su -c \"test -e /dev/diag; echo DIAG_NOT_EXISTS=$?\""
[<] Obtained result for running "/usr/bin/adb shell "su -c \"test -e /dev/diag; echo DIAG_NOT_EXISTS=$?\""": b'DIAG_NOT_EXISTS=0\r\n'
[>] Running adb command: /usr/bin/adb push /home/evgenia/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp
[<] Obtained result for running "/usr/bin/adb push /home/evgenia/qcsuper/inputs/adb_bridge/adb_bridge /data/local/tmp": b'[100%] /data/local/tmp/adb_bridge\n/home/evgenia/qcsuper/inputs/adb_bridge/adb_bridge: 1 file pushed. 0.2 MB/s (11636 bytes in 0.054s)\n'
[>] Running adb command: /usr/bin/adb shell "su -c \"killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge\""
[<] Obtained result for running "/usr/bin/adb shell "su -c \"killall -q adb_bridge; chmod 755 /data/local/tmp/adb_bridge\""": b'sh: killall: not found\r\n'
[>] Running adb command: /usr/bin/adb forward tcp:43555 tcp:43555
Segmentation fault 
[>] Sending request DIAG_LOG_CONFIG_F of length 7: b'\x00\x00\x00\x00\x00\x00\x00'

The connection to the adb bridge was closed, or preempted by another QCSuper instance

Wireshark pops up but I get the No packets captured message.

Also executing adb exec-out su -c /data/local/tmp/adb_bridge returns error: closed

Oneplus 3 adb_bridge not working

Hi,
I can't get this to work on one plus 3 android 8.1 oreo. Looks like it has some issues with the adb_bridge arm executable. I'm getting ioctl: Invalid argument when I try to run the binary on the phone. I'm including the relevant section of the strace bellow and I'm happy to help you to with figuring this issue out.

openat(AT_FDCWD, "/dev/diag", O_RDWR|O_LARGEFILE) = 3
ioctl(3, _IOC(0, 0, 0x20, 0), 0xaaab5088) = 1
ioctl(3, _IOC(0, 0, 0x7, 0), 0x2)       = -1 EFAULT (Bad address)
ioctl(3, _IOC(0, 0, 0x7, 0), 0xaaaab3a4) = -1 EINVAL (Invalid argument)
writev(2, [{iov_base="ioctl", iov_len=5}, {iov_base=": ", iov_len=2}, {iov_base="Invalid argument", iov_len=16}, {iov_base="\n", iov_len=1}], 4ioctl: Invalid argument
) = 24
mprotect(0xf75f6000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xf75f6000, 4096, PROT_READ)   = 0
mprotect(0xf75f6000, 4096, PROT_READ|PROT_WRITE) = 0
mprotect(0xf75f6000, 4096, PROT_READ)   = 0
munmap(0xf75f6000, 4096)                = 0
exit_group(1)                           = ?

Decoded json output

Hi,
Thanks for your complete professional code.
I used it with a Qualcomm inside module, it works good in pcap and json outputs.
I want to send the output to a server and process them for desired KPIs. The json output is preferred for sending and processing, but it produces raw output. How can I have decoded RRC messages in json output?
Could you help me for needed changes on code?
Thanks a lot

When run with --info, script crashes out when trying to parse version_strings

Hello,
Thanks again for your work on this. I suspect this is a relatively easy fix, I might even take a whack at in when I have time though python is not really my thing. The USB modem is a sierra wireless MC7455 module. When the script is run with --info on this device it returns the following output:

./qcsuper.py --info --usb-modem /dev/ttyUSB0

[+] Compilation date:    Jul 24 2018 18:20:25
[+] Release date:        May 02 2018 05:00:00
[+] Version directory:   C2300300

[+] Common air interface information: 
[+]   Station classmark: 58
[+]   Common air interface revision: 6
[+]   Mobile model:      255
[+]   Mobile firmware revision: 100
[+]   Slot cycle index:  2
[+]   Hardware revision: 0x922 (9.34)

Traceback (most recent call last):
  File "/home/pi/qcsuper/inputs/_base_input.py", line 218, in _init_single_module
    module.on_init()
  File "/home/pi/qcsuper/modules/info.py", line 88, in on_init
    build_id, model_string, _ = ver_strings.split(b'\x00')
ValueError: too many values to unpack (expected 3)

This seems to be incomplete, it looks like it's getting something within the version string that it does not expect.

If I can be of more help gathering further info on this to help improve the script please let me know.

Thanks!

LG V50 ThinQ 5G and QCSuper

I am trying to use QCSuper with LG V50 ThinQ 5G (Sprint USA) connected to LTE. I am running QCSuper on macOS 10.15 in usb modem mode, with the phone connected over USB (diag port enabled). I can't use diag over adb because the phone can't be rooted. I encountered several issues while using QCSuper with this device. First of all, when I try to log using Wireshark, nothing is displayed in Wireshark. The command I run is sudo python3 ./qcsuper.py --usb-modem /dev/tty.lgusbserial1451 --wireshark-live --verbose
I get the following in the terminal(much longer than I pasted here):

[<] Received response 152 of length 70: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00;\x00;\x00\xc0\xb0\xa0\x8d@\xd3\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00\x00\xbc\x03\x04\x00\x00\x00\x1a\x00\x10\x00\x12\x12Uo\x18,\xc03\x04f\x01\x00\x00\x02\x00\x88W\xd9\x15E\xdb\xa0\x03\x80'
[<] Received response 152 of length 57: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00.\x00.\x00\xc0\xb0\x9c\x8cH\xd3\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00\x10\xbc\x03\x08\x00\x00\x00\r\x00\x10\x06J\x05\x98\xac\xda@\xa0y\x90 \x00'
[<] Received response 152 of length 81: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00F\x00F\x00\xc0\xb0\xd1\x9eP\xd3\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00 \xbc\x03 \x00\x00\x00%\x00\x10\x0c\xd6P\t\x15\xa9\x00O/YA\xb0V\xa4\x01<\xbda\x0e\xc9Z\x90\x10\xea\xf5\x84Gej@c\x8b\xc0\x00\x00\x00'
[<] Received response 152 of length 72: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00=\x00=\x00\xc0\xb0\xbb\x9dT\xd3\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00%\xbc\x03\x02\x00\x00\x00\x1c\x00x\xccB$\x19\x89T\xc3\x8e+\xf4X\x0f\x12P\xd6\x82\x00\x10\x81\x04P%\xa12vU\x14'
[<] Received response 152 of length 70: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00;\x00;\x00\xc0\xb0\xa0\x8e@\xd5\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00\x00\x80\x03\x04\x00\x00\x00\x1a\x00\x10\x00\x12\x12Uo\x18,\xc03\x04f\x01\x00\x00\x02\x00\x88W\xd9\x15E\xdb\xa0\x03\x80'
[<] Received response 152 of length 72: b'\x01\x00\x00\x01\x00\x00\x00\x10\x00=\x00=\x00\xc0\xb0\x94\x97D\xd5\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x00\x05\x80\x03\x02\x00\x00\x00\x1c\x00x\xccB$\x19\x89T\xc3\x8e+\xf4X\x0f\x12P\xd6\x82\x00\x10\x81\x04P%\xa12vU\x14'
[<] Received response 152 of length 59: b'\x01\x00\x00\x01\x00\x00\x00\x10\x000\x000\x00\xc0\xb0\xd6\x8bX\xd5\xadz\xe8\x00\x1a\x0f@\x0fA\x00\xf6\x01\xc2\x9b\x00\x000\x80\x03\x00\x01\x00\x00\x0f\x00\x10\x1a2\xbc\xd8\x06\xa7\xd7@\x1f\xc8$\x02 \x00'

When I attempt to run sudo python3 ./qcsuper.py --usb-modem /dev/tty.lgusbserial1451 --dlf-dump output_file.dlf I get an error and my phone loses signal until I toggle airplane mode on/off. This is the error I get:

Warning: Wrong CRC: b'\x10\x00\xec\x04\xec\x04\xb5\x19\x02\xa3\xfe-\xaez\xe8\x00\x03\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00(\x10\xa5\xc4\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00_\x01\x00\x00\x00\xba\x9e\xc7\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00p\x01\x00\x00\x00\xb1\x8c\xca\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00r\x01\x00\x00\x00m\x96\xcd\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00l\x01\x00\x00\x00\xe8h\xd0\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00q\x01\x00\x00\x00\xd9Q\xd3\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00s\x01\x00\x00\x00\xf1\xbc\xd9\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00s\x01\x00\x00\x00\xe7\x14\xdc\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00d\x01\x00\x00\x00\xff\x05\xe5\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00q\x01\x00\x00\x00B\xdb\xe7\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00r\x01\x00\x00\x00B\xc1\xea\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00o\x01\x00\x00\x00[1\xf1\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00q\x01\x00\x00\x00\xcb\x84\xf3\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00D\x01\x00\x00\x00\x80\x8b\xf6\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00p\x01\x00\x00\x00\xddl\xf9\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00n\x01\x00\x00\x00Kw\xfc\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00k\x01\x00\x00\x00\x1cK\xff\xa8\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00j\x01\x00\x00\x00\t7\x02\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00q\x01\x00\x00\x00l\x9c\x08\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00r\x01\x00\x00\x00g\xf4\n\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00j\x01\x00\x00\x00\x0f\xf0\r\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00o\x01\x00\x00\x00\'\xdc\x10\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00o\x01\x00\x00\x00\x1e\xa1\x19\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00n\x01\x00\x00\x00\xad\x19 \xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00i\x01\x00\x00\x00\xcde"\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00R\x01\x00\x00\x00\xcdQ%\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00m\x01\x00\x00\x00HL(\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00o\x01\x00\x00\x00Pr+\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00m\x01\x00\x00\x00J .\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00k\x01\x00\x00\x00\xd7\x101\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00k\x01\x00\x00\x00Q\x887\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00V\x01\x00\x00\x00H\xd69\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00V\x01\x00\x00\x00\x87\xce<\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00k\x01\x00\x00\x00\xab\xbb?\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00m\x01\x00\x00\x00\xe3\xbfB\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00m\x01\x00\x00\x00\xad\x97E\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00l\x01\x00\x00\x00\xb6\x80H\xa9\x02\x00\x00\x00\x02`\x02\x02\x00\x08\x01\xc2\x9b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00<\n<\nP\x1c\xa4\x865.\xaez\xe8\x00\x01\x00\x00\x00?\x02\x00\x04\x01\x00\x01\x00w\x8dr\x00y\x8dr\x00W\x8e2\x00\x01\x00\x00\x00\xa8\x81\xb2Q\x04!\xa1\x90XX\x00\x00\xd3\x812P\xac\xa8\xa3Q\x03!-\x91\x98o\x00\x00\xd1\xa8#P\xec\xaa\xa3Q\x01!Q\x90\xd8o\x00\x00\xf1\xaa#P\xac\xa8\xa3S\x03!\xf5\x90\xf8o\x00\x00\xcc\xa8#P\xec\xaa\xa3S\x01!Q\x908p\x00\x00\xf1\xaa#P}>\xa5Q\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x004\x004\x00\xc4\x18\xb0\x94M.\xaez\xe8\x00\x01\x00\x00\x00\x01\x03\x01\x00\x01\xaa\x00\r\x1c8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' (is: 3cef, should be: 3347)
Traceback (most recent call last):
  File "/Users/vladslavskii/QCSuper/inputs/_base_input.py", line 156, in _read_thread
    self.read_loop()
  File "/Users/vladslavskii/QCSuper/inputs/usb_modem.py", line 259, in read_loop
    self.dispatch_received_diag_packet(unframed_message)
  File "/Users/vladslavskii/QCSuper/inputs/_base_input.py", line 351, in dispatch_received_diag_packet
    time() # Timestamp
  File "/Users/vladslavskii/QCSuper/inputs/_base_input.py", line 383, in dispatch_diag_log
    module.on_log(log_type, log_payload, log_header, timestamp)
  File "/Users/vladslavskii/QCSuper/modules/dlf_dump.py", line 25, in on_log
    assert unpack('<H', log_header[:2])[0] == len(log_header + log_payload)
AssertionError

Link problem in Queltec module

Hi

Thanks for the good code.
The Quectel EC25-E modules have qualcomm chip inside, and expose the DM port as a virtual serial port, through a USB connection. For data transfer, the driver generates a broadband connection in Windows.

I was able to connect Qsuper to the module through the DM port and get some logs (although I feel some reports are missing). But, just as I start Qsuper, the broadband connection is lost.

I copied the raw_payload strings generated inside QSuper send_request function and sent them sequentially through a general terminal. Then commented out the send_request function, and ran QSuper again. Although now QSuper did not transmit anything, again the broadband connection failed. (It seems if I limit the speed of the download, this time that failure did not happen or was delayed). But If I just kept the DM port open in the general terminal, no disconnection happened.
So It feels like that QSuper does something with the board (or DM port?), which it doesn't expect. What might it be?

Regards

Samsung Galaxy S4 GT-I9505 Works

Hi everyone,

Thank you for opening this project. It is really amazing to get access to that. I am also a super happy user of Pycrate! I can report that I successfully could run QCSuper with a Samsung Galaxy S4 GT-I9505.

A related question. If I understood correctly you need to open the diag char device with the fancy IOCTL call, it means the char device starts to generate data. Would it be feasible (I did not test yet, I will try on my own, but just if you have experience with it, you might have an idea) to write directly on the phone memory a DLF dump while using the phone and then fetch it later for further analysis?

Quectel BG96 NB-Iot Module: wireshark RRC decoding not working

Hi,
I was trying to use QCSuper with this Quectel module, but it did no show any RRC messages in wireshark. I found there are new channel_types specific for NB-IOT (--verbose).
After looking at the code, i did some experiments and solve the issue, at least for the channel_types the module is sending at the moment.

The changes i did were the following:

File log_types.py:

LTE_UL_CCCH_NB = 50
LTE_DL_CCCH_NB = 48
LTE_UL_DCCH_NB = 52
LTE_DL_DCCH_NB = 49
LTE_PCCH_NB = 47
LTE_BCCH_DL_SCH_NB = 46

File gsmtap.py (i just updated according to most recent taps):

GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_MBMS = 8
GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_BR = 9
GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_MBMS = 10
GSMTAP_LTE_RRC_SUB_SC_MCCH_Message = 11
GSMTAP_LTE_RRC_SUB_SBCCH_SL_BCH_Message = 12
GSMTAP_LTE_RRC_SUB_SBCCH_SL_BCH_Message_V2X = 13
GSMTAP_LTE_RRC_SUB_DL_CCCH_Message_NB = 14
GSMTAP_LTE_RRC_SUB_DL_DCCH_Message_NB = 15
GSMTAP_LTE_RRC_SUB_UL_CCCH_Message_NB = 16
GSMTAP_LTE_RRC_SUB_UL_DCCH_Message_NB = 17
GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_NB = 18
GSMTAP_LTE_RRC_SUB_BCCH_BCH_Message_TDD_NB = 19
GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_NB = 20
GSMTAP_LTE_RRC_SUB_PCCH_Message_NB = 21
GSMTAP_LTE_RRC_SUB_SC_MCCH_Message_NB = 22

File pcap_dump.py:

I added the last 6 lines:

        gsmtap_channel_type = {
            LTE_BCCH_DL_SCH: GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message,
            LTE_PCCH: GSMTAP_LTE_RRC_SUB_PCCH_Message,
            LTE_DL_CCCH: GSMTAP_LTE_RRC_SUB_DL_CCCH_Message,
            LTE_DL_DCCH: GSMTAP_LTE_RRC_SUB_DL_DCCH_Message,
            LTE_UL_CCCH: GSMTAP_LTE_RRC_SUB_UL_CCCH_Message,
            LTE_UL_DCCH: GSMTAP_LTE_RRC_SUB_UL_DCCH_Message,
            LTE_UL_CCCH_NB: GSMTAP_LTE_RRC_SUB_UL_CCCH_Message_NB,
            LTE_DL_CCCH_NB: GSMTAP_LTE_RRC_SUB_DL_CCCH_Message_NB,
            LTE_UL_DCCH_NB: GSMTAP_LTE_RRC_SUB_UL_DCCH_Message_NB,
            LTE_DL_DCCH_NB: GSMTAP_LTE_RRC_SUB_DL_DCCH_Message_NB,
            LTE_PCCH_NB: GSMTAP_LTE_RRC_SUB_PCCH_Message_NB,
            LTE_BCCH_DL_SCH_NB: GSMTAP_LTE_RRC_SUB_BCCH_DL_SCH_Message_NB
        }.get(channel_type)

I commented this part (because it was just reducing channel_type by 7):

        #if channel_type > LTE_UL_DCCH:
        #    channel_type -= 7

if you want to keep this part of the code, you need to decrease by 7 the new log_types added in log_types.py file.

If you find new channel_types please inform.
Thanks.

Andromax A16C3H Works

Works perfectly on Andromax A16C3H
no issue at all. and all packet seems to be correctly captured
Screenshot from 2019-12-01 18-31-11

Scapy implementation

Hello
Iam able to craft gsm packets using scapy.
is there a possibility of forwarding the packets to the air either through parsing them to modem or any means....
Any solutions will pe appreciated
Thanks

Connectivity fails with Sony Xperia Z3 (D5803)

I'm currently struggling with connecting the Sony Xperia Z3 (D5803). Do you support this device? I get the output from the tool:
# ./qcsuper.py --adb --wireshark-live
Could not find /dev/diag, does your phone have a Qualcomm chip?

Ioctl Invalid argument

Thank you for creating this nice tool.

I have a OnePlus 8 Pro which exposes the diag port but when I start the program is report an error:

oot@xps:/home/dario/dev/radio/QCSuper-master# ./qcsuper.py --adb --wireshark-live
ioctl: Invalid argument

The connection to the adb bridge was closed, or preempted by another QCSuper instance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.