SIM & Network Solution | Alternatively Downgrading

locovibe

Senior Member
Feb 12, 2015
164
25
0
This guide was originally written by chief_os from 4PDA.ru on how to roll back to Oreo, but my network issues wasn't caused by downgrading and still this helped me out so big thanks to the guy from the beautiful Lviv.
I alter this guide a bit, according to what I've done to get my network to work.


Download all the given files:
  1. Qualcomm Tool QPST_2.7.453.zip - unpack and install
  2. QualcommIMEIRebuilder.zip (given in this thread)
  3. daisyQCN.zip (given in this thread) - it contains the file daisy.QCN, which you will need to recover your IMEIs
  4. Fastboot ROM image of your choice from here
  5. TWRP Recovery twrp-3.2.3-0-daisy.img - move it to your ADB & Fastboot folder


Follow the steps:
  • Remove all your SIM cards from the tray followed by disabling PIN security
  • Make a screenshot of your IMEI numbers and store it outside the phone
  • Install QPST_2.7.453.0
  • Enable USB debugging
  • Unlock the bootloader with
    Code:
    fastboot oem unlock
    and, if you don't want to lose your data, use the instructions with Vol- button given here.
  • Reboot with
    Code:
    fastboot reboot
  • Go to the dialer and open the diagnostic COM port by typing: * # * # 7 1 7 7 1 7 # * # *
  • If the code doesn't give you any feedback, type:
    Code:
    adb shell
    su
    setprop sys.usb.config rndis,diag,adb
  • Disconnect and connect the cable, then check the Device Manager for a device qualcomm hs-usb qdloader 9092 (COM[port number]). If the device is not there - reconnect again.
  • Open QFIL.exe and check what port is your phone on. If you can't see any, click on SelectPort and choose your [port number].
  • Choose Tools, then QCN Backup Restore
  • Check Enable Multi-SIM, click Backup QCN and wait for the completion of the current backup (if something goes wrong, you can roll back)
  • The backup file will be in the given folder
  • Run Qualcomm IMEI Rebuilder and select downloaded daisyQCN.qcn file
  • Replace IMEI numbers with your IMEIs and click Rebuild
  • Run QPST.exe. Choose Restore tab, select the rebuilded .qcn file and click Restore

    At this point you might want to check if all is working as it should. If not, proceed:

  • Create a backup of the EFS partitions:
  • Reboot in Fastboot by:
    Code:
    adb reboot bootloader
  • Boot into TWRP by:
    Code:
    fastboot boot twrp-3.2.3-0-daisy.img
    and after requesting the password, do not press anything on the phone
  • On the PC, type the commands in the given order:
    Code:
    adb shell 
    mkdir -p / sdcard / Backup 
    dd if = / dev / block / mmcblk0p39 of = / sdcard / Backup / fsg.bin 
    dd if = / dev / block / mmcblk0p40 of = / sdcard / Backup / modemst1.bin 
    dd if = / dev / block / mmcblk0p41 of = / sdcard / Backup / modemst2.bin 
    dd if = / dev / block / mmcblk0p42 of = / sdcard / Backup / bk5.bin 
    dd if = / dev / block / mmcblk0p49 of = / sdcard / Backup / persist.img 
    dd if = / dev / block / mmcblk0p50 ​​of = / sdcard / Backup / persistbak.img 
    exit 
    adb pull /sdcard/Backup/fsg.bin fsg.bin 
    adb pull /sdcard/Backup/modemst1.bin modemst1.bin 
    adb pull /sdcard/Backup/modemst2.bin modemst2.bin 
    adb pull /sdcard/Backup/bk5.bin bk5.bin 
    adb pull /sdcard/Backup/persist.img persist.img 
    adb pull /sdcard/Backup/persistbak.img persistbak.img
  • Click the recovery button when requesting a password, go to Reboot and select System
  • Check if your backup files are in the ADB & Fastboot folder
  • Reboot the phone in fastboot and type:
    Code:
    fastboot oem edl
  • Flash the ROM via the MiFlash utility or via command line flash_all.bat batch file (don't choose flash_all_and_lock!)
  • Reboot the phone, go through initial setup and check if your SIM cards are working. If not, repeat steps 7 - 12
  • Check Enable Multi-SIM, click Browse and select the rebuilded .qcn file. Press the Restore button
  • When done, reboot into fastboot by:
    Code:
    adb reboot bootloader
  • Repeat steps 18 - 19
  • Run the following commands in turn:
    Code:
    adb shell 
    dd if=/dev/zero of=/dev/block/mmcblk0p40 
    dd if=/dev/zero of=/dev/block/mmcblk0p41 
    exit
  • Repeat step 21 and boot the OS
  • Now everything should work just fine.


  • In case of anything goes wrong, you can restore your backup .qcn file via QFIL (12 - 13) and then reflash your backups
  • Load into TWRP and execute commands:
    Code:
    adb shell 
    dd if = / dev / zero of = / dev / block / mmcblk0p39 
    dd if = / dev / zero of = / dev / block / mmcblk0p40 
    dd if = / dev / zero of = / dev / block / mmcblk0p41 
    dd if = / dev / zero of = / dev / block / mmcblk0p42 
    dd if = / dev / zero of = / dev / block / mmcblk0p49 
    dd if = / dev / zero of = / dev / block / mmcblk0p50 
    exit
    fastboot flash fsg fsg.bin 
    fastboot flash modemst1 modemst1.bin 
    fastboot flash modemst2 modemst2.bin 
    fastboot flash bk5 bk5.bin 
    fastboot flash persist.img 
    fastboot flash persistbak persistbak.img
  • Reboot.


In some rare cases you may still experiencing network problems. If so, check your EFS partition if it doesn't contain some weird looking folders. If yes - just delete them. [need to edit this part later].
 

Attachments

Last edited:

locovibe

Senior Member
Feb 12, 2015
164
25
0
Quick downgrade to Oreo guide:

  1. Backup your data to Google Drive
  2. Remove SIM tray
  3. Go to Settings -> About Phone -> tap Build Number numerous times til it says you have Developer Options
  4. Enable OEM Unlock & USB Debugging
  5. Turn the phone off and turn it back on in Fastboot mode (Vol- + Power buttons)
  6. Type:
    Code:
    fastboot devices 
    fastboot oem unlock
  7. It will erase all your data. You might want to go with Vol- trick if you want to preserve them
  8. Go through the initial setup just to enable Developer Options and USB Debugging again
  9. Turn the phone off and turn it back on in Fastboot mode (Vol- + Power buttons)
  10. Type:
    Code:
    fastboot devices 
    fastboot oem edl
  11. The phone will go blank but it'll be still visible under COM in MiFlash, don't disconnect your phone, just click refresh
  12. Unpack the ROM image of your choice twice (you have to get to the unpack point where there will be a folder with files in it)
  13. Choose the correct path in MiFlash
  14. By default, MiFlash is set to clean all and lock (flash_all_lock.bat) and while it's EDL process, it doesn't really matter, what option you choose
  15. Flashing will take some time (around 10 min), just go and enjoy a nice cup of tea
  16. When MiFlash says SUCCESS, disconnect the phone and turn it on by pressing Power button (hold it for about 15 sec)
  17. Go through the initial setup and check your connectivity on both SIM cards. They may be swapped, so just look it up how to fix it (step 29), but if the connectivity is good and you don't mind, just leave it
  18. If you choose to leave your bootloader unlocked, just setup your phone
  19. If you want to lock it, restart again in Fastboot mode and type
    Code:
    fastboot devices 
    fastboot oem lock
  20. And again: it will erase all your data. You might want to go with Vol- trick if you want to preserve them
 
Last edited:

locovibe

Senior Member
Feb 12, 2015
164
25
0
Sometimes, at the first boot, when it asks you to insert your SIM cards, it doesn't read them correctly. Just leave the tray with SIMs inserted and restart the phone.
 

Iquram0987

Member
Sep 5, 2019
5
1
3
Qpst software is not installing

I've tried with different versions but reaults are the dame...it says installation incimplete due to an error....what to do niw bro. ?!?
 

terrorsource

Member
May 6, 2008
21
1
0
As posted in my own topic where you replied: https://forum.xda-developers.com/showpost.php?p=80681201&postcount=9

Your manual needs some work though.

QPST is not needed, only QFIL should be enough.

Latest QFI: https://androidmtk.com/download-qual...ge-loader-qfil
Enable Multi-SIM is not in all versions. I've used v2.0.1.9
Restoring QCN with this version can take a while. DO NOT USE PC until done!

8. daisy_sprout:/ $ su
/system/bin/sh: su: not found
127|daisy_sprout:/ $ setprop sys.usb.config rndis,diag,adb
setprop: failed to set property 'sys.usb.config' to 'rndis,diag,adb'

16. is not "QPST.exe" but "QFIL.exe"

20. 21. 22. not needed. directly went to 23 from 19.
stopped at 27, rebooted phone, IMEI's are back. Did not proceed with the manual any further.
 

julianfairfax

Senior Member
May 28, 2019
58
5
18
For anyone still watching this thread, I have some questions and tips. I followed this guide once and I recommend downgrading to the first version of Oreo, then flashing the new QCN file with your IMEI numbers. After that you should probably backup your modem/persist partitions with TWRP. Ok, question time. I seem to lose my IMEI after wiping modemst1 and modemst2. Is this normal or not? Is there anything I can do to fix it aside from restoring a backup? And also, what would happen to my IMEI and data if I were to restore the modemst1 and modemst2 files from the download? I presume those are a backup of someone's own IMEI, as is the QCN.
 

danish7867867

New member
Apr 3, 2020
1
0
0
Hello guys.
I am in trouble about Mi a2 lite.

Mi a2 lite not start after flashing and continue running start screen .
I run this command without backup and flash the software.
Code:
adb shell
dd if = / dev / zero of = / dev / block / mmcblk0p39
dd if = / dev / zero of = / dev / block / mmcblk0p40
dd if = / dev / zero of = / dev / block / mmcblk0p41
dd if = / dev / zero of = / dev / block / mmcblk0p42
dd if = / dev / zero of = / dev / block / mmcblk0p49
dd if = / dev / zero of = / dev / block / mmcblk0p50
exit.

Please help me if any one know in this regard.
[email protected]
Sorry for my English..
 

alexbesn

Member
Feb 17, 2011
28
0
0
Awesome solution that solved my network issues after downgrading from Pie to Oreo.

It's not really clear in the guide, I did all the steps 1 to 15 while my I was under Pie and then executed step 16 (restoring .qcn file) after flashing Oreo.