You may brick your phone. Do it on your own risk. Do the backup first:
Create an EFS backup in TWRP, OrangeFOX Recovery.
Do the QCN and XQCN backup before you begin.
QCN: QPST > Software download tool > Backup > save in QCN format
XQCN: QPST > QFIL > Tools > Backup and restore > save in XQCN format
To enable VoLTE (voice over LTE), VoWiFi (voice over WiFi), VoNR (voice over new radio 5G) for unsupported carrier you can enable modem binary (MBN) file in PDC Tool for Qualcom devices.
To make that almost persistent you will have to edit “mcfg_sel_db.xml” and “mcfg_sel_db_ext.xml” files with EFS Explorer on NVRAM. On other brands it could be different files, Xiaomi, Oppo, Samsung, Huawei, Oneplus.
Phone is saving used SIM cards profiles by its ICCID number (16 or 20 numbers). It choose MBN only at the first time you insert SIM card. So you will have to remove the profile with EFS Explorer. You can check that reset mobile network in System > Reset will work. Without that modem will use profile choosed at the first time.
All the MBNs and the modem images with configuration files (ex. NON-HLOS.bin, modem.img) are usually signed. So you can read them but it is not possible to use flashed modified the image.
You can try to find signed MBNs file from similar device and try to insert to modem image. It should be signed from the same brand/manufacturer. I’m not sure about that. Do not forget to flash “modem_a” and “modem_b” on A/B devices. Modem images is just partitions image.
TIP: you should replace any existing MBN file and use its index in XML files. Do not try to add new one.
mkdir modem
sudo mount -o loop modem.img modemRemember that MBN files has carrier configuration for modem. It usually includes:
- IMS settings (VoLTE, VoWiFi, SMS over IMS)
- APN profiles for data, MMS, IMS etc.
- policies rules (which MCC/MNC triggers which profile)
- Network feature flags (e.g., whether VoLTE is enabled)
Usually IMS APN is hidden (in most cases it has apn: ims and name: ims typ: ims), emergency one as well.
Tools
Install QPST Tool and Qualcom Drivers first.
- QPST Tool https://qpsttool.com/category/download
- Qualcom USB Driver (instal as WWAN)- https://qcomdriver.com/qualcomm-usb-driver-v1-0-10065-1
- adb and fastboot
- rooted phone to enter the DIAG mode (you can remove root after that)
- MBNS files from other ROM or different device (optional, required if none of the existing profiles does not work)
Enable MBN profile with PDC Tool
First you need have to find working profile for you SIM Card. We will try different MBN profiles with PDC Tool. First have to disable current Active profile, set different one and Active it.
Remember the order:
- Disable Active profile
- Set different profile
- Click Activate
When you get error “PDC: QueryGetConfigInfo failed with Gobi error code: 16 (Malformet QMI response received)” you should restart PDC Tool. It may be necessary to restart PDC Tool after every change.
Usually Sub0 is for SIM slot 1 and Sub1 form SIM slot #2. Notice esim may use sub2.
- Install QPST tools and Qualcomm drivers
- Enable ADB Debugging in Developer Settings
- Enter to diag mode:
adb shell
su
setprop sys.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
(reconnect USB and repeat commands)
adb shell
su
setprop sys.usb.config diag,diag_mdm,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb - Run PDC Tool as admin.
- Choose from list: Qualcomm HS-USB WWAN Adapter 90XX. It may hang for some time.
WARN: never disable HW Type in PDC Tool
- In this example ROW_Commercial is active. Click right on ROW_Commerical > Deactivate > SubX.

- Choose different profile from list, SetSelectedConfig > SubX. It should change status to Pending
- On the bottom click Activate
- New profile should be active for choosen SubX

- Check in dialer IMS, and VoLTE status using code: *#*#4636#*#* (*#*#INFO#*#*). Click 3 dots in right top corner > IMS Service Status
IMS Registration Registered
Voice over LTE: Available
- Yoo will have to enable VoLTE in mobile sim card settings. Sometimes you have to use this codes to enable this options:
VoLTE *#*#86583#*#*
VoWIFI *#*#869434#*#* - Remember the profile which works and try to make i permanent change.
Set default MBN profile for your sim card
- You have to get MCC (Mobile Country Code): XXX and MNC (Mobile Network Code): YY of your sim card with command:
adb shell getprop gsm.sim.operator.numeric - Get ICCID number of your sim card (16 or 20 digits)
- Run diag mode
- Run EFS Explorer, go to /nv/item_files/mcfg/ and “Copy Data File to Pc” files: mcfg_sel_db.xml
mcfg_sel_db_ext.xml - Search in both files first 6 digits of ICCID or MCC and MNC in format XXX-YY
- If you find any of it you will have to replace mcfg_carrier_index=”ZZZ” with working one from PDC Tool
- Search for name in carrier_name=”XYZ”, read index:
mcfg_carrier_index=”160″ - Replace this index number under your carrier <SelRecord /> in <if></if> block
- In case you card choose ROW (rest of the world) and you cannot find you imsi or MNC-MCC you can simply find working MBN profile from PDC Tool and add your MCC,MNC to it:

- Save file and in EFS Explorer right click > Copy DataFile from PC.
- Now you should remove sim cards from phone
- Remove saved SIM Cards profile in EFS Explorer
just remove all files in (or you can remove only your card, it can mess with esim)
/nv/item_files/mcfg/cards/*
You can try System > Reset > Reset mobile settings. But i cannot guarantee it will work. - Put your sim cards again. Now it should choose correct mbn profile based on changes in xml files.
- Modem choose mbn profile only once for new sim card and save it. After every change of xml file you will have to remove you sim card and file in /nv/item_files/mcfg/cards/
Now it should work after every restart of the phone.
Najnowsze komentarze