Wipe Data for Oreo ? - Moto G5 Questions & Answers

Hello everyone.
I'm trying to install Oreo rom but I need to decrypt my data partition. (The "Wipe Data" with TWRP does not work)
I tried with the rom stock. (Reset via the menu)
The phone restarts it is already encrypted ...
Can someone give me some advice?

Go into twrp
Wipe data
Select format data (option on the right hand side)
Reboot to twrp
Wipe data
Advanced wipe (option on the left hand side)
Wipe system data cache delvik/art cache
Now flash rom gapps & magisk

HEy thank's but, I still have this problem.
Can not Format Data.
I am under twrp-3.2.1-0-cedric.img
(same as previous versions)
Go into twrp // ok
Wipe data // ok
Select format data (option on the right hand side) // Fail

SuperUtilisateur said:
HEy thank's but, I still have this problem.
Can not Format Data.
I am under twrp-3.2.1-0-cedric.img
(same as previous versions)
Go into twrp // ok
Wipe data // ok
Select format data (option on the right hand side) // Fail
Click to expand...
Click to collapse
Did you decrypt data in twrp first - when you boot into twrp it will pop up with enter your password to decrypt data
If you don't decrypt data in twrp it won't be able to mount it to format it
The other option is flashing stock rom via fastboot without flashing the bootloader or partition parts & erasing user data then do a full boot
Once you have downloaded firmware these are the commands
Code:
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
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 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 oem fb_mode_clear
fastboot reboot
Ignore some parts that may not be in the firmware that will produce an error if ran

Thank you for your reply
--
Edit : Here is the solution:
It is necessary to restart Recovery to "Mount Data".
Thank you for your help

Related

Full wipe encrypted via fastboot

Hi,
the Nexus 5X is my first encrypted phone and I intend to flash the newest MDB08M factory image via fastboot. I wanted to perform a full wipe before flashing the update. My routine for a full wipe to get rid of everything on the phone is:
Wipe Dalvik
wipe cache
factory reset/data
boot into fastboot
fastboot erase boot
fastboot erase system
fastboot erase userdata
fastboot erase cache
fastboot erase webtop
fastboot erase preinstall
fastboot reboot
flash factory image
...
Can I still full wipe my phone this way with encryption?
If you use flash-all.bat script included with factory image it will do it for you. To get list of partitions on your device use "fastboot getvar all".
Thank you for your answer. I did not know that the "flash-all.bat" performs the same routine erasing all partitions. So it is also safe to erase the partitions manually?

Error Baseband moto z play

hi, i have a big problem with my device, few day ago i installed twrp and root but then i needed to restore, for mistake did a wipe advance and root again and my devices bootloop, i did restore with the firmware stock but the version baseband show me something different, must be m8953_10208.08.04.47R but have m8953_10208.08.04.47e and my imei show "0".
i try flash with other firmware but all version baseband finish with the letter "e", i can´t call or send messages
i hope somebody can help me: (
Did you restore using commands similar to this?
fastboot flash partition gpt.bin
fastboot flash motoboot boot.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 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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Milly7 said:
Did you restore using commands similar to this?
fastboot flash partition gpt.bin
fastboot flash motoboot boot.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 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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot reboot
Click to expand...
Click to collapse
yes, i do but with all firmware show me the letter "e" 42R - 42e
Same error....
i just reflash firmware via RSD, when boot finished, it has no signal, imei shows 0 and the baseband replace the "R" letter with an "e" letter.
Before reflash firmware, i've make a backup of the EFS partition via TWRP. So i restore the backup, the devices boots with signal, shows IMEI but the baseband it's the same with letter "e"
Hardware info don't show the correct version. it shows "\x\x\x\x"
If erase the modemst1 and modemst2 via fastboot or when i reflash via RSD, it shows IMEI 0 again :crying:
I'm having the same problem but I didn't made a backup of the EFS.
My hardware info shows version "\x\x\x\x", same problem with the IMEI and baseband: M8953_1028.08.04.47e
Anyone was able to solve this problem? I'm looking for a solution for about 3 days now.
This all happened when I flashed a LATAM rom, booted with no singal, now I found my version (RETBR) and even flashing it I still boot with no signal.
same boat here lol
tried to restore EFS and nvram, fail, IMEI stay 0
I'm also having this issue due to willy-nilly flashing. I know what my IMEIs are supposed to be since they're written on the box, but I'm not sure how to get them into the phone again.
anyone could manage to fix this?
I'm still having this issue.
My brother bought another Moto Z Play exactly like mine and this is his info:
Baseband: M8953_10208.08.04.47R ADDISON_ROW_DSDS_CUST
Mine is: M8953_10208.08.04.47e ADDISON_ROW_CUST
I've got addison_row_cust. Any idea where I can find stock firmware so I can take the recent update? Bought the phone off Swappa and it came with TWRP with no backups :S
xxBrun0xx said:
I've got addison_row_cust. Any idea where I can find stock firmware so I can take the recent update? Bought the phone off Swappa and it came with TWRP with no backups :S
Click to expand...
Click to collapse
bro where you able to solve this did your bband change to letter r mine is motog5 plus i too had the same problem
Rakesh1b said:
bro where you able to solve this did your bband change to letter r mine is motog5 plus i too had the same problem
Click to expand...
Click to collapse
bro in this thread were you able to restore baseband finally.
mibonilla1103 said:
hi, i have a big problem with my device, few day ago i installed twrp and root but then i needed to restore, for mistake did a wipe advance and root again and my devices bootloop, i did restore with the firmware stock but the version baseband show me something different, must be m8953_10208.08.04.47R but have m8953_10208.08.04.47e and my imei show "0".
i try flash with other firmware but all version baseband finish with the letter "e", i can´t call or send messages
i hope somebody can help me: (
Click to expand...
Click to collapse
have you find the solution..?
if you have,please suggest that solution to us also.
i have this same problem with g5s plus. Waiting for suggest
AmNeZiS said:
i have this same problem with g5s plus. Waiting for suggest
Click to expand...
Click to collapse
Some1 fix this problem????? THx

Moto E4 Guide To Full Stock Firmware Restore and Re-lock Bootloader Any Variant

Note :
Do not erase/flash Bootloader file preloader.img or preloader.bin
fastboot erase preloader
fastboot flash preloader preloader.img
Do not erase/flash partition table file pgpt.img/gpt.img or pgpt.bin/gpt.bin
fastboot erase pgpt or gpt
fastboot flash pgpt or gpt pgpt.img or gpt.img​
About :
With this guide you will restore stock firmware and re-lock your device bootloader.This guide is from Moto E4 Mediatek variant SKU XT1760 but can work with any Moto E4 Variant. Just grab the partition info and partition name in fastboot mode with fastboot command "fastboot getvar all". But this step isn't necessary if you take backup with miracle tool. It will dump whole firmware in scatter format. So, no need to worry if you have a different variant of Moto E4
This guide will give you the following :​
PHP:
<bootloader> : warranty (YES)
<bootloader> : unlocked (NO)
<bootloader> : secure (YES)
>> device unlocked (we cannot remove this warning !)
Requirement :
• Place all the firmware files here:
C:\Program Files\Minimal ADB and Fastboot\HERE
• A laptop/Desktop
• Unlocked Bootloader
• Enabled USB Debugging
• Moto E4 Any Variant
• USB Cable
• Minimal Adb & Fastboot Tool
• Miracle Tool
• Adb & Fastboot Commands
Step 1 : Boot into bootloader mode
Switch off your device
Hold power button and volume down button
When you see START release buttons
This is fastboot mode
Step 2 : Reboot into bootloader
Note : i recommended you to use a laptop than that of desktop. For continuous power supply. Fully charge your laptop battery.
Connect with USB Cable
Open fastboot command window
Type fastboot command:
PHP:
fastboot reboot bootloader
Now your device in fastboot mode
--- Do not disconnect ---
Step 3 : Flashing stock factory images
Type these fastboot commands:
Erasing partitions first
if you have a different variant of Moto E4, just write all the partitions name except bootloader(preloader) in a text file and replace them with the below partition names.​
PHP:
fastboot erase boot
fastboot erase efuse
fastboot erase expdb
fastboot erase flashinfo
fastboot erase frp
fastboot erase hw
fastboot erase keystore
fastboot erase lk
fastboot erase logo
fastboot erase metadata
fastboot erase nvdata
fastboot erase nvram
fastboot erase oem
fastboot erase oemkeystore
fastboot erase otp
fastboot erase para
fastboot erase persist
fastboot erase proinfo
fastboot erase protect1
fastboot erase protect2
fastboot erase recovery
fastboot erase seccfg
fastboot erase secro
fastboot erase tee1
fastboot erase tee2
fastboot erase utags
fastboot erase system
fastboot erase userdata
--- Do not disconnect ---
Now flash stock factory images
PHP:
fastboot flash boot boot.img
fastboot flash efuse efuse.img
fastboot flash expdb expdb.img
fastboot flash flashinfo flashinfo.img
fastboot flash frp frp.img
fastboot flash hw hw.img
fastboot flash keystore keystore.img
fastboot flash lk lk.img
fastboot flash logo logo.img
fastboot flash metadata metadata.img
fastboot flash nvdata nvdata.img
fastboot flash nvram nvram.img
fastboot flash oem oem.img
fastboot flash oemkeystore oemkeystore.img
fastboot flash otp otp.img
fastboot flash para para.img
fastboot flash persist persist.img
fastboot flash proinfo proinfo.img
fastboot flash protect1 protect1.img
fastboot flash protect2 protect2.img
fastboot flash recovery recovery.img
fastboot flash seccfg seccfg.img
fastboot flash secro secro.img
fastboot flash tee1 tee1.img
fastboot flash tee2 tee2.img
fastboot flash utags utags.img
fastboot flash system system.img
--- Do not disconnect ---
Step 4 : Re-lock bootloader
Type this fastboot command
PHP:
fastboot oem lock
Hit volume up button
Again type fastboot command
PHP:
fastboot reboot
Step 5 : Fix for system image sparse chunk
Used only when fastboot command failed to write system in system partition else when you see "sparse chunk error" wait for 10 minutes. you will see 1/20 or something operations. if not or command ended up with chunk error than use this command.​Use this fastboot command:
PHP:
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 system system.img_sparsechunk.8
fastboot flash system system.img_sparsechunk.9
fastboot flash system system.img_sparsechunk.10
fastboot flash system system.img_sparsechunk.11
fastboot flash system system.img_sparsechunk.12
fastboot flash system system.img_sparsechunk.13
fastboot flash system system.img_sparsechunk.14
fastboot flash system system.img_sparsechunk.15
fastboot flash system system.img_sparsechunk.16
fastboot flash system system.img_sparsechunk.17
fastboot flash system system.img_sparsechunk.18
fastboot flash system system.img_sparsechunk.19
fastboot flash system system.img_sparsechunk.20
Step 6 : Do not use this fastboot command
PHP:
fastboot erase preloader
This will wipe bootloader from bootloader partition and your device ended up with permanent Hard brick.
Step 7 : Fix for bootloader(fastboot) drivers
if your device isn't recognized in fastboot mode, Download USB Drivers from below attachment. Select manually "android_winusb.inf" file while updating driver software.
Download Link :
https://drive.google.com/file/d/0B0Oo-yXGY-zUMG1XRG52dFZpV1k/view
Step 8 : How to dump stock firmware
Thread link below:
https://forum.xda-developers.com/moto-e4/how-to/how-to-backup-stock-rom-moto-e4-variants-t3654976
Guide to fix boot_dataerr in miracle tool if it failed to dump stock rom
Look at the log window in miracle tool there in driver part you will see MTK preloader USB COM PORT#7. We don't need Preloader driver right now, we need MTK Android DA USB COM PORT#7. The solution is update your device driver software to fix this problem else you won't able to dump firmware in scatter format also we don't have official factory images. This is the only method to revert on purely unrooted stock firmware.
Step 9 : Minimal Adb & Fastboot download link
https://androidmtk.com/download-minimal-adb-and-fastboot-tool
This is my last thread in Moto E4 forum and i won't support this device anymore.​
Does this work for all variants?
andMego said:
Does this work for all variants?
Click to expand...
Click to collapse
yes, work with all variants.
already mentioned in OP.
kartik verma said:
This is my last thread in Moto E4 forum and i won't support this device anymore.​
Click to expand...
Click to collapse
After you came here and cluttered the forum with a crap load of pointless threads and posts? I love it! Thanks.
amarc78 said:
After you came here and cluttered the forum with a crap load of pointless threads and posts? I love it! Thanks.
Click to expand...
Click to collapse
pointless threads and posts
so my posts are useless. sorry if my posts aren't fit into your expectation.
kartik verma said:
pointless threads and posts
so my posts are useless. sorry if my posts aren't fit into your expectation.
Click to expand...
Click to collapse
Personally I'm very thankful for this post, as I couldn't figure out how to do it myself. I was able to reflash stock and lock the bootloader but it wouldn't boot since it always said it was modified, so I just returned my previous e4 with the bootloader unlocked and the noverify thing flashed.
my phone refuses to verify boot.img
KyleBryant said:
my phone refuses to verify boot.img
Click to expand...
Click to collapse
will it asks for boot.sig or anything else. let me know
I figured it out
KyleBryant said:
I figured it out
Click to expand...
Click to collapse
How?
Motorola doesn't release verified boot images. The reason it wouldn't boot for me is because I forgot to flash the no verity file lol
KyleBryant said:
Motorola doesn't release verified boot images. The reason it wouldn't boot for me is because I forgot to flash the no verity file lol
Click to expand...
Click to collapse
How do I lock the bootloader and get it to verify the boot image?
No idea
andMego said:
How do I lock the bootloader and get it to verify the boot image?
Click to expand...
Click to collapse
fastboot oem lock (relock the bootloader)
their is nothing to do with boot image. verification is for system if you changed something and didn't disable verity " MOUNT FLAG /system ro wait,verify" your device ain't gonna boot into system.
dm-verity can be disabled by two ways either remove "verify" or change the default.prop values "ro.secure=0".
kartik verma said:
fastboot oem lock (relock the bootloader)
their is nothing to do with boot image. verification is for system if you changed something and didn't disable verity " MOUNT FLAG /system ro wait,verify" your device ain't gonna boot into system.
dm-verity can be disabled by two ways either remove "verify" or change the default.prop values "ro.secure=0".
Click to expand...
Click to collapse
Before I returned my other e4 I flashed the stock images with rsdlite and then did fastboot oem lock but then the phone wouldn't boot since it said it was modified so I had to unlock the bootloader again and flash the noverify thing in TWRP. How should I have done it to be able to return the phone with the bootloader locked?
andMego said:
Before I returned my other e4 I flashed the stock images with rsdlite and then did fastboot oem lock but then the phone wouldn't boot since it said it was modified so I had to unlock the bootloader again and flash the noverify thing in TWRP. How should I have done it to be able to return the phone with the bootloader locked?
Click to expand...
Click to collapse
" it said it was modified"
First of all remove all the changes you have done in system else if you don't know where you have done changes wipe system partition and reflash system image in system partition.
don't flash gpt.img, pgpt.img, bootloader.img in fastboot mode also do not erase data in fastboot mode "fastboot erase userdata". your device must be charged upto 80% if you want your device boot after a clean flash.
as i am also facing over discharged problem.
kartik verma said:
" it said it was modified"
First of all remove all the changes you have done in system else if you don't know where you have done changes wipe system partition and reflash system image in system partition.
don't flash gpt.img, pgpt.img, bootloader.img in fastboot mode also do not erase data in fastboot mode "fastboot erase userdata". your device must be charged upto 80% if you want your device boot after a clean flash.
as i am also facing over discharged problem.
Click to expand...
Click to collapse
Kartik dude tell me if this is possible....
To roll back I flash unmodified stock boot image and flash stock recovery through fastboot - reboot system - reset -relock bootloader.....can I able to do this?
drganbds said:
Kartik dude tell me if this is possible....
To roll back I flash unmodified stock boot image and flash stock recovery through fastboot - reboot system - reset -relock bootloader.....can I able to do this?
Click to expand...
Click to collapse
follow this method :
erase partitions only if you have factory images
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot erase boot
fastboot flash boot boot.img
erase system if you done changes in system partition. if not leave this step
fastboot erase system
fastboot flash system system.img
kartik verma said:
follow this method :
erase partitions only if you have factory images
fastboot erase recovery
fastboot flash recovery recovery.img
fastboot erase boot
fastboot flash boot boot.img
erase system if you done changes in system partition. if not leave this step
fastboot erase system
fastboot flash system system.img
Click to expand...
Click to collapse
Excellent then do me a favour buddy I need stock recovery and unmodified boot images of Moto e4 mediatek variant.
drganbds said:
Excellent then do me a favour buddy I need stock recovery and unmodified boot images of Moto e4 mediatek variant.
Click to expand...
Click to collapse
i will upload official factory images when i get free time

got the solution for 0 imei in stock

Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
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
fastboot flash system system.img_sparsechunk.o
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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
riyan65 said:
Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
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
fastboot flash system system.img_sparsechunk.o
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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
Click to expand...
Click to collapse
After OTA upsate the IMEI will become 0
Thanks, I hope someone tries this and confirms it's working.
Yes, it has worked for my device
Bar0ns600 said:
After OTA upsate the IMEI will become 0
Click to expand...
Click to collapse
No ota update is available.i have checked that
riyan65 said:
No ota update is available.i have checked that
Click to expand...
Click to collapse
Yeah available but if you actually install it I think it will make the IMEI 0 after the IMEI being fine :/
If u have kept a back up of efs in custom rom and restore it in stock then I'm won't get lost after update.
To get 4g/LTE service on stock.
First get a custom rom then go to fastboot mode and run these commands
Fastboot erase modemst1
Fastboot erase modemst2
And reboot to rom then u will get LTE in custom rom.
Using Twrp 64x bit make a back up of efs.
Then flash the stock rom with standard fastboot method without using the above mentioned code.
At this moment,after reboot u may get back Imei and LTE.if LTE is not available then restore efs through Twrp 64x bits.
riyan65 said:
If u have kept a back up of efs in custom rom and restore it in stock then I'm won't get lost after update.
Click to expand...
Click to collapse
You will have to install twrp for each update! ??
Just install all updates and then install Twrp to get the Imei back.it is just waste of time to install Twrp after every update.
Hi,
I'll already done that but after OTA i loose IMEI
Don't use OTA for updates, use adb to update your device in stock recovery. Then install Twrp 64x and restore efs.
It seem like many of are not getting imei after doing this also.let me explain you in a clear way
Step1:-run on a custom rom such as lineage,aosp...
(Note:-if you have 4g/LTE in custom rom then skip step2)
Step2:-turn off your phone and get into bootloader and run the following commands
Fastboot erase modemst1
Fastboot erase modemst2
Step3:-make a back up of efs in Twrp 64x bits(save the efs in external memory so it will not get erased) and erase data,cache only
Step4:-now flash 32xbits Twrp then
Step5:-flash stock rom using following commands
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
fastboot flash system system.img_sparsechunk.o
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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Step6:-now reboot your phone
Step7:-you will get the Imei and 4g/LTE
Step8:-don't use OTA, use adb you can download updates from here
https://drive.google.com/drive/mobile/folders/1BkpfHvgQ477NViLYvzgv88Fgq3SSt5Py?usp=sharing
Step9:-reboot to stock recovery and select apply update from adb
Step10:-run the following command to apply update
Adb sideload filename.zip
Step11:-In may security patch you may lose imei
Step12:-now install Twrp 64x bits and restore efs from it which you have make it before
Step13:-reboot your device.done
Now you will get the Imei,4g/LTE and latest update.
Let me know if it works for you.
riyan65 said:
Guys I have found a way to get the imei back in stock
i can confirm that we can return to stock ;-D
without loosing IMEI
Reflash a 32bits TWRP recovery
wipe DATA
reboot to bootloader
use this command to flash stock ROM:
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
fastboot flash system system.img_sparsechunk.o
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 modem NON-HLOS.bin
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot erase customize
fastboot erase clogo
fastboot reboot
fastboot oem fb_mode_clear
Don't run those commands (IMEI = 0)
fastboot erase modemst1
fastboot erase modemst2
After that you can boot the stock rom.
If you want to relock the boot loader, use this:
fastboot oem lock
fastboot oem lock
fastboot flash oem oem.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 boot boot.img
fastboot oem lock
Reboot.done
I have tried this and was successfully got back imei on stock
Click to expand...
Click to collapse
After doing ur procedure I didn't get any network bro it showing no network only
Did you restore the efs???
Help me bro
Hello, 1 day ago I was with the firehound rom without any problem, only that in some applications the stock camera did not work, I decided to return to the stock as usual, but, this time I start without a signal, my imei became 0, please help me recover my imei bro, my copy of efs was lost.
First go back to custom rom and then make a back up of efs then follow the above commands.
riyan65 said:
First go back to custom rom and then make a back up of efs then follow the above commands.
Click to expand...
Click to collapse
Ready bro, I do that, I have signal in stock ROM again but only 3g, is a great advance ?, do you know how i get 4g again?
Oshecy777 said:
Ready bro, I do that, I have signal in stock ROM again but only 3g, is a great advance ?, do you know how i get 4g again?
Click to expand...
Click to collapse
You can't get 4g back... If you knew what you were doing before this wouldn't even happen
Bar0ns600 said:
You can't get 4g back... If you knew what you were doing before this wouldn't even happen
Click to expand...
Click to collapse
Omfg really? My moto g5 become's a brick.
I know that dude, is the first time something like this happens to me, I had a backup of my stock but unfortunately I lost it if you do not believe I would not be here, and it's very strange, because when I returned to the stock rom via adb I started with a signal except that I started without signal and IMEI.
But now is working the 3g in stock ROM.

I guess i bricked my only phone....:-/

Okay, so im new to this stuff and still i managed to root the phone and flash RR 7.1.2. But i tried to unroot it and this happend:
I only have access to the bootloader and thats it. No recovery, no ROM nothing....when i start ti, it says that my phoe is unlocked and its dangerous and that the phone will boot in 5 secs but it never does....plz help me..and i wanna know where can i learn about all this stuff...its freaking me out since this the only phone i have.....plz help me..
You have two options
1 - flash twrp recovery and then use it to flash a custom rom
Assuming you have named the recovery image recovery.img
fastboot flash recovery recovery.img
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Then wipe system data cache/format data & follow procedure to flash a custom rom
2 - flash stock rom firmware which can be found (plenty of guides out there for how to just search)
https://mirrors.lolinet.com/firmware/moto/cedric/official/
If you have unlocked the bootloader it will always says your device is not secure unless you flash a modified boot image
TheFixItMan said:
You have two options
1 - flash twrp recovery and then use it to flash a custom rom
Assuming you have named the recovery image recovery.img
fastboot flash recovery recovery.img
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Then wipe system data cache/format data & follow procedure to flash a custom rom
2 - flash stock rom firmware which can be found (plenty of guides out there for how to just search)
https://mirrors.lolinet.com/firmware/moto/cedric/official/
If you have unlocked the bootloader it will always says your device is not secure unless you flash a modified boot image
Click to expand...
Click to collapse
Dude, I'm a total idiot at this stuff...
I was trying to flash the stock ROM by some help from a youtube channel called Andoid Doctor. I used the codes he gave me and the stock firmware he provided me for cedric. But all my computer showed was some slot error.
I'd really appreciate it if you helped me out.
Astitva_ said:
Dude, I'm a total idiot at this stuff...
I was trying to flash the stock ROM by some help from a youtube channel called Andoid Doctor. I used the codes he gave me and the stock firmware he provided me for cedric. But all my computer showed was some slot error.
I'd really appreciate it if you helped me out.
Click to expand...
Click to collapse
Firmware must be the same or newer
See the link in my post above for all the firmware - choose the right one for your region
If you don't know which to choose just use this one
https://mirrors.lolinet.com/firmwar...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
Commands are (assuming you know how to use & have fastboot already setup as you have already unlocked the bootloader)
Code:
fastboot oem fb_mode_set
fastboot flash partition gpt.bin (only flash if newer version of android eg going from nougat to oreo)
fastboot flash bootloader bootloader.img (only flash if going to a newer version of android)
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
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 system system.img_sparsechunk.8
fastboot flash modem NON-HLOS.bin
fastboot erase modemst1
fastboot erase modemst2
fastboot flash fsg fsg.mbn
fastboot erase cache
fastboot erase userdata
fastboot oem fb_mode_clear
fastboot reboot
TheFixItMan said:
fastboot flash recovery recovery.img
https://drive.google.com/open?id=1MLlljM7BzMj9Da57LeyBHyg81cHdW1cB
Then wipe system data cache/format data & follow procedure to flash a custom rom
Click to expand...
Click to collapse
Wasn't trying to go back to stock myself (though I did have to in the end) but this was the only rom I found that worked full stop. Thanks so much for this.

Categories

Resources