Ruined my modem partition... Please help

Search This thread

m.hashem

Member
Jan 8, 2012
17
3
i downloaded factory image of 7.12.29 oreo
i used flash_factory.bat
it reflashed partitioning
apparently it had a command "fastboot flash modem_a NON-HLOS.bin"
the NON-HLOS.bin file does not exist in images folder nor in any fastboot rom
now i dont have any connectivity... signal.. wifi etc..

can anybody provide NON-HLOS.bin file for the A1
 
Last edited:

hugomoya

Senior Member
Apr 14, 2011
69
34
San Juan
Hello,

Inside the fastboot ROM file "tissot_images_7.12.19_20171219.0000.00_7.1_d39fa89aaf.tgz" (Nougat 7.1.2) ... in the file "flash_all_lock_crc.bat" for example, these lines appear:

fastboot %* flash modem_a %~dp0images\modem.img || @ECHO "Flash modem_a error" && exit /B 1
fastboot %* flash modem_b %~dp0images\modem.img || @ECHO "Flash modem_b error" && exit /B 1

It seems that the file is called "modem.img", not "NON-HLOS.bin".

May be?

Regards!

PS: Sorry for my English!
 
  • Like
Reactions: Radwan Selo

m.hashem

Member
Jan 8, 2012
17
3
i managed to flash all images from fast boot to partitions manually step by step

except something called fsg and persist partitions
which i managed to flash through twrp using dd command via terminal

now it boots but i dont have imei number "says imei number unknown"
and it reboots after less than a minute

i read something about qcn file restore and editing from another mi A1
and that i can edit it to put my imei numbers back


anybody please provide a valid qcn number and how can i restore it
 

Rohit99

Senior Member
Jan 23, 2014
126
112
Bengaluru
i managed to flash all images from fast boot to partitions manually step by step

except something called fsg and persist partitions
which i managed to flash through twrp using dd command via terminal

now it boots but i dont have imei number "says imei number unknown"
and it reboots after less than a minute

i read something about qcn file restore and editing from another mi A1
and that i can edit it to put my imei numbers back


anybody please provide a valid qcn number and how can i restore it


if it is under warranty just brick your phone and give it to service centre they will flash it and give you back
 

bangir

Member
Aug 31, 2010
7
2
Kendal
i downloaded factory image of 7.12.29 oreo
i used flash_factory.bat
it reflashed partitioning
apparently it had a command "fastboot flash modem_a NON-HLOS.bin"
the NON-HLOS.bin file does not exist in images folder nor in any fastboot rom
now i dont have any connectivity... signal.. wifi etc..

can anybody provide NON-HLOS.bin file for the A1

i have same problem last night
then i reflash 7.12.19 using miflash 2016.08.30.0
my imei normal again :D
 

gazavn

Senior Member
Oct 10, 2011
68
7
Wow! The file NON-HLOS.bin is the modem for other Xiaomi phone. May be you use a batch file (flash_factory.bat) for other phone, not Mi A1. Please use Mi Flash with right rom.
 

m.hashem

Member
Jan 8, 2012
17
3
modemst1 and modemst2

hey ... i managed to flash the fastboot rom via miflash via hsusb 9008 mode through miflash tool (run as administrator)

the remainig problem is 2 partitions modemst1 and modemst2
which are dev/block/mmcblk0p14 & 15 respectively

can somebody please send me a backup of modemst1 and modemst2

it's doable via twrp

fastboot boot twrp3.1.1.1.img
advanced
terminal
dd if=/dev/block/mmcblk0p14 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p15 of=/sdcard/modemst2.img

i'll flash them back and edit the imei numbers via hex after qcn backup

thanks everybody
 

majamee

Senior Member
Apr 16, 2011
227
186
hey ... i managed to flash the fastboot rom via miflash via hsusb 9008 mode through miflash tool (run as administrator)

the remainig problem is 2 partitions modemst1 and modemst2
which are dev/block/mmcblk0p14 & 15 respectively

can somebody please send me a backup of modemst1 and modemst2

it's doable via twrp

fastboot boot twrp3.1.1.1.img
advanced
terminal
dd if=/dev/block/mmcblk0p14 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p15 of=/sdcard/modemst2.img

i'll flash them back and edit the imei numbers via hex after qcn backup

thanks everybody

I have done some digging in order to assist you to get this fixed. I think I have 2 very hot leads (untested as I don't have any issues with my IMEI):

1. http://www.androidbrick.com/ultimat...agon-xiaomi-mi5-imei-and-baseband-repair-fix/ & http://www.androidbrick.com/ultimate-guide-qualcomm-snapdragon-imei-baseband-repair-fix-part-2/
2. https://androidmtk.com/use-qualcomm-smartphone-write-imei-tool (looks almost to easy, but worth a try?)

Please report your feedback here :)
 

ElKidd

Member
Nov 13, 2009
22
0
i downloaded factory image of 7.12.29 oreo
i used flash_factory.bat
it reflashed partitioning
apparently it had a command "fastboot flash modem_a NON-HLOS.bin"
the NON-HLOS.bin file does not exist in images folder nor in any fastboot rom
now i dont have any connectivity... signal.. wifi etc..

can anybody provide NON-HLOS.bin file for the A1

Same problem here. Phone doesn't work correctly now. Boots, freezes and reboots. :crying:
 

m.hashem

Member
Jan 8, 2012
17
3
persist image problem

https://xiaomifirmware.com/guides-and-tips/restore-persist-partition-xiaomi-mi-a1/
try ghis to restore persist img from twrp see if it fixes the freeze and reboot problem
also download the persist.img from the guide not from a fastboot rom... it should be 32 mb in size

i actually bricked my phone via doing fastboot flash partition partition-both-gpt.bin from fastboot folder then fastvoot reboot.... warning this bricks the phone completely... theres no bootloader now... i gave it to service center... ill take my chances for replacement
 
Last edited:

Byramklc

Senior Member
Apr 2, 2017
124
26
https://xiaomifirmware.com/guides-and-tips/restore-persist-partition-xiaomi-mi-a1/
try ghis to restore persist img from twrp see if it fixes the freeze and reboot problem
also download the persist.img from the guide not from a fastboot rom... it should be 32 mb in size

i actually bricked my phone via doing fastboot flash partition partition-both-gpt.bin from fastboot folder then fastvoot reboot.... warning this bricks the phone completely... theres no bootloader now... i gave it to service center... ill take my chances for replacement

thank you very much broo my device is fixed freezee and reboots problem
 

ElKidd

Member
Nov 13, 2009
22
0
https://xiaomifirmware.com/guides-and-tips/restore-persist-partition-xiaomi-mi-a1/
try ghis to restore persist img from twrp see if it fixes the freeze and reboot problem
also download the persist.img from the guide not from a fastboot rom... it should be 32 mb in size

i actually bricked my phone via doing fastboot flash partition partition-both-gpt.bin from fastboot folder then fastvoot reboot.... warning this bricks the phone completely... theres no bootloader now... i gave it to service center... ill take my chances for replacement

The freeze and reboot problem is fixed. Thanks. Still one problem. IMEI1 is 0 and IMEI2 is null. Anyone has an idea?
 

JoKeRLeE

Senior Member
  • Aug 15, 2016
    282
    171
    Behind You
    Xiaomi Mi 9
    https://www.androidfilehost.com/?fid=673956719939818468

    Replace the IMEi with UR Own IMEI . if not it's illegal to use this QCN

    Password : testnreport

    if you don't know how to change IMEI Using hex editor , try my method . DO NOT use QCN to restore .

    (hex and imei provided in order for u to find n replace)

    i lost my imei n spent me about 6days n 8 hours per day to find a way to fix it .

    actually it's easy to fix the problem .

    My own method

    1. download the older rom (7.8.23) Link
    2. Use flash_all.bat
    3.reboot into fastboot mode , erase modemst1 and modemst2 .
    fastboot erase modemst1
    fastboot erase modemst2
    4. reboot
    5. go to phone , enter *#*#717717#*#*
    6.got to settings enable USB Debugging (ADB)
    7. disconnect your phone n connect it back
    8.Use WriteDualIMEI(W+G_eMMC) Remember run as administrator , enter your IMEI .
    9.if success , go to phone enter *#*#717717#*#* to disable the diag port
    10. reboot
    Done .
     
    Last edited:

    Top Liked Posts

    • There are no posts matching your filters.
    • 2
      hey ... i managed to flash the fastboot rom via miflash via hsusb 9008 mode through miflash tool (run as administrator)

      the remainig problem is 2 partitions modemst1 and modemst2
      which are dev/block/mmcblk0p14 & 15 respectively

      can somebody please send me a backup of modemst1 and modemst2

      it's doable via twrp

      fastboot boot twrp3.1.1.1.img
      advanced
      terminal
      dd if=/dev/block/mmcblk0p14 of=/sdcard/modemst1.img
      dd if=/dev/block/mmcblk0p15 of=/sdcard/modemst2.img

      i'll flash them back and edit the imei numbers via hex after qcn backup

      thanks everybody

      I have done some digging in order to assist you to get this fixed. I think I have 2 very hot leads (untested as I don't have any issues with my IMEI):

      1. http://www.androidbrick.com/ultimat...agon-xiaomi-mi5-imei-and-baseband-repair-fix/ & http://www.androidbrick.com/ultimate-guide-qualcomm-snapdragon-imei-baseband-repair-fix-part-2/
      2. https://androidmtk.com/use-qualcomm-smartphone-write-imei-tool (looks almost to easy, but worth a try?)

      Please report your feedback here :)
      2
      https://www.androidfilehost.com/?fid=673956719939818468

      Replace the IMEi with UR Own IMEI . if not it's illegal to use this QCN

      Password : testnreport

      if you don't know how to change IMEI Using hex editor , try my method . DO NOT use QCN to restore .

      (hex and imei provided in order for u to find n replace)

      i lost my imei n spent me about 6days n 8 hours per day to find a way to fix it .

      actually it's easy to fix the problem .

      My own method

      1. download the older rom (7.8.23) Link
      2. Use flash_all.bat
      3.reboot into fastboot mode , erase modemst1 and modemst2 .
      fastboot erase modemst1
      fastboot erase modemst2
      4. reboot
      5. go to phone , enter *#*#717717#*#*
      6.got to settings enable USB Debugging (ADB)
      7. disconnect your phone n connect it back
      8.Use WriteDualIMEI(W+G_eMMC) Remember run as administrator , enter your IMEI .
      9.if success , go to phone enter *#*#717717#*#* to disable the diag port
      10. reboot
      Done .
      2
      How u get imei backup of qcn

      Sent from my Mi A1 using Tapatalk

      I Successfully restored my IMEI by trying all the method ,( if you don't want to use the qcn , follow my given method) and i just replace my IMEI with the tools n backup from it . i also changed my IMEI using UltraEdit with random IMEI before upload
      1
      Hello,

      Inside the fastboot ROM file "tissot_images_7.12.19_20171219.0000.00_7.1_d39fa89aaf.tgz" (Nougat 7.1.2) ... in the file "flash_all_lock_crc.bat" for example, these lines appear:

      fastboot %* flash modem_a %~dp0images\modem.img || @ECHO "Flash modem_a error" && exit /B 1
      fastboot %* flash modem_b %~dp0images\modem.img || @ECHO "Flash modem_b error" && exit /B 1

      It seems that the file is called "modem.img", not "NON-HLOS.bin".

      May be?

      Regards!

      PS: Sorry for my English!
      1
      Unfortunately it impossible to restore ur orginal imei and wifi Bluetooth mac

      There is one option u can do only
      U need a backup from efs partition(same phone) and rooted rom
      Restore the efs in twrp and then go to /efs (make sure it is mounted and edit the file containing the 2 imei to ur original imei and edit mac of Bluetooth and wifi to random mac and reboot
      done.
      Option 2 (very hard)
      If u are a linux user (like me)
      U can boot in twrp and use adb and make backup of ur efs partition using dd (there is duel efs partition in every phone)
      And then try to recover ur data from this backup