• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

Question How do I recover after re-locking the bootloader?

Search This thread

dary1361

Member
Apr 9, 2021
15
0
I relocked the bootloader using "fastboot oem lock" and I've lost the OS. When I use LMSA and try the rescue option it fails in the Flashing section before it can load the OS image file. It fails every time during Flashings before reaching 50%. Any suggestions?
 

dary1361

Member
Apr 9, 2021
15
0
Try unlock code again
Below I have copied what I get when I try the unlock code.

I cant change OEM unlock setting since the OS wont boot. When I start the device I get "No valid operating system could be found. The device will not boot."

PS D:\platform-tools> .\fastboot oem unlock "UNIQUE_KEY"
(bootloader) Check 'OEM unlocking' in Android Settings > Developer
(bootloader) Options
FAILED (remote: '')
fastboot: error: Command failed
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,872
1
8,433
South Dakota
goo.gl
Motorola Droid X
Moto X4
Below I have copied what I get when I try the unlock code.

I cant change OEM unlock setting since the OS wont boot. When I start the device I get "No valid operating system could be found. The device will not boot."

PS D:\platform-tools> .\fastboot oem unlock "UNIQUE_KEY"
(bootloader) Check 'OEM unlocking' in Android Settings > Developer
(bootloader) Options
FAILED (remote: '')
fastboot: error: Command failed
Try flashing stock manually with fastboot
 

dary1361

Member
Apr 9, 2021
15
0
Try flashing stock manually with fastboot
I followed the video and created the "servicefile.bat" file. But when I run it, I get the below message. All the flash commands fail. Is it a bootloader locked issue? But the fastboot unlock command doesn't work and the OS does not load, for me to unlock.

D:\RSD_Lite_v6.2.4\GUAMNA_RETAIL_QZAS30.Q4_39_35_4_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml>echo off
max-sparse-size: 268435456
Finished. Total time: 0.004s
OKAY [ 0.002s]
Finished. Total time: 0.003s
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
.
.
.
 
Last edited:

sd_shadow

Recognized Contributor
Sep 21, 2011
17,872
1
8,433
South Dakota
goo.gl
Motorola Droid X
Moto X4
I followed the video and created the "servicefile.bat" file. But when I run it, I get the below message. All the flash commands fail. Is it a bootloader locked issue? But the fastboot unlock command doesn't work and the OS does not load, for me to unlock.

D:\RSD_Lite_v6.2.4\GUAMNA_RETAIL_QZAS30.Q4_39_35_4_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml>echo off
max-sparse-size: 268435456
Finished. Total time: 0.004s
OKAY [ 0.002s]
Finished. Total time: 0.003s
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
.
.
.
What does getvar all say? (remove imei before posting)
Code:
fastboot getvar all
 

dary1361

Member
Apr 9, 2021
15
0
Here is the result.

PS D:\platform-tools> .\fastboot getvar all
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-guamna_retail-bfe8cf6b47-210204
(bootloader) product: guamna
(bootloader) board: guamna
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: GWLC
(bootloader) storage-type: eMMC
(bootloader) emmc: 32GB SKHYNIX hB8aP> RV=08 PV=03 FV=0000000034303030
(bootloader) ufs: N/A
(bootloader) ram: 3GB SKHYNIX LP4x DIE=12Gb M5-M8=06 05 00 0D
(bootloader) cpu: SM_KAMORTA 1.0
(bootloader) serialno: **********
(bootloader) cid: ******
(bootloader) channelid: 0x8d
(bootloader) uid: ***********
(bootloader) securestate: flashing_locked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (0)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 798722048
(bootloader) reason: Volume down key pressed
(bootloader) imei: ***************
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 12-17-2020
(bootloader) sku: XT2093-4
(bootloader) carrier_sku: XT2093-4
(bootloader) battid: SB18C77591
(bootloader) battery-voltage: 4054
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: retus
(bootloader) ro.build.fingerprint[0]: motorola/guamna_retail/guamna:10/Q
(bootloader) ro.build.fingerprint[1]: ZAS30.Q4-39-35-2/87822e:user/relea
(bootloader) ro.build.fingerprint[2]: se-keys
(bootloader) ro.build.version.qcom: LA.UM.8.15.r1-06600-KAMORTA.0
(bootloader) version-baseband: HA10_18.534.02.52R GUAMNA_GWLC_CUST
(bootloader) kernel.version[0]: Linux version 4.19.95-perf+ ([email protected]
(bootloader) kernel.version[1]: oid-build) (clang version 8.0.16 for And
(bootloader) kernel.version[2]: roid NDK) #1 SMP PREEMPT Thu Feb 4 01:17
(bootloader) kernel.version[3]: :32 CST 2021
(bootloader) git:xbl: MBM-3.0-guamna_retail-9304f2ad5-210204
(bootloader) git:xbl_config: MBM-3.0-guamna_retail-9304f2ad5-210204
(bootloader) git:abl: MBM-3.0-guamna_retail-bfe8cf6b47-210204
(bootloader) git:rpm: MBM-3.0-guamna_retail-6b0a297-210204
(bootloader) git:tz: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:hyp: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:devcfg: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:keymaster: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:storsec: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:uefisecapp: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:prov: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:qupfw: MBM-3.0-guamna_retail-f07d142-210204
(bootloader) frp-state: protected (77)
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 0
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: yes
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: yes
(bootloader) slot-retry-count:_a: 6
(bootloader) slot-retry-count:_b: 0
(bootloader) logical-block-size: 0x200
(bootloader) erase-block-size: 0x200
(bootloader) is-userspace: no
(bootloader) pcb-part-no: ***********
(bootloader) primary-display: hlt_hx83102d_video_display
(bootloader) secondary-display:
all: listed above
Finished. Total time: 0.216s
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,872
1
8,433
South Dakota
goo.gl
Motorola Droid X
Moto X4
Here is the result.

PS D:\platform-tools> .\fastboot getvar all
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-guamna_retail-bfe8cf6b47-210204
(bootloader) product: guamna
(bootloader) board: guamna
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: GWLC
(bootloader) storage-type: eMMC
(bootloader) emmc: 32GB SKHYNIX hB8aP> RV=08 PV=03 FV=0000000034303030
(bootloader) ufs: N/A
(bootloader) ram: 3GB SKHYNIX LP4x DIE=12Gb M5-M8=06 05 00 0D
(bootloader) cpu: SM_KAMORTA 1.0
(bootloader) serialno: **********
(bootloader) cid: ******
(bootloader) channelid: 0x8d
(bootloader) uid: ***********
(bootloader) securestate: flashing_locked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (0)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 798722048
(bootloader) reason: Volume down key pressed
(bootloader) imei: ***************
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 12-17-2020
(bootloader) sku: XT2093-4
(bootloader) carrier_sku: XT2093-4
(bootloader) battid: SB18C77591
(bootloader) battery-voltage: 4054
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: retus
(bootloader) ro.build.fingerprint[0]: motorola/guamna_retail/guamna:10/Q
(bootloader) ro.build.fingerprint[1]: ZAS30.Q4-39-35-2/87822e:user/relea
(bootloader) ro.build.fingerprint[2]: se-keys
(bootloader) ro.build.version.qcom: LA.UM.8.15.r1-06600-KAMORTA.0
(bootloader) version-baseband: HA10_18.534.02.52R GUAMNA_GWLC_CUST
(bootloader) kernel.version[0]: Linux version 4.19.95-perf+ ([email protected]
(bootloader) kernel.version[1]: oid-build) (clang version 8.0.16 for And
(bootloader) kernel.version[2]: roid NDK) #1 SMP PREEMPT Thu Feb 4 01:17
(bootloader) kernel.version[3]: :32 CST 2021
(bootloader) git:xbl: MBM-3.0-guamna_retail-9304f2ad5-210204
(bootloader) git:xbl_config: MBM-3.0-guamna_retail-9304f2ad5-210204
(bootloader) git:abl: MBM-3.0-guamna_retail-bfe8cf6b47-210204
(bootloader) git:rpm: MBM-3.0-guamna_retail-6b0a297-210204
(bootloader) git:tz: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:hyp: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:devcfg: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:keymaster: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:storsec: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:uefisecapp: MBM-3.0-guamna_retail-3b8c7a4-210204
(bootloader) git:prov: MBM-3.0-guamna_retail-9de24c4c-210204
(bootloader) git:qupfw: MBM-3.0-guamna_retail-f07d142-210204
(bootloader) frp-state: protected (77)
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 0
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: yes
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: yes
(bootloader) slot-retry-count:_a: 6
(bootloader) slot-retry-count:_b: 0
(bootloader) logical-block-size: 0x200
(bootloader) erase-block-size: 0x200
(bootloader) is-userspace: no
(bootloader) pcb-part-no: ***********
(bootloader) primary-display: hlt_hx83102d_video_display
(bootloader) secondary-display:
all: listed above
Finished. Total time: 0.216s
You are using this firmware?
https://mirrors.lolinet.com/firmware/moto/guamna/official/RETUS/
XT2093-4_GUAMNA_RETUS_10_QZAS30.Q4-39-35-2_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
 

dary1361

Member
Apr 9, 2021
15
0
I had used the ROM which LMSA recognizes and downloads, which is
GUAMNA_RETAIL_QZAS30.Q4_39_35_4_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml

I also tried with the one displayed after "getvar all" and which you suggested.

XT2093-4_GUAMNA_RETUS_10_QZAS30.Q4-39-35-2_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

I get the same result.

C:\XT2093-4_GUAMNA_RETUS_10_QZAS30.Q4-39-35-2_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>echo off
max-sparse-size: 268435456
Finished. Total time: 0.001s
OKAY [ 0.002s]
Finished. Total time: 0.004s
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
Sending 'bootloader' (13824 KB) OKAY [ 0.359s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) flash permission denied
.
.
.
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,872
1
8,433
South Dakota
goo.gl
Motorola Droid X
Moto X4
I had used the ROM which LMSA recognizes and downloads, which is
GUAMNA_RETAIL_QZAS30.Q4_39_35_4_subsidy_DEFAULT_regulatory_DEFAULT_CFC.xml

I also tried with the one displayed after "getvar all" and which you suggested.

XT2093-4_GUAMNA_RETUS_10_QZAS30.Q4-39-35-2_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

I get the same result.

C:\XT2093-4_GUAMNA_RETUS_10_QZAS30.Q4-39-35-2_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml>echo off
max-sparse-size: 268435456
Finished. Total time: 0.001s
OKAY [ 0.002s]
Finished. Total time: 0.004s
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
Sending 'bootloader' (13824 KB) OKAY [ 0.359s]
Writing 'bootloader' (bootloader) Validating 'bootloader.default.xml'
(bootloader) flash permission denied
.
.
.
Are just using the .bat ?
Try manually entering commands
Code:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
 

dary1361

Member
Apr 9, 2021
15
0
Are just using the .bat ?
Try manually entering commands
Code:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
same

fastboot flash partition gpt.bin
Sending 'partition' (37 KB) OKAY [ 0.003s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
fastboot: error: Command failed
 

dary1361

Member
Apr 9, 2021
15
0
Repeated the manual flash process using a mac system too. Used sudo.

Still getting


sudo ./fastboot flash partition gpt.bin

Password:

Sending 'partition' (37 KB) OKAY [ 0.002s]
Writing 'partition' (bootloader) Validating 'gpt.default.xml'
(bootloader) flash permission denied
(bootloader) Cancelling 'gpt.default.xml'
FAILED (remote: '')
fastboot: error: Command failed

:(

Did I brick the phone? I just re-locked the bootloader!
 
Last edited:
What does getvar all say? (remove imei before posting)
Code:
fastboot getvar all

What does getvar all say? (remove imei before posting)
Code:
fastboot getvar all
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-borneo_retail-bfe8cf6b47-210331
(bootloader) product: borneo
(bootloader) board: borneo
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: NA
(bootloader) storage-type: eMMC
(bootloader) emmc: 64GB MICRON S0J9K8 RV=08 PV=10 FV=0000000000000004
(bootloader) ufs: N/A
(bootloader) ram: 4GB MICRON LP4x DIE=16Gb M5-M8=FF 04 10 10
(bootloader) cpu: SM_KAMORTA_H 1.0
(bootloader) serialno: ZY22BNZWRJ
(bootloader) cid: 0x0032
(bootloader) channelid: 0x97
(bootloader) uid: 753B7C40
(bootloader) securestate: flashing_locked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (3)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 804474880
(bootloader) reason: UTAG bootmode configured as fastboot
(bootloader) imei:
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 01-19-2021
(bootloader) sku: XT2117-4
(bootloader) carrier_sku: XT2117-4
(bootloader) battid: SB18C77591
(bootloader) battery-voltage: 4080
(bootloader) iccid: 8901260971168257655
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: fi
(bootloader) ro.build.fingerprint[0]: motorola/borneo_retail/borneo:10/Q
(bootloader) ro.build.fingerprint[1]: ZBS30.Q4-43-35-2/f8e93:user/releas
(bootloader) ro.build.fingerprint[2]: e-keys
(bootloader) ro.build.version.qcom: LA.UM.8.15.r1-06600-KAMORTA.0
(bootloader) version-baseband: HA10_18.534.02.57p BORNEO_NA_CUST
(bootloader) kernel.version[0]: Linux version 4.19.95-perf+ ([email protected]
(bootloader) kernel.version[1]: oid-build) (clang version 8.0.16 for And
(bootloader) kernel.version[2]: roid NDK) #1 SMP PREEMPT Wed Mar 31 10:1
(bootloader) kernel.version[3]: 4:31 CDT 2021
(bootloader) git:xbl: MBM-3.0-borneo_retail-9304f2ad5-210331
(bootloader) git:xbl_config: MBM-3.0-borneo_retail-9304f2ad5-210331
(bootloader) git:abl: MBM-3.0-borneo_retail-bfe8cf6b47-210331
(bootloader) git:rpm: MBM-3.0-borneo_retail-6b0a297-210331
(bootloader) git:tz: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:hyp: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:devcfg: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:keymaster: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:storsec: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:uefisecapp: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:prov: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:qupfw: MBM-3.0-borneo_retail-f07d142-210331
(bootloader) frp-state: protected (475)
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 0
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: no
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: no
(bootloader) slot-retry-count:_a: 1
(bootloader) slot-retry-count:_b: 7
(bootloader) logical-block-size: 0x200
(bootloader) erase-block-size: 0x200
(bootloader) is-userspace: no
(bootloader) pcb-part-no: SB28C86870
(bootloader) primary-display: tm_ili9881x_video_display
(bootloader) secondary-display:
all: listed above
Finished. Total time: 0.156s
 

sd_shadow

Recognized Contributor
Sep 21, 2011
17,872
1
8,433
South Dakota
goo.gl
Motorola Droid X
Moto X4
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-borneo_retail-bfe8cf6b47-210331
(bootloader) product: borneo
(bootloader) board: borneo
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: NA
(bootloader) storage-type: eMMC
(bootloader) emmc: 64GB MICRON S0J9K8 RV=08 PV=10 FV=0000000000000004
(bootloader) ufs: N/A
(bootloader) ram: 4GB MICRON LP4x DIE=16Gb M5-M8=FF 04 10 10
(bootloader) cpu: SM_KAMORTA_H 1.0
(bootloader) serialno: ZY22BNZWRJ
(bootloader) cid: 0x0032
(bootloader) channelid: 0x97
(bootloader) uid: 753B7C40
(bootloader) securestate: flashing_locked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (3)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 804474880
(bootloader) reason: UTAG bootmode configured as fastboot
(bootloader) imei:
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 01-19-2021
(bootloader) sku: XT2117-4
(bootloader) carrier_sku: XT2117-4
(bootloader) battid: SB18C77591
(bootloader) battery-voltage: 4080
(bootloader) iccid: 8901260971168257655
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: fi
(bootloader) ro.build.fingerprint[0]: motorola/borneo_retail/borneo:10/Q
(bootloader) ro.build.fingerprint[1]: ZBS30.Q4-43-35-2/f8e93:user/releas
(bootloader) ro.build.fingerprint[2]: e-keys
(bootloader) ro.build.version.qcom: LA.UM.8.15.r1-06600-KAMORTA.0
(bootloader) version-baseband: HA10_18.534.02.57p BORNEO_NA_CUST
(bootloader) kernel.version[0]: Linux version 4.19.95-perf+ ([email protected]
(bootloader) kernel.version[1]: oid-build) (clang version 8.0.16 for And
(bootloader) kernel.version[2]: roid NDK) #1 SMP PREEMPT Wed Mar 31 10:1
(bootloader) kernel.version[3]: 4:31 CDT 2021
(bootloader) git:xbl: MBM-3.0-borneo_retail-9304f2ad5-210331
(bootloader) git:xbl_config: MBM-3.0-borneo_retail-9304f2ad5-210331
(bootloader) git:abl: MBM-3.0-borneo_retail-bfe8cf6b47-210331
(bootloader) git:rpm: MBM-3.0-borneo_retail-6b0a297-210331
(bootloader) git:tz: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:hyp: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:devcfg: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:keymaster: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:storsec: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:uefisecapp: MBM-3.0-borneo_retail-3b8c7a4-210331
(bootloader) git:prov: MBM-3.0-borneo_retail-9de24c4c-210331
(bootloader) git:qupfw: MBM-3.0-borneo_retail-f07d142-210331
(bootloader) frp-state: protected (475)
(bootloader) current-slot: a
(bootloader) running-bl-slot: _a/_a
(bootloader) running-boot-lun: 0
(bootloader) slot-count: 2
(bootloader) slot-successful:_a: no
(bootloader) slot-successful:_b: no
(bootloader) slot-unbootable:_a: no
(bootloader) slot-unbootable:_b: no
(bootloader) slot-retry-count:_a: 1
(bootloader) slot-retry-count:_b: 7
(bootloader) logical-block-size: 0x200
(bootloader) erase-block-size: 0x200
(bootloader) is-userspace: no
(bootloader) pcb-part-no: SB28C86870
(bootloader) primary-display: tm_ili9881x_video_display
(bootloader) secondary-display:
all: listed above
Finished. Total time: 0.156s
Have you tried LMSA'S rescue option?
 
Have you tried LMSA'S rescue option?
Yes and I will start the download and it will sit at 0% for hours I click on settings then it says program not responding
 

Kenora_I

Senior Member
Jun 12, 2021
1,159
3
227
Ireland
Redmi 7A
Samsung Galaxy A21s
You have to boot to the bootloader screen manually, using the volume + power button trick.

Once on the bootloader screen, when you plug you phone into a PC with ADB installed, it should recognize it.

Then, flash the full stock firmware, from the link above. It's Brazil Marshmallow firmware with December 2016 Security Update. I don't know of any newer right now. You have Brazil XT1225, so that Brazil firmware is compatible with your phone.

But with locked bootloader you have to flash exact same version or newer made for your phone, and you have to enter the commands correctly or you may brick your phone. (When I flashed from Puerto Rico Kitkat to India Lollipop, I messed up. But since my bootloader was unlocked, I just reflashed again, when I realized my mistake.)

If you are not sure of the steps, google Motorola firmware ADB. Here's a couple of excellent tutorials:

How to Manually Official Firmware on any Motorola Device
https://forum.xda-developers.com/dr...force-how-to-manually-flash-official-t3282077

I use this one above. IGNORE where it says you need an unlocked bootloader, because he's talking about cross-region flashing which you are NOT doing. You are flashing your own region firmware.

This one below is by rootjunky and he while he also discusses RSDLite, later in the article he says ADB/fastboot are best as RSDLite can stall.

Motorola Firmware Restore Plus Unbrick
http://www.rootjunky.com/motorola-firmware-restore/

If you get your phone running again, I suggest you unlock the bootloader. There are ways to hide an unlocked bootloader (like Magisk), if that's why you locked it back... But an unlocked bootloader + root makes it YOUR phone and much easier to recover from disasters.