AlienWolfX / UZ801-USB_MODEM

A repository of information about the 4G LTE USB stick with board version FY_UZ801_3.2.
MIT License
30 stars 4 forks source link

IMEI lost after Flashing UZ801 #9

Closed Irshadsamejo closed 1 week ago

Irshadsamejo commented 3 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0.

Is there any way to fix this

alexandrglm commented 3 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0.

Is there any way to fix this

Yes. If the web GUI does not allow you to restore * nothing, you should restore your modem1st&modemst2 partitions previously backuped!

If there are no backups try QPST Tools (Windows) in order to restore your serials ... QCN files can be edited directly with a hex editor, or using some easy tools for the matter.

Look at this guide, the steps are similar to all Qualcoms. XDA - Fix lost serials ...

But firstly try with the webGUI, and remember not to forget doing full backups before flashing anything.

* Qualcomm chipsets are usually only allowed to be RESTORED (not changed) to its original state. Otherwise, the modem is not available. Cheers.

Irshadsamejo commented 3 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0.

Is there any way to fix this

Yes. If the web GUI does not allow you to restore * nothing, you should restore your modem1st&modemst2 partitions previously backuped!

If there are no backups try QPST Tools (Windows) in order to restore your serials ... QCN files can be edited directly with a hex editor, or using some easy tools for the matter.

Look at this guide, the steps are similar to all Qualcoms. XDA - Fix lost serials ...

But firstly try with the webGUI, and remember not to forget doing full backups before flashing anything.

* Qualcomm chipsets usually are only allowed to be RESTORED (not changed) to its original state. Otherwise, the modem is not available. Cheers.

Hi bro first of all thank you for your reply

I purchased this stick a month ago and it was working fine with 4g signals with good speed for some reasons I wanted to flash OpenWRT so backed up my firmware with the help of Miko tool and Then flashed OpenWRT the file that I flashed was a buggy one and hence my device didn't rebooted then I flashed my stock firmware( not a .bin file there was a list of partitions)back but after flashing this time device struck on red light then I tried different firmwares including the file that you uploaded and another firmware file from @AlienWolfX in both firmwares my device rebooted successfully but shows Server provider's name but not signals and IMEI showing 0

alexandrglm commented 3 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0. Is there any way to fix this

Yes. If the web GUI does not allow you to restore * nothing, you should restore your modem1st&modemst2 partitions previously backuped! If there are no backups try QPST Tools (Windows) in order to restore your serials ... QCN files can be edited directly with a hex editor, or using some easy tools for the matter. Look at this guide, the steps are similar to all Qualcoms. XDA - Fix lost serials ... But firstly try with the webGUI, and remember not to forget doing full backups before flashing anything. * Qualcomm chipsets usually are only allowed to be RESTORED (not changed) to its original state. Otherwise, the modem is not available. Cheers.

Hi bro first of all thank you for your reply

I purchased this stick a month ago and it was working fine with 4g signals with good speed for some reasons I wanted to flash OpenWRT so backed up my firmware with the help of Miko tool and Then flashed OpenWRT the file that I flashed was a buggy one and hence my device didn't rebooted then I flashed my stock firmware( not a .bin file there was a list of partitions)back but after flashing this time device struck on red light then I tried different firmwares including the file that you uploaded and another firmware file from @AlienWolfX in both firmwares my device rebooted successfully but shows Server provider's name but not signals and IMEI showing 0

If you really have a backup of your original firmware, it's much better if it's partition by partition! You just have to flash, either by EDL, by fastboot, or by whatever tool you used to make the backup, the "modem", "modemst1" and "modemst2" partitions.

If this doesn't work for you at all, restore the "fsc" and "fsg" partitions as well.

When working with foreign dumps, you should always do a "frankenstein nand" combining most of the partitions from that foreign dump with your minimum own partitions (modem, modemst1, modemst2 ... fsc, fsg) so that your device doesn't lose its serials.

Hope this helps. Alexandr.

P..S. Which model do you have? What firmware version - what date is it? If bought one month ago, your firmware might be the same I have (2024 Apr, 26 version) or newer! If you feel like using the dumpsys_tool to report your firmware here, remember to remove sensitive data (mac's, ip's, IMEI's, serial, hostname) before sharing. Regards.

alexandrglm commented 3 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0. Is there any way to fix this

Yes. If the web GUI does not allow you to restore * nothing, you should restore your modem1st&modemst2 partitions previously backuped! If there are no backups try QPST Tools (Windows) in order to restore your serials ... QCN files can be edited directly with a hex editor, or using some easy tools for the matter. Look at this guide, the steps are similar to all Qualcoms. XDA - Fix lost serials ... But firstly try with the webGUI, and remember not to forget doing full backups before flashing anything. * Qualcomm chipsets usually are only allowed to be RESTORED (not changed) to its original state. Otherwise, the modem is not available. Cheers.

Hi bro first of all thank you for your reply

I purchased this stick a month ago and it was working fine with 4g signals with good speed for some reasons I wanted to flash OpenWRT so backed up my firmware with the help of Miko tool and Then flashed OpenWRT the file that I flashed was a buggy one and hence my device didn't rebooted then I flashed my stock firmware( not a .bin file there was a list of partitions)back but after flashing this time device struck on red light then I tried different firmwares including the file that you uploaded and another firmware file from @AlienWolfX in both firmwares my device rebooted successfully but shows Server provider's name but not signals and IMEI showing 0

This script can be used with the Bjoern Kerler's EDL tool in order to ERASE and RESTORE your modem's/fsc/fsg. Configure your locals before. You also can use regular fastboot commands too, one by one, even in Windows.

#!/bin/bash

if ! command -v edl_cmd &> /dev/null; then
    echo "ERROR: Check EDL, chroot, python env, etc..."
    exit 1
fi

output_dir="./output" 
edl_cmd="/usr/local/bin/edl" # CONFIRURE YOUR LOCALS EDL BINARY PATH ....  $ which edl 

declare -A partitions=(
    ["modem"]="modem.img" # PUT THE REAL MODEM IMG NAME
    ["modemst1"]="modemst1.img" # PUT THE REAL MODEMST1 IMG NAME
    ["modemst2"]="modemst2.img" # PUT THE REAL MODEMST2 IMG NAME
    ["fsc"]="fsc.img" # PUT THE REAL fsc IMG NAME
    ["fsg"]="fsg.img" # PUT THE REAL fsg IMG NAME
)

for partition in "${!partitions[@]}"; do
    img_file="$output_dir/${partitions[$partition]}"
    if [[ ! -f "$img_file" ]]; then
        echo "ERROR: There's no $img_file to be flashed at $partition."
        exit 1
    fi
done

for partition in "${!partitions[@]}"; do
    img_file="$output_dir/${partitions[$partition]}"
    echo "Erasing $partition ..."
    edl e "$partition"

    echo "Writing $img_file at $partition ..."
    edl w "$partition" "$img_file"
done

echo "Done!"

The same, but using fastboot, copy these partitions and change its extension to .img :

#!/bin/sh

echo "Entering fastboot mode...."
adb reboot bootloader
sleep 5

for x in modem modemst1 modemst2 fsc fsg; do
    fastboot erase ${x} ${x}.img
for x in modem modemst1 modemst2 fsc fsg; do
    fastboot flash ${x} ${x}.img
done
Irshadsamejo commented 2 weeks ago

Hi everyone after flashing stock firmware on UZ801 usb stick version 3.2 i am unavailable to catch 4g signals in web interface IMEI showing 0. Is there any way to fix this

Yes. If the web GUI does not allow you to restore * nothing, you should restore your modem1st&modemst2 partitions previously backuped! If there are no backups try QPST Tools (Windows) in order to restore your serials ... QCN files can be edited directly with a hex editor, or using some easy tools for the matter. Look at this guide, the steps are similar to all Qualcoms. XDA - Fix lost serials ... But firstly try with the webGUI, and remember not to forget doing full backups before flashing anything. * Qualcomm chipsets usually are only allowed to be RESTORED (not changed) to its original state. Otherwise, the modem is not available. Cheers.

Hi bro first of all thank you for your reply

I purchased this stick a month ago and it was working fine with 4g signals with good speed for some reasons I wanted to flash OpenWRT so backed up my firmware with the help of Miko tool and Then flashed OpenWRT the file that I flashed was a buggy one and hence my device didn't rebooted then I flashed my stock firmware( not a .bin file there was a list of partitions)back but after flashing this time device struck on red light then I tried different firmwares including the file that you uploaded and another firmware file from @AlienWolfX in both firmwares my device rebooted successfully but shows Server provider's name but not signals and IMEI showing 0

If you really have a backup of your original firmware, it's much better if it's partition by partition! You just have to flash, either by EDL, by fastboot, or by whatever tool you used to make the backup, the "modem", "modemst1" and "modemst2" partitions.

If this doesn't work for you at all, restore the "fsc" and "fsg" partitions as well.

When working with foreign dumps, you should always do a "frankenstein nand" combining most of the partitions from that foreign dump with your minimum own partitions (modem, modemst1, modemst2 ... fsc, fsg) so that your device doesn't lose its serials.

Hope this helps. Alexandr.

P..S. Which model do you have? What firmware version - what date is it? If bought one month ago, your firmware might be the same I have (2024 Apr, 26 version) or newer! If you feel like using the dumpsys_tool to report your firmware here, remember to remove sensitive data (mac's, ip's, IMEI's, serial, hostname) before sharing. Regards.

Hi bro how to back up firmware in .bin file

alexandrglm commented 2 weeks ago

Hi bro how to back up firmware in .bin file

Backuping using which tool? EDL? Fastboot? Backuping the entire nand flash on a big .bin file, or each partition by partition?

Anyway, it's explained at the AlienWolfX's readme,md.

alexandrglm commented 2 weeks ago

@Irshadsamejo I've heard about Miko tool before, but I've never used it (I don't know if it's a Win-only app). The Bjoern Kerler's EDL tool is my favourite when using Qualcomm' devices.

Those scripts can be used as an fast way to do some stuff directly to device, but the simpler, the better.

EDL commands to make full NAND backup:

$ edl rf name_of_file.bin  --gen-xml       //.bin, .img, it does not care, you'll get a huge block file with entire nand.  "rf" syntax is so intuituve ... read-flash. --gen-xml will make a rawprogram0.xml file, back it up too.

EDL commands to backup partition by partition:

$ edl rl --gen-xml 

Partitions can also be read by using fastboot, but I haven't tested yet if both methods return identical partitions byte by byte.

Again, it doesn't matter which extension the backups have, this doesn't modify a dump in itself. What matters is that the dump is done correctly.

Here is the guide.

Alexandr.

Irshadsamejo commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

AlienWolfX commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

Hello @Irshadsamejo

Did you manage to fix your lost IMEI?.

Ps. I've accidentally edited your comment XD

alexandrglm commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

You should try editing a blank QCN file, but with the IMEI's provided for your device, through QPSTools. There are some QCN blank files for UZ801 dongle and HowTo's here. and here.

It seems they use a typical CH341A programmer to connect to the dongle via serial (Tx, Rx, GND), but really: any Qualcomm (old) device like this can be put into DIAG+AT+MODEM mode over USB to make these modifications:

  1. .Simple EDL mode should be enough.
  2. $ adb shell setprop sys.usb.config diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
  3. Also, try this: http://192.168.100.1/ms.html

It sounds more difficult than it actually is.

P.S.: What @AlienWolfX have asked you for is the key .....Is the IMEI issue still unresolved? Or, are you now unable to access 4G despite having your IMEI restored?

Irshadsamejo commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

Hello @Irshadsamejo

Did you manage to fix your lost IMEI?.

Ps. I've accidentally edited your comment XD

No bro not yet looks like I am going to give up 😞

Irshadsamejo commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

You should try editing a blank QCN file, but with the IMEI's provided for your device, through QPSTools. There are some QCN blank files for UZ801 dongle and HowTo's here. and here.

It seems they use a typical CH341A programmer to connect to the dongle via serial (Tx, Rx, GND), but really: any Qualcomm (old) device like this can be put into DIAG+AT+MODEM mode over USB to make these modifications:

  1. .Simple EDL mode should be enough.
  2. $ adb shell setprop sys.usb.config diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
  3. Also, try this: http://192.168.100.1/ms.html

It sounds more difficult than it actually is.

P.S.: What @AlienWolfX have asked you for is the key .....Is the IMEI issue still unresolved? Or, are you now unable to access 4G despite having your IMEI restored?

Ok thanks i will try this

alexandrglm commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

Hello @Irshadsamejo Did you manage to fix your lost IMEI?. Ps. I've accidentally edited your comment XD

No bro not yet looks like I am going to give up 😞

No sir, don't give it up! You have the tools and ways to do it, here, explained. If one method fails, use another. If a version of QPST doesn't work quite right, try another one (Older versions worked for me, the latest 2.7.x gave me an error). If a Qualcomm driver doesn't work, search a little more and find the ones that do work. Install the drivers in Win in Test Mode.

With all this, you get it.

But if you gonna finally throw it away, give it to me as a gift via airmail! (Lol, just kidding. Just make a fixing plan, and fix it).

Regards.

Irshadsamejo commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

Hello @Irshadsamejo Did you manage to fix your lost IMEI?. Ps. I've accidentally edited your comment XD

No bro not yet looks like I am going to give up 😞

No sir, don't give it up! You have the tools and ways to do it, here, explained. If one method fails, use another. If a version of QPST doesn't work quite right, try another one (Older versions worked for me, the latest 2.7.x gave me an error). If a Qualcomm driver doesn't work, search a little more and find the ones that do work. Install the drivers in Win in Test Mode.

With all this, you get it.

But if you gonna finally throw it away, give it to me as a gift via airmail! (Lol, just kidding. Just make a fixing plan, and fix it).

Regards.

Hahaha thanks bro busy a little bit due to my interview preparation once I will try to get Modem back if can't Then i will send to you although I am living in backward area services like airmail are not available here yet i will try my best 😄

Irshadsamejo commented 2 weeks ago

Thanks bro even though I have .bin file but still i am unable to access 4g network

You should try editing a blank QCN file, but with the IMEI's provided for your device, through QPSTools. There are some QCN blank files for UZ801 dongle and HowTo's here. and here.

It seems they use a typical CH341A programmer to connect to the dongle via serial (Tx, Rx, GND), but really: any Qualcomm (old) device like this can be put into DIAG+AT+MODEM mode over USB to make these modifications:

  1. .Simple EDL mode should be enough.
  2. $ adb shell setprop sys.usb.config diag,diag_mdm,diag_mdm2,qdss,qdss_mdm,serial_cdev,dpl,rmnet,adb
  3. Also, try this: http://192.168.100.1/ms.html

It sounds more difficult than it actually is.

P.S.: What @AlienWolfX have asked you for is the key .....Is the IMEI issue still unresolved? Or, are you now unable to access 4G despite having your IMEI restored?

Ok thanks i will try this

Thanks dear i had made little bit progress thanks for your help earlier there was no option to restore backup qcn But after this method i was able to put device in DIAG mode but still there is a issue i have attached the log file 133755050440193742.txt

AlienWolfX commented 2 weeks ago

Thanks dear i had made little bit progress thanks for your help earlier there was no option to restore backup qcn But after this method i was able to put device in DIAG mode but still there is a issue i have attached the log file

It appears that the error is caused by a missing QMSL_MSVC10R.dll file, have u already tried using another up to date version of the application?.

Also can you check if your device has modem_at you can do so my running adb shell modem_at ATI

Lastly, I'll intentionally erase my IMEI to replicate this issue. This is so we can address it for future recovery if someone, or even us, ends up searching the internet for solutions to this problem. XD

Best regards, Allen

Irshadsamejo commented 2 weeks ago

Thanks dear i had made little bit progress thanks for your help earlier there was no option to restore backup qcn But after this method i was able to put device in DIAG mode but still there is a issue i have attached the log file

It appears that the error is caused by a missing QMSL_MSVC10R.dll file, have u already tried using another up to date version of the application?.

Best regards, Allen

Thanks Allen Which version should I try can you give me the link of that file

AlienWolfX commented 2 weeks ago

Thanks Allen Which version should I try can you give me the link of that file

I'll give an update regarding this once I start my experimentation.

alexandrglm commented 2 weeks ago
AlienWolfX commented 2 weeks ago

Thanks Allen Which version should I try can you give me the link of that file

Hello @Irshadsamejo,

UPDATE

It seems that modem_at is universally present across different versions of the firmware thus the solution to fixing lost IMEI can be solved with modem_at AT+WRIMEI={YOUR_IMEI} Hooray 🎆

[!IMPORTANT] Although setting IMEI works if you flashed a stock dump which is not under your region you'll encounter the UNKNOWN network problem, At the mean time there is no solution to this issue

Best regards, Allen

Irshadsamejo commented 2 weeks ago

Thanks Allen Which version should I try can you give me the link of that file

Hello @Irshadsamejo,

QPST-2.7.437.7z works for me kindly follow this guide mentioned by @alexandrglm it has the download link to all of the software's that you'll be using. Your task involves:

[!IMPORTANT] Carefully do the task one by one and if you have questions feel free to ask

  1. Backing up your QCN (make sure Enable Multi-SIM is selected)
  2. Open your qcn backup with IMEIRebuilder.exe and add your IMEI
  3. Restore your QCN with QPST and reboot your device.

Thanks to both of you There is a little bit progress after installing QPST the earlier error is gone now when I successfully back up my .qcn file i tried to open with IMEI rebuilder tool it's given an error of unhandling but there was an other.qcn file with pre existing IMEI when I flashed this I got IMEI back but its a different one than device's original Imei

Irshadsamejo commented 2 weeks ago

Thanks Allen Which version should I try can you give me the link of that file

Hello @Irshadsamejo,

UPDATE

It seems that modem_at is universally present across different versions of the firmware thus the solution to fixing lost IMEI can be solved with modem_at AT+WRIMEI={YOUR_IMEI} Hooray 🎆

[!IMPORTANT] Although setting IMEI works if you flashed a stock dump which is not covered with your region you'll encounter the UNKNOWN network problem, I think there is a way to solve this, I'll be updating this response once I got my answer.

Best regards, Allen

You are right maybe issues is with firmware

alexandrglm commented 2 weeks ago

[!IMPORTANT] Although setting IMEI works if you flashed a stock dump which is not covered with your region you'll encounter the >UNKNOWN network problem, I think there is a way to solve this, I'll be updating this response once I got my answer.

@AlienWolfX Are there available stock or customs rom for this dongle?

AlienWolfX commented 2 weeks ago

Are there available stock or customs rom for this dongle?

Currently, there are no known stock or custom ROMs available for this dongle. Maybe a deep dive in baidu or some other sites can yield some result that may point to it's original SDK or some custom roms.

Irshadsamejo commented 1 week ago

Are there available stock or customs rom for this dongle?

Currently, there are no known stock or custom ROMs available for this dongle. Maybe a deep dive in baidu or some other sites can yield some result that may point to it's original SDK or some custom roms.

Any update

AlienWolfX commented 1 week ago

Any update

Still looking for a way to change the region

alexandrglm commented 1 week ago

Unlocking the network? Means IMEI issue fixed but modem compromised?

El mié, 13 nov 2024 a las 13:09, Allen Gabrielle Cruiz (< @.***>) escribió:

Any update

Still looking for a way to unlock network

— Reply to this email directly, view it on GitHub https://github.com/AlienWolfX/UZ801-USB_MODEM/issues/9#issuecomment-2473431149, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDNGG5ZDE4ZTJIETBHROXBT2AM6PXAVCNFSM6AAAAABRDN3J4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGQZTCMJUHE . You are receiving this because you were mentioned.Message ID: @.***>

AlienWolfX commented 1 week ago

Unlocking the network? Means IMEI issue fixed but modem compromised?

Yes, the IMEI is fixed, but the downside is that it doesn't recognize the network because he's using a firmware from a different region. I also experimented with this using my dongle. My guess is that it involves the mcfg_sw.mbn file or some other settings.

alexandrglm commented 1 week ago

Sure, assuming you're trying OpenWRT or Debian, you'd choose the appropiate mcfg_sw.mbn file, from the correct region folder, when extracting modem.img data.

I'm glad you solved the imei fix.

El mié, 13 nov 2024 a las 13:59, Allen Gabrielle Cruiz (< @.***>) escribió:

Unlocking the network? Means IMEI issue fixed but modem compromised?

Yes, the IMEI is fixed, but the downside is that it doesn't recognize the network because he's using a firmware from a different region. I also experimented with this using my dongle. My guess is that it involves the mcfg_sw.mbn file or some other settings.

— Reply to this email directly, view it on GitHub https://github.com/AlienWolfX/UZ801-USB_MODEM/issues/9#issuecomment-2473551573, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDNGG5Z4V7XTMTEBGH6CVW32ANEKNAVCNFSM6AAAAABRDN3J4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZTGU2TCNJXGM . You are receiving this because you were mentioned.Message ID: @.***>

AlienWolfX commented 1 week ago

Hello @Irshadsamejo,

Unfortunately I've hit a dead end FailFish, my last test was changing the modem partition but it doesn't work. I guess your now stuck with either OpenWRT or Debian.

Best regards, Allen UncleNox

Irshadsamejo commented 1 week ago

Oh! Very sad Can i still get signals with OpenWRT or debian

AlienWolfX commented 1 week ago

Oh! Very sad Can i still get signals with OpenWRT or debian

@Irshadsamejo Yes, you may use the OpenWRT build under release as it is plug and play.

Closing this now...

Best regards, Allen.

Irshadsamejo commented 1 week ago

Oh! Very sad Can i still get signals with OpenWRT or debian

@Irshadsamejo Yes, you may use the OpenWRT build under release as it is plug and play.

Where is that build

Irshadsamejo commented 1 week ago

My Device (IMEI ) IMEI was not compliment with our telecommunication authority knowing this i have paid the tax for that as well but still can't get signals

AlienWolfX commented 1 week ago

Where is that build

@Irshadsamejo You can find it under releases, alternatively you can click this image

but still can't get signals

If you still can't get signals after this, then it might be time to consider moving on from the device or you can give it to me as a holiday present XD