Flashing Stock Firmware - Tips / Tricks - E 2015 Q&A, Help & Troubleshooting

I've done lots of research on flashing firmware and still have some questions + notes to share.
First off the popular topics on this are often full of incomplete / bad info and broken links.
So RSDLite is the preferred method ? ..instead of manually doing it line by line in a fastboot/mfastboot console or with a .bat file (on Windows)
So.. some misc stuff now that i hope is useful
I noticed the config file for flashing this, XT1527_SURNIA_RETCA_5.0.2_LXI22.50-24.1_cid14_subsidy-TELUS_CFC.xml
loads, "slcf_rev_b_telus_v1.1.nvm" which holds carrier specific data.
Which would be ignored *I think doing it manually.
Also every guide on the web says this line,
mfastboot oem config carrier vzw
vzw is the carrier code for Verizon.. so why do people always flash Verizon info on all stock firmware packages ?
My carrier has code tkpca for Telus.
The info shared across the web (comes from this forum) is sloppy and inaccurate.
For example guides say back up the PDS partition before flashing but you can't.
And i think it's sym linked to a folder called persist (that resides on root)
(you can back it up by using RootExplorer to zip the folder up then copy it out)
There is lots of issues / problems to watch out for..
For example i encountered an error trying to flash Firmware packages with RSDLite.
It would always say "flashing failed on gpt.bin" (the first file to flash)
(supposedly the fix for that is to delete the getvar line)
Also most guides tell you to flash with fastboot or mfastboot (almost the same)
problem is some oem's have an extra sparsechunk file and others don't.
this could lead to some huge problems i bet.. like maybe a bricked phone.
The main problem i encountered was losing my signal after i flashed what some guy here advised.
I got the firmware package installed manually (after RSDLite failed)
But no matter what i couldn't get my phone setup with Telus.
Every time the phone started it launched some activating phone dialog for 30 minutes then fail.
I seen one guy here say he managed to upgrade like what i wanted to do from 5.0.2 to 5.1.1
But he was sort of vague.. saying he did not update the Radio.
So i had tried to use the radio from the stock Telus firmware posted online inserted into the USC or US v5.1 firmware folder but it made no difference re-flashing.
I think what "Radio" means is these two files in the firmware package..
fsg.mbn + NON-HLOS.bin
So i think that other guy i seen here on Telus removed those lines to flash those two radio files then he manually flashed the rest of them i am guessing..
So this is suppose to be my stock package..
XT1527_SURNIA_RETCA_5.0.2_LXI22.50-24.1_cid14_subsidy-TELUS_CFC.xml
It says in, "factory_version_info_cfc.txt"
Build Fingerprint: motorola/surnia_retca/surnia_umts:5.0.2/LXI22.50-24.1/2:user/release-keys
What does the "surnia_umts" part mean guys ?
Because i was told to flash,
SURNIA_USC_5.1_LPI23.29-15_cid9_subsidy-DEFAULT_CFC.xml
(So i could upgrade to v5.1 stock)
And after poking around in the files i think the USC part means USA & Canada ?
But my radio wouldn't work on that for LTE/cdma/auto prl
And this one says
motorola/surnia_usc/surnia_cdma:5.1/LPI23.29-15/18:user/release-keys
notice how it says "surnia_cdma" ?
Then,
SURNIA_RETUS_5.1_LPI23.29-15_cid9_subsidy-DEFAULT_CFC.xml
motorola/surnia_retus/surnia_umts:5.1/LPI23.29-15/19:user/release-keys
Then,
XT1528_SURNIA_VERIZON_5.1_LPI23.29-17_cid2_subsidy-DEFAULT_CFC.xml
motorola/surnia_verizon/surnia_cdma:5.1/LPI23.29-17/18:user/release-keys
So... does the build fingerprint info i posted above indicate different types of Radio connections maybe ?
surnia_cdma -vs- surnia_umts
Because i am suspicious this may be why i failed to fully update to v5.1 (my radio didn't work)
Here is a link to get Firmwares for 5.0.2 and 5.1.1 (for Otus + Surnia)
https://mega.nz/#F!rMIhDLgR!oq5Cz_XbgZLEEysmqoYtcA
Here is the commands to flash with mfastboot..
Code:
mfastboot oem fb_mode_set
mfastboot flash partition gpt.bin
mfastboot flash bootloader bootloader.img
mfastboot flash logo logo.bin
mfastboot flash boot boot.img
mfastboot flash recovery recovery.img
mfastboot flash system system.img_sparsechunk.0
mfastboot flash system system.img_sparsechunk.1
mfastboot flash system system.img_sparsechunk.2
mfastboot flash system system.img_sparsechunk.3
mfastboot flash system system.img_sparsechunk.4
mfastboot flash system system.img_sparsechunk.5
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
mfastboot erase cache
mfastboot erase userdata
mfastboot erase customize
mfastboot oem config carrier vzw
mfastboot oem fb_mode_clear
Note1:
I think you can add the line (below) to above (code/quote) to restart the phone when flashing finishes,
mfastboot reboot
What i like to do is add the following to the last line..
 @pause
Then if you put the quoted lines into a windows .bat file it will pause for you
when it's finished so you can read what happens or save it to file etc
Note2: Some stock firmware use another line so you would need to add below to above code lines.
mfastboot flash system system.img_sparsechunk.6
Open the firmware file you download to see if there is 5 or 6 "sparsechunk" files.
and about this line below..
mfastboot oem config carrier vzw
"vzw" i think means for Verizon so look for your own code.. i think ? (mine is tkpca)
If you want to flash only the radio related files ? it's this below.. i am pretty sure.
Code:
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
There is a lot more i learned while trying to flash my phone with stock Firmware.
I would like us to have a list of MD5 hash's to verify the downloaded .zip's we are sharing too.
Incomplete downloads happen.. always check and always back up as much as you can before flashing !
I used TWRP to make a backup ..it was quick and easy and i needed it and it worked
Here is some hash's i made.. post more if you got 'em guys
- 5.1
SURNIA_RETEU_EU_5.1_xt1524_LPI23.29-15.zip = MD5: b7bae69012df7c47ee370635a49de2d1
SURNIA_RETUS_5.1_LPI23.29-15_cid9_subsidy-DEFAULT_CFC.xml = MD5: 623419f42075a9b8b74c2d833bc4fa2d
SURNIA_USC_5.1_LPI23.29-15_cid9_subsidy-DEFAULT_CFC.xml = MD5: 6053bd6007214b4eb59c5e96c5dd4d7a
XT1528_SURNIA_VERIZON_5.1_LPI23.29-17_cid2_subsidy-DEFAULT_CFC.xml = MD5: 57196e77d89e04a3c6d6358a42563edc
- 5.0.2
XT1527_SURNIA_RETCA_5.0.2_LXI22.50-24.1_cid14_subsidy-TELUS_CFC.xml = MD5: 04f658169a5bc35c295973054ba85b67
There is also a bunch of codes you can enter in the dialer to open hidden menus
(i tested most of them)
*#*#759#*#* = RLZ
*#*#4636#*#* = INFO
*#06# = IMEI
Moto G Hard Reset
How to hard reset Wipe/Reset Data/Profile & internal storage, please use this code: *#*#786#*#*
Open Superuser App
*#*#1234#*#* or *#*#7873778#*#*
Manual Check Update
*#*#2432546#*#*
Motorola Service Menu (CQA Test)
*#*#2486#*#*
Click to expand...
Click to collapse
Lastly people need to be careful with downgrading versions or having locked bootloaders.

I'll try to answer more of your questions when I get off work tonight or tomorrow but in regards to UMTS that is required to get a GSM signal.

[email protected]

Related

SURNIA_RETUS_5.1_LPI23.29-15_cid9_subsidy-DEFAULT_CFC.xml.zip

So i am wondering if any of you out there have flashed that firmware and have been using LTE/cdma with the stock Rom.
I flashed that and i seem to be stuck connecting with GSM.
My phone was not using GSM before i flashed on 5.0.2
After i can't get it to use LTE/cdma..
I tried using the option in the hidden menu *#*#INFO#*#*
To change the setting but it reverts back to GSM every time.
When i flashed it i did not flash the modem related files or kill the modem partitions.
So when i seen the issue i then tried flashing the NHLOS.bin that was in the topic title.
Made no difference.
So i am running the Telus XT1527 5.0.2 modem settings etc.
When i flashed.. i did not flash the new fsg.mbn or NON-HLOS.bin
So in my flash_all.bat i removed these lines..
mfastboot flash modem NON-HLOS.bin
mfastboot erase modemst1
mfastboot erase modemst2
mfastboot flash fsg fsg.mbn
Then like i said earlier when i seen it was on GSM i tried to flash only,
mfastboot flash modem NON-HLOS.bin
Anyone have any thoughts here on this for me ? I am still learning
Thanks for your time guys (and girls)

Unbrick hard bricked Moto G4 amazon prime xt1625

After so many failed attempts I found the way to get my phone a brick. Thanks to the rom "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip".
The method only require simple:
- Tool ADB: http://www.mediafire.com/file/9m1dopcvpmm6zif/adb-setup-1.4.3.exe
- Fastboot+abds: http://www.mediafire.com/file/48gtedd1hlodozz/Herramientas+ADB.rar
- Drivers motorola: http://www.mediafire.com/file/90xvah7a3p4l2m4/MotorolaDeviceManager_2.4.5.exe
- Rom moto g4 amazon prime: https://goo.gl/dK7u4X
- RSDLite6.2.4.zip: http://rootjunkysdl.com/files/Moto G 4th Gen XT1625/Remove Amazon Bloat Ads/RSDLite6.2.4.zip
After having the essential tools unpack the ROM our "moto g4 amazon".
- Install the drivers phone and ads.
- After you've done this step opens RSD lite.
- Having your phone in bootloader as it is important because running fastboot command.
- Locate the place where you unzipped the rom.
- Select the file "xml" flashfile.xml
- After you have selected the "flashfile.xml" file make sure your phone is connected and that your computer recognizes it.
- Click Start.
If you want to run the fastboot command would these
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
I hope it will help save many a 'moto g4 "to be a brick.
AnderGuzmanD said:
After so many failed attempts I found the way to get my phone a brick. Thanks to the rom "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip".
The method only require simple:
- Tool ADB: http://www.mediafire.com/file/9m1dopcvpmm6zif/adb-setup-1.4.3.exe
- Fastboot+abds: http://www.mediafire.com/file/48gtedd1hlodozz/Herramientas+ADB.rar
- Drivers motorola: http://www.mediafire.com/file/90xvah7a3p4l2m4/MotorolaDeviceManager_2.4.5.exe
- Rom moto g4 amazon prime: http://www.filefactory.com/file/sks...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
- RSDLite6.2.4.zip: http://rootjunkysdl.com/files/Moto G 4th Gen XT1625/Remove Amazon Bloat Ads/RSDLite6.2.4.zip
After having the essential tools unpack the ROM our "moto g4 amazon".
- Install the drivers phone and ads.
- After you've done this step opens RSD lite.
- Having your phone in bootloader as it is important because running fastboot command.
- Locate the place where you unzipped the rom.
- Select the file "xml" flashfile.xml
- After you have selected the "flashfile.xml" file make sure your phone is connected and that your computer recognizes it.
- Click Start.
If you want to run the fastboot command would these
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
I hope it will help save many a 'moto g4 "to be a brick.
Click to expand...
Click to collapse
wanted to know if this work for my device
its been bricked and am anew moto user
this the screen appeared
no factory reset or wipe works
herakikoly said:
wanted to know if this work for my device
its been bricked and am anew moto user
this the screen appeared
no factory reset or wipe works
Click to expand...
Click to collapse
this is the screen
AnderGuzmanD said:
After so many failed attempts I found the way to get my phone a brick. Thanks to the rom "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip".
- Rom moto g4 amazon prime: http://www.filefactory.com/file/sks...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
I hope it will help save many a 'moto g4 "to be a brick.
Click to expand...
Click to collapse
Do you have another link to that Rom? FileFactory keeps telling me they are overloaded and it won't let me DL. Side note, I've already tried the 139-64_65 file from https://androidfilehost.com/?w=files&flid=72578 and no luck. Still get stuck at Recovery saying "we have attempted a detect to flash." I'm hoping your ROM link is slight different, because the one I found has oem.img as one file, not two sparsechunks. I'm pretty sure I have a real brick.
brockwitting said:
Do you have another link to that Rom? FileFactory keeps telling me they are overloaded and it won't let me DL. Side note, I've already tried the 139-64_65 file from https://androidfilehost.com/?w=files&flid=72578 and no luck. Still get stuck at Recovery saying "we have attempted a detect to flash." I'm hoping your ROM link is slight different, because the one I found has oem.img as one file, not two sparsechunks. I'm pretty sure I have a real brick.
Click to expand...
Click to collapse
good afternoon friend this afternoon I'll upload to another server to his comodida permitame few hours. regards
herakikoly said:
this is the screen
Click to expand...
Click to collapse
if friend exactly there. regards
FYI, this WORKS. Even though I found like 4 different versions of this ROM and none worked, yours did. Thanks a ton!!!!!
brockwitting said:
FYI, this WORKS. Even though I found like 4 different versions of this ROM and none worked, yours did. Thanks a ton!!!!!
Click to expand...
Click to collapse
It was thanks to a forum user who shared a comment on the file name but did not expect that I could repair it even was it sent for review
AnderGuzmanD said:
It was thanks to a forum user who shared a comment on the file name but did not expect that I could repair it even was it sent for review
Click to expand...
Click to collapse
I did not work,
Please your help with the link to download
regards
brockwitting said:
FYI, this WORKS. Even though I found like 4 different versions of this ROM and none worked, yours did. Thanks a ton!!!!!
Click to expand...
Click to collapse
the order was a pleasure friend was like trying until you get the corresponding ROM to return to life the phone
AnderGuzmanD said:
the order was a pleasure friend was like trying until you get the corresponding ROM to return to life the phone
Click to expand...
Click to collapse
AnderGuzmanD,
help me up the rom you downloaded since the original link does not work
regards
frankml01 said:
AnderGuzmanD,
help me up the rom you downloaded since the original link does not work
regards
Click to expand...
Click to collapse
Good evening friend by tomorrow I upload the link to my account because mega still is rising and modify the one corrupted
Come on, man... First off, you posted this in the wrong subforum. Second, you took my instructions without crediting me (my original post). Third, I already created a post about this (here) and gave full credit to my sources.
beano311 said:
Come on, man... First off, you posted this in the wrong subforum. Second, you took my instructions without crediting me (my original post). Third, I already created a post about this (here) and gave full credit to my sources.
Click to expand...
Click to collapse
And MUCH THAT YOU UPSET MY FRIEND! DO NOT WORRY THAT ARE NOT TO HELP TO WIN FAME!
AnderGuzmanD said:
After so many failed attempts I found the way to get my phone a brick. Thanks to the rom "XT1625_ATHENE_AMAZON_MPJ24.139-64_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip".
The method only require simple:
- Tool ADB: http://www.mediafire.com/file/9m1dopcvpmm6zif/adb-setup-1.4.3.exe
- Fastboot+abds: http://www.mediafire.com/file/48gtedd1hlodozz/Herramientas+ADB.rar
- Drivers motorola: http://www.mediafire.com/file/90xvah7a3p4l2m4/MotorolaDeviceManager_2.4.5.exe
- Rom moto g4 amazon prime: "up to mega" in the meantime http://www.filefactory.com/file/sks...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
- RSDLite6.2.4.zip: http://rootjunkysdl.com/files/Moto G 4th Gen XT1625/Remove Amazon Bloat Ads/RSDLite6.2.4.zip
After having the essential tools unpack the ROM our "moto g4 amazon".
- Install the drivers phone and ads.
- After you've done this step opens RSD lite.
- Having your phone in bootloader as it is important because running fastboot command.
- Locate the place where you unzipped the rom.
- Select the file "xml" flashfile.xml
- After you have selected the "flashfile.xml" file make sure your phone is connected and that your computer recognizes it.
- Click Start.
If you want to run the fastboot command would these
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash dsp adspso.bin
fastboot flash oem oem.img_sparsechunk.0
fastboot flash oem oem.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash system system.img_sparsechunk.7
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
I hope it will help save many a 'moto g4 "to be a brick.
Click to expand...
Click to collapse
just needed to know if it works on all moto g4 having the same problem
f u i .. i had aversion named xt 1625 athene mj24 139 retail 64 65
does your post works on returning my moto 4 to life ..
it stuck in recovery after 2 weeks of usage .. hate to be like that ..
and last thing .. want know if it will receive ota update or not .. pleas be patient cause its the first time to deal with that situation
herakikoly said:
just needed to know if it works on all moto g4 having the same problem
f u i .. i had aversion named xt 1625 athene mj24 139 retail 64 65
does your post works on returning my moto 4 to life ..
it stuck in recovery after 2 weeks of usage .. hate to be like that ..
and last thing .. want know if it will receive ota update or not .. pleas be patient cause its the first time to deal with that situation
Click to expand...
Click to collapse
good morning, so far only it has been tested for amazon prime version of greetings
AnderGuzmanD said:
good morning, so far only it has been tested for amazon prime version of greetings
Click to expand...
Click to collapse
so what can i do .. need help
this definitely worked for me! after searching hours for the solution, and was about to give up and have it sent for repair! OMG.. this is a lifesaver...:
victory::victory::good::good::good:
this helped me too, thank you!!!
tread should be moved to q&a and pinned
AnderGuzmanD said:
And MUCH THAT YOU UPSET MY FRIEND! DO NOT WORRY THAT ARE NOT TO HELP TO WIN FAME!
Click to expand...
Click to collapse
Maybe when you grow up you'll realize that it is still good manners to give credit for the work of someone else.

Upgrading Moto G4 to Android 7 OTA after installing TWRP

So I installed twrp so I could modify my build.prop file. Worked great but no I have the option to upgrade to android 7 which I would like to do.
From what I have read the process involves installing the old bootloader then installing the ota update and re-installing twrp.
Is this correct?
Is there an easier way to do the upgrade without losing every thing on the phone?
If I need to re-install the stock unlocked bootloader where do I find it?
I went to motorola-global-portal.custhelp.com/app/standalone/bootloader/recovery-images to grab the proper stock firmware and flashed the phone. I tried to run the ota update but it failed. Any one have any idea why it would fail? I didn't run the following commands so perhaps it has some thing to do with that?
fastboot erase userdata
fastboot erase cache
fastboot oem lock
Ok so I got this working. The recovery image from motorola was not the one the ota update was looking for so I found the correct firmware version and ran the ota update and it worked. Here is some more info for those that follow.
I have the xt1625 model.
The firmware I used was from here https://androidfilehost.com/?fid=24572369242687085
I used these commands. Ignore the error with the gpt.bin file.
fastboot flash partition gpt.bin
fastboot flash motoboot motoboot.img
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
You could probably skip those last two commands if you wanted to keep your data on the phone but I didnt do that so I cant say for sure.

How to manually update Moto Z2P to NPS26.118-19 (August Security Patch)

Hello all!
So I got tired of waiting for the latest update to hit my phone so I figured I would do it manually. After plenty of experience with Moto phones I gathered that the official RETAIL files should work with all of the GSM versions of the Moto Z2 Play. This is confirmed to work with both XT1710-01 and XT1710-07, but is likely to work with others (but not the US Verizon Model). For those of us who are security minded, this is flashed w/o unlocking your bootloader which means that only Motorola signed images will work, and it also means that you do not need to wipe your data. Woohoo!
As usual, you take full responsibility for anything you do to your phone, but since your bootloader is locked, this should be fairly low risk, barring some sort of power loss mid-flash.
How to:
1. Download & Install Motorola Drivers from XDA.
2. Download & extract stock rom from here.
3. Use mfastboot/fastboot to run the following commands/run the attached .bat file. (Hint: make sure fastboot files are in the same directory as the the ROM files and .bat file).
3a. If you need more help on mfastboot or fastboot, look here.
Code:
echo off
echo -------------------------------------------------------------------------
echo Moto Z2 Play ROM Flash Start
echo -------------------------------------------------------------------------
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot flash dsp adspso.bin
fastboot flash logo logo.bin
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img_sparsechunk.0
fastboot flash system system.img_sparsechunk.1
fastboot flash system system.img_sparsechunk.2
fastboot flash system system.img_sparsechunk.3
fastboot flash system system.img_sparsechunk.4
fastboot flash system system.img_sparsechunk.5
fastboot flash system system.img_sparsechunk.6
fastboot flash oem oem.img
fastboot erase modemst1
fastboot erase modemst2
fastboot erase carrier
fastboot erase DDR
fastboot flash fsg fsg.mbn
fastboot oem fb_mode_clear
echo -------------------------------------------------------------------------
echo Moto Z2 Play ROM Flash End
echo -------------------------------------------------------------------------
pause
fastboot reboot
exit
4. Enjoy!
Hope this helps!
but how is obtained stock rom?
For those of us who are security minded, this is flashed w/o unlocking your bootloader which means that only Motorola signed images will work, and it also means that you do not need to wipe your data. Woohoo!
Click to expand...
Click to collapse
The file you linked to on lolinet isn't signed. You do need to unlock the bootloader to flash it.
timster01 said:
The file you linked to on lolinet isn't signed. You do need to unlock the bootloader to flash it.
Click to expand...
Click to collapse
I had no problem flashing with a locked bootloader. Didn't even have to wipe. What error did you get when you tried to flash?
I am wondering if it works on an XT1710-08 model...

[Evert] [Stock] Firmware - Return to Stock.

[Evert] [Stock] Firmware - Return to Stock.​Disclaimer
I can not be held responsible for any type of problem with your device. This information is for the sole purpose of reporting and is delivered "as is". Only the tests will confirm if everything works well or does not work at all, proceed with caution.
Recommendations.
Make sure to back up all information, device data, and (optional) persistence partitions of the device.
Always use common sense, and confirm that you do not have an error message in the console. Verify that things are done correctly.
Requirements
Make sure that the drivers and everything related to connectivity is working properly. The official Motorola drivers work fine, and the google fastboot drivers too. Look for tutorials on installing the fastboot driver if your computer is not detecting it properly, the tutorials of other moto models (eg moto g5 plus) on the drivers and others work just as well.
All this process spends time and of course the battery of your device, make sure you have a good battery (50+) and stay connected as much as possible.
Make sure you install the right firmware, in other devices from Oreo things are not so tight, in my case, my XT1926-7 device works perfect with a retailUS firmware, but it depends on each one...
All the commands and others are done from the fastboot utility, you can find it in https://developer.android.com/studio/releases/platform-tools.
Process
Download the correct firmware for your device.
Right now there are not many firmware available, as time passes the list will grow.
One of several sites is LOLINET.
https://mirrors.lolinet.com/firmware/moto/evert/official/RETAIL/
(If not already installed, make sure of ..) Install the drivers and download the fastboot utility. And of course, verify that the driver works properly. It will be done later.
Extract the fastboot utility, and the firmware within the same directory.
To verify the connection, enter the bootloader of your device, connect it with the PC. On the PC; run the console, go to the folder where you extracted the fastboot utility, and type fastboot.exe devices, you should see the listed device in the console.
If the connection works correctly and you notice nothing strange, you can start the process.
Open the console in the directory where the fastboot utility is on the firmware files, there should be no more folders inside. (In this case you should adjust the path of the files in the commands). And write the following commands, verify that you do not have errors.:
Warning,
The commands listed below as "optional" do not necessarily have to be executed, but to be completely safe, execute them all, as long as you have the right firmware.
Code:
fastboot getvar max-sparse-size
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img (optional)
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot erase modemst1 (Optional)
fastboot erase modemst2 (Optional)
fastboot flash bluetooth_a BTFM.bin
fastboot flash dsp_a dspso.bin
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash system_a system.img_sparsechunk.0
fastboot flash system_a system.img_sparsechunk.1
fastboot flash system_a system.img_sparsechunk.2
fastboot flash system_a system.img_sparsechunk.3
fastboot flash system_a system.img_sparsechunk.4
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash oem_a oem.img
fastboot flash oem_b oem_other.img
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot erase carrier (Optional)
fastboot erase userdata
fastboot erase ddr
fastboot oem fb_mode_clear
[I][/I]
Press the Power button, and wait a bit.. It will take a few minutes to start.
If you hear "Hello moto", congratulations you are in Stock (and everything "should work fine").
Notes
If your firmware has more or less sparsechunk files (eg, sparsechunk.3 or img_sparsechunk.7), run them all.
The bootloader will remain unlocked.
If all this was helpful, I hope your thanks.
With love by iGor.
And how remove verity Mode enabled?..and a black screen saying phone flashed with different software
IGorMcLven said:
Make sure you install the right firmware, in other devices from Oreo things are not so tight, in my case, my XT1926-7 device works perfect with a retailUS firmware
Click to expand...
Click to collapse
I am looking for an Oreo firmware for dual SIM XT1926-7.
Will all RETAIL version(s) support dual SIM ?
For example, does EVERT_RETAIL_8.0.0_OPWS27.113-92-5 support dual SIM?
rybshik said:
I am looking for an Oreo firmware for dual SIM XT1926-7.
Will all RETAIL version(s) support dual SIM ?
For example, does EVERT_RETAIL_8.0.0_OPWS27.113-92-5 support dual SIM?
Click to expand...
Click to collapse
I have the same phone.
First do this:
Go to settings: tap System, tap about phone and write down which software channel you are on.
It will say something like this:
RETLA
or
TEFCO
or
TEMX
or
TIGCO
Those are the only channels which offer stock roms for the XT1926-7
If your phone is factory unlocked you will probably have to use the RETLA versions.
the on your computer go to:
mirrors . lolinet . com /firmware /moto /evert /official/
You will find the original android 8 stock rom in there:
XT1926-7_EVERT_*YOUR_CHANNEL*_8.0.0_OPWS27.113-89-5_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
Before you flash your phone make sure that you have a backup of :
EFS
and
Persist
partitions.
If those get corrupted or wiped you won´t have carrier signal or wifi once you reboot your phone. trust me it happened to me.
good luck.
Dual SIM XT1926-7: firmware and TWRP issue
lcmp said:
I have the same phone.
Before you flash your phone make sure that you have a backup of :
EFS and Persist partitions
Click to expand...
Click to collapse
Which TWRP version, what exact build file did you use to back up/restore partitions?
Was your TWRP capable of backing up /data partition?
In another tread, I posted that (after Magisk root) the latest twrp-3.3.1-0-evert.img failed to back up the /data partition, but twrp-3.2.3-42-evert.img worked well
rybshik said:
Which TWRP version, what exact build file did you use to back up/restore partitions?
Was your TWRP capable of backing up /data partition?
In another tread, I posted that (after Magisk root) the latest twrp-3.3.1-0-evert.img failed to back up the /data partition, but twrp-3.2.3-42-evert.img worked well
Click to expand...
Click to collapse
For me, it works exactly the opposite.
TWRP 3.2.3 was not able to decrypt the phone data.
But booting temporarily with TWRP 3.3.1-0 would successfully decrypt and backup everything.
TWRP decryption issue
lcmp said:
For me, it works exactly the opposite.
TWRP 3.2.3 was not able to decrypt the phone data.
But booting temporarily with TWRP 3.3.1-0 would successfully decrypt and backup everything.
Click to expand...
Click to collapse
for which firmware build? Pie or Oreo?
In my case, I was able to back up with twrp-3.3.1-0-evert.img before flashing Magisk. And I was able to Magisk-root with twrp-3.3.1-0-evert.img successfully as well.
But once rooted, was NOT able to back up \data partition with twrp-3.3.1-0-evert.img.
So I tried twrp-3.2.3-42-evert.img and it worked.
Is it possible to permanently remove encryption?
rybshik said:
for which firmware build? Pie or Oreo?
Click to expand...
Click to collapse
PIE
rybshik said:
But once rooted, was NOT able to back up \data partition with twrp-3.3.1-0-evert.img.
Click to expand...
Click to collapse
I´m not an expert, but from what i know, You need to have a pin or unlock pattern on your phone. TWRP asks you for it and uses it to decrypt the data partition. Then your backups will succeed.
rybshik said:
Is it possible to permanently remove encryption?
Click to expand...
Click to collapse
I read it´s possible but i´m no expert on the subject. Why would you want to remove encryption? I think its a good feature
lcmp said:
You need to have a pin or unlock pattern on your phone. TWRP asks you for it and uses it to decrypt the data partition.
Click to expand...
Click to collapse
Does TWRP ask for a PIN during back up?
I have not set up any PIN/unlock pattern at all. So TWRP did not ask for it during back up, but just failed to back up , showing an error related to data partition.
Could absence of PIN cause the backup to fail?
rybshik said:
Does TWRP ask for a PIN during back up?
Click to expand...
Click to collapse
What I noticed is that when TWRP 3.3 boots, it asks for your pin or unlock pattern in order to use that as the credential to get the decryption key and decrypt the data partition. TWRP 3.2 won't do this ( again, in my experience ) hence the back up fails because everything is encrypted.
This is how I noticed that force installing TWRP 3.2 was useless. it doesn´t ask for your pin or your unlock pattern so it doesn´t have a way of decrypting the data partition. Again this was my experience. A more advanced android / twrp user could give a definite answer.
rybshik said:
I have not set up any PIN/unlock pattern at all. So TWRP did not ask for it during back up, but just failed to back up , showing an error related to data partition.
Could absence of PIN cause the backup to fail?
Click to expand...
Click to collapse
I think so, yes. If you don´t have a pin or unlock pattern in your phone, TWRP doesn´t have a way to "authenticate" and get the decryption key and decrypt the data partition. Again, I´m assuming this out of my own experience.
Hello, can anyone share me the persist file from a xt1926-6 please?
I am having an issue with this file and I don't know what to do now
Thank you
lcmp said:
I have the same phone.
First do this:
Go to settings: tap System, tap about phone and write down which software channel you are on.
It will say something like this:
RETLA
or
TEFCO
or
TEMX
or
TIGCO
Those are the only channels which offer stock roms for the XT1926-7
If your phone is factory unlocked you will probably have to use the RETLA versions.
the on your computer go to:
mirrors . lolinet . com /firmware /moto /evert /official/
You will find the original android 8 stock rom in there:
XT1926-7_EVERT_*YOUR_CHANNEL*_8.0.0_OPWS27.113-89-5_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
Before you flash your phone make sure that you have a backup of :
EFS
and
Persist
partitions.
If those get corrupted or wiped you won´t have carrier signal or wifi once you reboot your phone. trust me it happened to me.
good luck.
Click to expand...
Click to collapse
Hello, how did you solve the persist issue? I have it corrupt and I don't know what to do
Thanks
lcmp said:
Before you flash your phone make sure that you have a backup of :
EFS
and
Persist
partitions.
If those get corrupted or wiped you won´t have carrier signal or wifi once you reboot your phone. trust me it happened to me.
good luck.
Click to expand...
Click to collapse
This has happened to me, however I am dumb and did not make a back up... So, does this mean I can never get my carrier signal back? Internet works but sim card refuses to be read.
Toonka95 said:
This has happened to me, however I am dumb and did not make a back up... So, does this mean I can never get my carrier signal back? Internet works but sim card refuses to be read.
Click to expand...
Click to collapse
You can, recently I posted a solution for this issue (i believe it's the same as yours)
https://forum.xda-developers.com/g6-plus/how-to/guide-how-to-solve-wifi-mobile-data-t3994827
wow bro, just wow... for those who are reading this do not erase the modem and carrier my phone is now pretty much useless because I didnt know that erasing that would reset my imei. Now my phone has no wi-fi and no carrier connection. Now im running a damn reverse tethering to see if i can reverse this. Any ideas now? How the hell do i get this back?
By the way give people a warning to not do that wtf.... I can only imagine how many people you fcked with this.
Doxmey said:
wow bro, just wow... for those who are reading this do not erase the modem and carrier my phone is now pretty much useless because I didnt know that erasing that would reset my imei. Now my phone has no wi-fi and no carrier connection. Now im running a damn reverse tethering to see if i can reverse this. Any ideas now? How the hell do i get this back?
By the way give people a warning to not do that wtf.... I can only imagine how many people you fcked with this.
Click to expand...
Click to collapse
The following are the official firmware commands
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp_a adspso.bin
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash dtbo_a dtbo.img
fastboot flash system_a system.img_sparsechunk.0
fastboot flash system_a system.img_sparsechunk.1
fastboot flash system_a system.img_sparsechunk.2
fastboot flash system_a system.img_sparsechunk.3
fastboot flash system_a system.img_sparsechunk.4
fastboot flash system_a system.img_sparsechunk.5
fastboot flash system_a system.img_sparsechunk.6
fastboot flash system_a system.img_sparsechunk.7
fastboot flash system_a system.img_sparsechunk.8
fastboot flash system_a system.img_sparsechunk.9
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot flash oem_a oem.img
fastboot flash oem_b oem_other.img
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
I don't know why there is a erase carrier command in the op
But the erase modem lines are standard
Sent from my mata using XDA Labs
---------- Post added at 04:25 AM ---------- Previous post was at 04:24 AM ----------
I would try flashing
Code:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
Again
Sent from my mata using XDA Labs
These lines are copied from the flashfile.xml inside the stock.zip:
Code:
<step operation="erase" partition="carrier"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="ddr"/>
<step operation="oem" var="fb_mode_clear"/>
The "erase carrier" command is as usual as the "erase modemst1/2" command. That's the default.
---------- Post added at 11:18 AM ---------- Previous post was at 11:13 AM ----------
Doxmey said:
wow bro, just wow... for those who are reading this do not erase the modem and carrier my phone is now pretty much useless because I didnt know that erasing that would reset my imei. Now my phone has no wi-fi and no carrier connection. Now im running a damn reverse tethering to see if i can reverse this. Any ideas now? How the hell do i get this back?
By the way give people a warning to not do that wtf.... I can only imagine how many people you fcked with this.
Click to expand...
Click to collapse
Erase carrier + modem will not erase your IMEI as long as your /persist is not corrupted!!
sd_shadow said:
The following are the official firmware commands
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin
fastboot flash bootloader bootloader.img
fastboot flash modem_a NON-HLOS.bin
fastboot flash fsg_a fsg.mbn
fastboot erase modemst1
fastboot erase modemst2
fastboot flash dsp_a adspso.bin
fastboot flash logo_a logo.bin
fastboot flash boot_a boot.img
fastboot flash dtbo_a dtbo.img
fastboot flash system_a system.img_sparsechunk.0
fastboot flash system_a system.img_sparsechunk.1
fastboot flash system_a system.img_sparsechunk.2
fastboot flash system_a system.img_sparsechunk.3
fastboot flash system_a system.img_sparsechunk.4
fastboot flash system_a system.img_sparsechunk.5
fastboot flash system_a system.img_sparsechunk.6
fastboot flash system_a system.img_sparsechunk.7
fastboot flash system_a system.img_sparsechunk.8
fastboot flash system_a system.img_sparsechunk.9
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
fastboot flash system_b system_b.img_sparsechunk.2
fastboot flash vendor_a vendor.img_sparsechunk.0
fastboot flash vendor_a vendor.img_sparsechunk.1
fastboot flash oem_a oem.img
fastboot flash oem_b oem_other.img
fastboot erase userdata
fastboot erase DDR
fastboot oem fb_mode_clear
fastboot reboot
I don't know why there is a erase carrier command in the op
But the erase modem lines are standard
Sent from my mata using XDA Labs
---------- Post added at 04:25 AM ---------- Previous post was at 04:24 AM ----------
I would try flashing
Code:
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
Again
Sent from my mata using XDA Labs
Click to expand...
Click to collapse
WoKoschekk said:
These lines are copied from the flashfile.xml inside the stock.zip:
Code:
<step operation="erase" partition="carrier"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="ddr"/>
<step operation="oem" var="fb_mode_clear"/>
The "erase carrier" command is as usual as the "erase modemst1/2" command. That's the default.
---------- Post added at 11:18 AM ---------- Previous post was at 11:13 AM ----------
Erase carrier + modem will not erase your IMEI as long as your /persist is not corrupted!!
Click to expand...
Click to collapse
Yeah man it took me all day to try to get it all working again, the fix was i downloaded an older stock rom and it restored my IMEI, it had to be the older version though because the newer one would recover it. Anyways now i'm never erasing that carrier or modem if it's not really necessary.
revert xt1926-3 to factory (2020)
IGorMcLven said:
[Evert] [Stock] Firmware - Return to Stock.​
Code:
...
fastboot flash system_b system_b.img_sparsechunk.0
fastboot flash system_b system_b.img_sparsechunk.1
...
Click to expand...
Click to collapse
The latest factory image I downloaded from lolinet does not contain 2 files for system_b, only one, and it's named differently, so imho you have to replace the 2 above fastboot commands with the following (taken from flashfile.xml inside the download):
Code:
fastboot flash system_b system_other.img
I recommend to *always* compare flashfile.xml to zip contents before using a series of flash commands from somewhere else. Or someone could develop an XSLT file to convert flashfile.xml to a flashing script
I'm attaching a little verification shell script to check that all required files are in place.
tseeling said:
The latest factory image I downloaded from lolinet does not contain 2 files for system_b, only one, and it's named differently, so imho you have to replace the 2 above fastboot commands with the following (taken from flashfile.xml inside the download):
Code:
fastboot flash system_b system_other.img
I recommend to *always* compare flashfile.xml to zip contents before using a series of flash commands from somewhere else. Or someone could develop an XSLT file to convert flashfile.xml to a flashing script
I'm attaching a little verification shell script to check that all required files are in place.
Click to expand...
Click to collapse
Needs Termux and python.

Categories

Resources