[Nokia 8.3 5G (8V 5G UW) Guides, News, & Discussion] hikari_calyx:
Here's how to reinstall stock firmware, in case you bricked the phone at worst situation.

Assuming you have UFS lun0-lun6 erased, or the phone is currently at Qualcomm 900E which are considered worst situation.

1. Download following firmware, and extract it 3 times - you'll get tons of files inside.

bgt-2210-0-00WW-B01.HMDSW.7z | by Hikari Calyx for Generic Device/Other

Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.

www.androidfilehost.com

2. Use text editor to open rawprogram0_sparse.xml and delete the string super.img inside to save time when doing part 1 flashing.

Use text editor to open rawprogram4.xml and replace the string abl.elf into BGT-abl.elf , then save it.

3. Copy prototype ABL into the firmware directory, and make sure the filename is BGT-abl.elf .

4A. (For Windows users)

Please install QPST 2.7.496 or newer and Qualcomm USB Driver before you proceed. You'd better to erase all other incompatible drivers to increase success rate.

Once installed, please copy QSaharaServer.exe and fh_loader.exe from QPST installation directory (C:\Program Files (x86)\Qualcomm\QPST\bin by default) to firmware directory.

4B. (For macOS / Linux users)

Please install Python EDL from following website:

GitHub - bkerler/edl: Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :)

Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :) - bkerler/edl

github.com

5. If your phone is currently at 900E, you must disassemble the phone by opening the back cover and make sure the motherboard is exposed.

Disconnect the battery, use a pair of tweezers to short the test point, then connect your phone to PC. Using USB 2.0 port is strongly recommended for best stability.

If you're using PC that only has USB 3.1 port you may like encounter USB port throttling issue. In this case you must buy an USB hub as workaround.

To check if your phone is properly connected:

(For Windows users)

Please open Device Manager and check if your phone is listed as Qualcomm HS-USB QDLoader 9008 / Qualcomm HS-USB Diagnostics 9008. If not you need to disconnect the phone, short the test point and connect the phone to PC again. Once it's listed you can remove the tweezer.

(For macOS / Linux users)

Please execute this command:

lsusb

and see if a device started from 05C6:9008 is listed. If yes, you can remove the tweezer and proceed to next step.

6A. (For Windows users)

Please check the COM port in Device Manager, assuming the COM port number is 8.

Open a Command Prompt or PowerShell window at directory where you have tons of firmware files extracted.

Execute this command (replace the COM port number to actual COM port number you see in Device Manager)

.\QSaharaServer -p \\.\COM8 -s 13:prog_firehose_ddr.elf

If you see a message says image uploaded successfully, you can proceed to next step.

Execute this command to upload rawprogram XML configuration:

.\fh_loader --port=\\.\COM8 --search_path=. --sendxml=rawprogram0_sparse.xml,rawprogram1.xml,rawprogram2.xml,rawprogram3.xml,rawprogram4.xml,rawprogram5.xml,rawprogram6.xml --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=UFS

Wait for image files being uploaded, now write patch XML configuration:

.\fh_loader.exe --port=\\.\COM8 --search_path=. --sendxml=patch0.xml,patch1.xml,patch2.xml,patch3.xml,patch4.xml,patch5.xml,patch6.xml --noprompt --showpercentagecomplete --zlpawarehost=1 --memoryname=UFS

Once these commands are executed successfully, you can disconnect the phone, reconnect the battery and power it on.

Your phone should boot straight into Fastboot mode. If it doesn't boot the battery might be drained, recharge it a little bit before you proceed.

6B. (For macOS / Linux users)

Assuming you have Python EDL installed properly.

Open a terminal under the directory where you have firmware extracted, and execute this command:

edl qfil rawprogram0_sparse.xml,rawprogram1.xml,rawprogram2.xml,rawprogram3.xml,rawprogram4.xml,rawprogram5.xml,rawprogram6.xml patch0.xml,patch1.xml,patch2.xml,patch3.xml,patch4.xml,patch5.xml,patch6.xml /path/to/where/firmware/images/arelocated/ --memory=ufs --loader=prog_firehose_ddr.elf

Wait for image files being uploaded. If the flashing procedure is throttling, you may want to execute this command before connecting phone with test point shorted.

Once this command is executed successfully, you can disconnect the phone, reconnect the battery and power it on.

Your phone should boot straight into Fastboot mode. If it doesn't boot the battery might be drained, recharge it a little bit before you proceed.

7. Reinstall all other partitions with Fastboot command.

If you're Windows user, please DO NOT USE Minimal ADB and Fastboot, but use this instead: https://developer.android.com/studio/releases/platform-tools

fastboot flash partition:0 gpt_both0.bin
fastboot --set-active=a reboot-bootloader
fastboot flash xbl xbl.elf
fastboot flash xbl_config xbl_config.elf
fastboot flash abl abl.elf
fastboot flash tz tz.mbn
fastboot flash hyp hyp.mbn
fastboot flash devcfg devcfg.mbn
fastboot flash storsec storsec.mbn
fastboot flash pwinfo pwinfo.img
fastboot flash bluetooth BTFM.bin
fastboot flash modem NON-HLOS.bin
fastboot flash core_nhlos Core_NON-HLOS.bin
fastboot flash dsp dspso.bin
fastboot flash logfs logfs_ufs_8mb.bin
fastboot flash keymaster km4.mbn
fastboot flash featenabler featenabler.mbn
fastboot flash toolsfv tools.fv
fastboot flash metadata metadata.img
fastboot flash aop aop.mbn
fastboot flash qupfw qupv3fw.elf
fastboot flash imagefv imagefv.elf
fastboot flash uefisecapp uefi_sec.mbn
fastboot flash multiimgoem multi_image.mbn
fastboot flash vbmeta_system vbmeta_system.img
fastboot flash vbmeta vbmeta.img
fastboot flash dtbo dtbo.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
fastboot flash super super.img
fastboot flash boot boot.img
fastboot flash persist persist.img

By doing this will allow your phone boot as the bare minimal situation, but not ideally functional.

Next you must restore critical partitions you have backed up before.

fastboot erase fsc
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fs_image.img
fastboot flash elableinfo /path/to/bgt-critical/elableinfo.img
fastboot flash imeilock /path/to/bgt-critical/imeilock.img
fastboot flash persist /path/to/bgt-critical/persist.img
fastboot flash oemowninfo /path/to/bgt-critical/oemowninfo.img
fastboot reboot

8. Once your phone boots into normal OS, use Magisk to root your phone, and execute this command to enable Qualcomm Diag Port:

adb shell su -c setprop sys.usb.config diag,serial_cdev,rmnet,adb

9. (For Windows users) Use QPST Software Download to restore the QCN/XQCN image you backed up before. Eject SIM before you doing so to prevent issues.

10. (Skip if you're not using Carrier locked TA-1251) Reboot the phone into Fastboot mode and flash simlock partition:

adb reboot bootloader
fastboot flash simlock /path/to/bgt-critical/simlock.img
fastboot reboot

11. Enjoy your fully revived Nokia 8.3.