How To Guide [WIN/MAC/LINUX][GUIDE] Moto G Stylus 5G Firmware Flashing / Restoration Guide

Search This thread

Ajpia666

New member
Oct 2, 2021
3
0
No, now it's in a bad state.
(bootloader) kernel: uefi
(bootloader) version-bootloader: MBM-3.0-uefi-32fe46e6f30-210924
(bootloader) product: denver
(bootloader) board: denver
(bootloader) secure: yes
(bootloader) hwrev: PVT
(bootloader) radio: NA
(bootloader) storage-type: UFS
(bootloader) emmc: N/A
(bootloader) ufs: 128GB SKhynix H9HQ15ACPMBDAR FV=A002 WB=2048
(bootloader) ram: 4GB SKHYNIX LP4x DIE=16Gb M5-M8=06 06 00 11
(bootloader) cpu: SM_MANNAR 1.1
(bootloader) serialno: ZY22CXP7C2
(bootloader) cid: 0x0032
(bootloader) channelid: 0x85
(bootloader) uid: B6D05321
(bootloader) securestate: flashing_locked
(bootloader) factory-modes: disabled
(bootloader) verity-state: enforcing (0)
(bootloader) iswarrantyvoid: yes
(bootloader) max-download-size: 788213760
(bootloader) reason: Reboot mode set to fastboot
(bootloader) imei: 3l
(bootloader) imei2:
(bootloader) meid:
(bootloader) date: 08-05-2021
(bootloader) sku: XT2131-1
(bootloader) carrier_sku: XT2131-1
(bootloader) battid: SB18D00294
(bootloader) battery-voltage: 3185
(bootloader) iccid:
(bootloader) cust_md5:
(bootloader) max-sparse-size: 268435456
(bootloader) poweroffalarm: 0
(bootloader) ro.carrier: tmo
(bootloader) ro.build.fingerprint[0]: motorola/denver_global/denver:11/R
(bootloader) ro.build.fingerprint[1]: RE31.Q2-11-52-4/9f1c85:user/releas
(bootloader) ro.build.fingerprint[2]: e-keys
(bootloader) ro.build.version.qcom: LA.UM.9.16.r1-03500-MANNAR.0
(bootloader) version-baseband: M4350_HI405_19.533.01.88R DENVER_TMO_CUST
(bootloader) kernel.version[0]: Linux version 5.4.61-moto-g3c7018a34cf7
(bootloader) kernel.version[1]: ([email protected]) (Android (6443078
(bootloader) kernel.version[2]: based on r383902) clang version 11.0.1
(bootloader) kernel.version[3]: (https://android.googlesource.com/toolch
(bootloader) kernel.version[4]: ain/llvm-project b397f81060ce6d701042b78
(bootloader) kernel.version[5]: 2172ed13bee898b79), LLD 11.0.1 (/buildbo
(bootloader) kernel.version[6]: t/tmp/tmp6_m7QH b397f81060ce6d701042b782
(bootloader) kernel.version[7]: 172ed13bee898b79)) #1 SMP PREEMPT Fri Se
(bootloader) kernel.version[8]: p 24 12:20:09 CDT 2021
(bootloader) git:xbl: MBM-3.0-uefi-557c979c0-210924
(bootloader) git:xbl_config: MBM-3.0-uefi-557c979c0-210924
(bootloader) git:abl: MBM-3.0-uefi-32fe46e6f30-210924
(bootloader) git:rpm: MBM-3.0-uefi-1573f88f-210924
(bootloader) git:tz: MBM-3.0-uefi-ecdb0764-210924
(bootloader) git:hyp: MBM-3.0-uefi-ecdb0764-210924
(bootloader) git:devcfg: MBM-3.0-uefi-ecdb0764-210924
(bootloader) git:keymaster: MBM-3.0-uefi-97310169-210924
(bootloader) git:storsec: MBM-3.0-uefi-97310169-210924
(bootloader) git:uefisecapp: MBM-3.0-uefi-97310169-210924
 

sd_shadow

Recognized Contributor / XDA Welcome Team
Sep 21, 2011
18,618
2
9,242
South Dakota
goo.gl
Motorola Droid X
Amazon Fire
As embarrassing as it is I gotta be honest I relocked it after seeing no valid operating system thinking it might reset it and reinstall firmware. Obviously I was incorrect 😅
Try flashing the gpt.bin with fastboot
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot oem fb_mode_clear
fastboot reboot bootloader
then try LMSA again
 

itzimeow

Member
Mar 10, 2014
25
1
Hello. I've been out of the Android flashing game for a while.

I got a Boost Mobile variant that I'm trying to flash the T-Mobile firmware to. The flashfile.bat appears to return that all commands ran successfully. After booting into the phone, the Boost Mobile app still auto downloads, the baseband still appears to be Boost, and the software channel is still Dish. It appears the flash was not successful. I've done this with a locked bootloader and I just unlocked my bootloader with the same issue.

Is this to be expected? Thank you.
 

secadaENY

New member
Mar 17, 2019
1
0
Sorry but does anyone know how to get in edl mode to flash a blank file. The phone is bricked and won't show in fastboot. Phone front led just blinks when it is plugged in USB.
 

magus7091

Senior Member
Jun 27, 2011
102
36
Part 4

Linux Live CD Method

I have created a custom Live CD with all the tools needed to maintain and compile software/firmware for Android devices. This is what I use to compile my kernels, boot images, and restore my devices using fastboot. It is also pre-configured with the necessary tools to compile AOSP and many other ROMs. A complete list of ALL software packages and changes from the Lubuntu base is available in the repo.
I was going to try to download the APbuntu to run that in order to do the install, but nowhere on your repo is there an ISO to download, or instructions to modify an existing ISO that I can find. Please let me know how to get an APbuntu ISO to do this process, and thank you.
 

cuzimclintsan

New member
Aug 16, 2022
1
0
Hi...I just got this device today. I noticed that there's a boot and a vendor boot ...this might be a dumb question (sorry if so 😄😁) but which should I patch with good ol' Magisk? I've never run into both of these before so figure I better ask first, just to be safe.

Thanks!!
 

greenleaf10

Senior Member
Oct 7, 2010
62
3
Indianapolis, IN
Is there anyway to dirty flash this firmware? I read somewhere online that suggested edit the flashfile.xml file and delete <step operation="erase" partition="userdata"/>. I did that. Flash was successful, but when the phone rebooted, it was not able to boot, and I was presented with a "Factory Reset" option. Choosing "Factory Reset" allowed me to boot without any issues, but all my apps and data are gone.

My phone is a Cricket version (2021). I am no longer with Cricket and hence no more OTA. So I have been using this approach to update my phone. But each time is a clean flash, which takes a lot of time to setup, even with a backup.
 
Is there anyway to dirty flash this firmware? I read somewhere online that suggested edit the flashfile.xml file and delete <step operation="erase" partition="userdata"/>. I did that. Flash was successful, but when the phone rebooted, it was not able to boot, and I was presented with a "Factory Reset" option. Choosing "Factory Reset" allowed me to boot without any issues, but all my apps and data are gone.

My phone is a Cricket version (2021). I am no longer with Cricket and hence no more OTA. So I have been using this approach to update my phone. But each time is a clean flash, which takes a lot of time to setup, even with a backup.
Use "servicefile.xml" instead of "flashfile.xml".
 

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Also this phone can be unbricked with the moto smart assistant from support.motorola.com, windows only but it will grab the latest firmware from moto instead of a third party that may not have the latest firmware yet
    2
    Part 2

    Windows Method


    To interface with the bootloader, download Android SDK Platform Tools from here. To access the bootloader, shut down your device. Hold Vol - & Power until the bootloader screen shows. From here, you can use fastboot to flash your device.


    Download FlashFile2Bat converter from here. Place 'flashfile.xml' from firmware package into the directory with convertor.bat and run 'converter.bat'. This will output a file 'flashfile.bat' which can be used to re-install the firmware.

    Copy the firmware files into the Platform Tools folder and run 'flashfile.bat'!
    1
    Part 1


    Join my Telegram!

    Device Profile:
    Code:
    Disclaimer: Following these instructions -MAY- void the warranty (if you haven't already) and I am not responsible for anything that happens to your phone. Do it at your own risk.

    I am writing this because on my first day of owning the device, I somehow ran into an error stating "No valid operating system could be found."

    If you can get into fastboot mode, this guide is for you. If not, PM me and we'll work through that together so I can write up a guide for that as well.

    boot_red2.png

    ALL VARIANTS:

    ATT:

    Boost:

    Cricket:

    RETUS:

    TMO:

    Tracfone:
    1
    No dumb questions here! :) RETUS would be the North American retail yes. RETAIL would be the global retail version they'd sell everywhere else. Pretty standard for Motorola.
    1
    My bad miss read what you are doing here.