FORUMS
Remove All Ads from XDA

[HOW-TO] Revert from an Oreo Custom ROM to stock and install Official Oreo via OTA

185 posts
Thanks Meter: 53
 
By BlackScout, Senior Member on 14th September 2018, 09:58 PM
Post Reply Email Thread
I decided to make this thread so people won't brick their devices/lose their IMEI/explode their phone when trying to update to the recently leaked/released Oreo Motorola ROM.

This is very information dense. Please, read this and the linked threads carefully and do not miss any step unless told so.

WARNING: This will erase all your data, reset all your settings. MAKE BACKUPS.

I also do not hold responsibility for any negative outcomes out of following this tutorial.
Always look for as many sources of information as you can. There is always something that isn't 100% correct in every tutorial.


Also, making it clear. This is for those who are currently on an Oreo CUSTOM ROM such as Lineage, Pixel Experience or other.

Preparation Steps:
  1. Backup all your important files to your PC. You should do that since everything will be reset.
  2. Make sure your phone is well charged. 80% at least. You want to be safe.
  3. Boot into fastboot.
  4. Install Minimal ADB and Fastboot.
  5. In the command prompt of Minimal ADB and Fastboot, type:
    Code:
    fastboot getvar all
  6. You will see a bunch of lines come up on the screen. Scroll and look for
    Code:
    (bootloader) ro.build.fingerprint[0]
    .
    This will tell the last version of the Stock ROM (Nougat) you had installed.
    Example: "NPNS25.137-92-4" Yours won't/may not be the same.
  7. Write it down somewhere. You will need this version number.
  8. Open this link https://mirrors.lolinet.com/firmware...ficial/RETAIL/ to download the exact version you found. If anything, download a version above the one you found. Never an inferior. Those are Motorola's Official Nougat ROMs.
  9. Keep it somewhere accessible in your PC and extract the zip. Remember where you put it, you will need it later.
  10. You will now proceed to check your persist partition. Aka: The thing everyone overlooks and screws your IMEI.
  11. IMPORTANT: Take a look at https://forum.xda-developers.com/g5-...ation-t3825147 to find out if your persist partition has permission issues and see if it's recoverable. It is 99% likely that if you are on a custom Oreo ROM that the permissions won't be intact.
  12. If that is the case (most likely), download NZedPred's TWRP Persist Restore zip into your phone.
  13. Feel free to skip these last steps if you have a backup of your persist and efs.
  14. Reboot into recovery and using the most recent TWRP make a backup of your persist and efs. (Information about this can be found on the second post of the "Fix Persist" thread. I am not willing to write a thousand instructions on one thread for the sake of not overcomplicating things.) //shitty steps: have/flash most recent TWRP > backup > select persist and efs > profit
  15. These backups should be on a TWRP folder of the internal storage of your Moto G5. Reboot the phone (or mount USB) and copy that folder to your PC. In case anything goes wrong you will have a copy of your persist.

Steps:
  1. Reboot into recovery (TWRP) using your preferred method. (Be it by the buttons, or via ADB (adb reboot recovery)).
  2. Flash the TWRP Persist Restore zip.
  3. Reboot into bootloader
  4. Open (on your PC ofc) the folder with the extracted files of the Stock ROM zip (NOUGAT).
  5. Open the extracted files folder then press Shift+RMB (Right Mouse Click/Button) and select "Open Command Prompt here" (It may work with Powershell??? If anything, write a post here)
  6. For a quick test, type
    Code:
     fastboot
    In case an error pops-up and tells you that it can't recognize such a command. Follow this article https://www.xda-developers.com/adb-f...windows-linux/ to add Minimal ADB and Fastboot to your system environment variables
  7. Now, make sure that the path to the left of the typing cursor is the path of the folder where you have your extracted Nougat ROM files.
  8. Please, for your phone's OTA update ability sake. Make sure that you are flashing the exact version you had before. The version you found by running fastboot getvar all.
  9. The commands below will attempt to update the bootloader and gpt. You should NEVER flash an older version of the bootloader.
  10. If you wish, you can skip the GPT/Bootloader commands. I haven't done myself because I flashed the correct version I had before anyway.
  11. Copy and paste these commands and press enter in the CMD.

  12. Code:
    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.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
  13. This will flash the Stock Nougat ROM you have downloaded and will reboot your phone. If all goes well you will be back on Nougat, set up your device as normal.
  14. Attention, everything has been reset, erased, wiped.

Oreo OTA Steps:
  1. After setting up everything, check for OTA's. You should be safe to install them. If you are on a recent firmware, you may only need to install security ones. Keep installing and checking until it says there are no more updates available.
  2. This is where people **** up when they downgrade their bootloader by flashing an older Stock ROM than the one they had before.
  3. Before proceeding, double check that there aren't any OTAs available or that Oreo is available at the time of reading this.
  4. If Oreo is officially available, skip all of these steps and be happy.
  5. Otherwise, if at the time of reading, there is a ZIP of the Oreo ROM that matches your region. Download it.
    In case of RETLA, RETBR, and RETIN, at the time of writing, this is the correct file:
    https://mega.nz/#!DxdSVaJb!5VEht-s6H...AvQL1Wzmp7rhZk or https://drive.google.com/open?id=1Zm...ib3dqIeF9vauAY
  6. In case you are on RETUS, RETAPAC, RETEU, etc. You may need another file that may not be available. The best course of action would be to wait for the Official OTA.
  7. Download it and put in the root of the internal storage of your Moto G5 Plus.
  8. Go to the Settings app. In the Settings app, you'll want to find the OTA App (Motorola Update Services) by showing System apps and enable storage permissions.
  9. Before you proceed: This is apparently indeed the official OTA that they will ship, which seems to be the same as the Soak 4. It's seemingly stable here, so, you should be fine to use that.
  10. Check on your phone for an OTA.
  11. Reboot it.
  12. Check for an update again. There will be a prompt telling you about copying "system" files. Accept it.
  13. After a while, another prompt will ask you about the update. There won't be a changelog, this is normal. Make sure your device is charged and install it.
  14. Wait for the update to complete and you're done.


Tips:
Feel free to correct me on any mistake. It took me about an hour (or more) to write this and I could have potentially overlooked an important detail.
The Following 8 Users Say Thank You to BlackScout For This Useful Post: [ View ] Gift BlackScout Ad-Free
15th September 2018, 12:04 AM |#2  
TheGameExtreme's Avatar
Junior Member
Flag Buenos Aires
Thanks Meter: 3
 
More
I flashed OPS28.85-13 by TWRP and when I put fastboot getvar all show me: ro.build.fingerprint[0] OPS28.85-13, so what should I do to flash the official OTA without troubles?, I read that probably I should flash nougat flashable by TWRP and then install Official Nougat and then Official Oreo , what do you think? Thanks!
15th September 2018, 02:57 AM |#3  
OP Senior Member
Flag Rio de Janeiro
Thanks Meter: 53
 
More
Quote:
Originally Posted by TheGameExtreme

I flashed OPS28.85-13 by TWRP and when I put fastboot getvar all show me: ro.build.fingerprint[0] OPS28.85-13, so what should I do to flash the official OTA without troubles?, I read that probably I should flash nougat flashable by TWRP and then install Official Nougat and then Official Oreo, what do you think? Thanks!

Maybe I didn't explain the purpose of this thread...
This is meant for those who are currently in a CUSTOM Oreo ROM such as Lineage, Pixel Experience.

I assume you have the correct firmware installed already. No need to revert anything.


Well, that's what it says here.

Code:
(bootloader) ro.build.fingerprint[0]: motorola/potter_nt/potter_nt:8.1.0/OPS28.85-13/b8ea:user/release-keys
I don't think you need to do anything.
However, what's the bootloader version? Should be:
Code:
(bootloader) version-bootloader: moto-msm8953-C0.92
15th September 2018, 09:13 AM |#4  
Member
Thanks Meter: 2
 
More
I had hardbricked my phone and am using a tarp flashablr stock ROM. Can I use this method to go back to stock?
16th September 2018, 12:06 AM |#5  
TheGameExtreme's Avatar
Junior Member
Flag Buenos Aires
Thanks Meter: 3
 
More
Quote:
Originally Posted by BlackScout

Maybe I didn't explain the purpose of this thread...
This is meant for those who are currently in a CUSTOM Oreo ROM such as Lineage, Pixel Experience.

I assume you have the correct firmware installed already. No need to revert anything.


Well, that's what it says here.

Code:
(bootloader) ro.build.fingerprint[0]: motorola/potter_nt/potter_nt:8.1.0/OPS28.85-13/b8ea:user/release-keys
I don't think you need to do anything.
However, what's the bootloader version? Should be:
Code:
(bootloader) version-bootloader: moto-msm8953-C0.92

It says: version-bootloader: moto-msm8953-C0.8C, I think it's an older version because before to install Oreo by TWRP I had Nougat with the March security patch
16th September 2018, 04:43 PM |#6  
OP Senior Member
Flag Rio de Janeiro
Thanks Meter: 53
 
More
Quote:
Originally Posted by TheGameExtreme

It says: version-bootloader: moto-msm8953-C0.8C, I think it's an older version because before to install Oreo by TWRP I had Nougat with the March security patch

Yeah, your bootloader is still from Nougat. One day, that could become a problem (hard brick) when taking OTA's.

You can easily fix that by going back to Nougat. (Just make sure to flash the exact version (or one above) the one you had before. Remember, never downgrade your bootloader.).
I think you can just fastboot flash NPNS-25.137.92-14 (since the difference between that and the base 92 patch is just security patches...), download the OTA zip that's been posted around and follow the last set of instructions here (The ones labeled Oreo OTA Steps)

Remember, flashing those TWRP zips made by NZedPred is technically not the same thing as fastboot flashing or taking an OTA. These zips don't upgrade your bootloader and the OP of those threads do not recommend you to take any OTAs.

Quoting from the source: https://forum.xda-developers.com/g5-...uilds-t3813351
  • The partition table and bootloader are not included, which makes it safer to up/downgrade.
  • Do not attempt to apply standard OTAs over these builds. They'll probably fail, worst case they will brick your phone

So if you want to take the Oreo OTA and have an upgraded bootloader (C0.92), don't flash these. Flash the official Stock ROM (Nougat) images using fastboot then take the OTA.
17th September 2018, 07:54 AM |#7  
Senior Member
Flag vadodara
Thanks Meter: 17
 
More
I got all the information from this guide thanx but one doubt is there , i have my own efs nd persist and i have also backed it up so do i need to restore the restore zip or m i good to just fastboot flash nougat rom and update it via OTA to oreo? I m using custom oreo rom right now and i have never lost 4g or imei that means my efs and persist is my original..
17th September 2018, 11:34 PM |#8  
Senior Member
Flag vadodara
Thanks Meter: 17
 
More
I successfully flashed nougat thnx to your guide.i have downloaded the oreo update but where to put it the update is not being detected in system update
I m an Indian user so retin variant and dwnlf the oreo file provided by you.
18th September 2018, 05:36 AM |#9  
psychopac's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 225
 
More
Quote:
Originally Posted by karan3660

I successfully flashed nougat thnx to your guide.i have downloaded the oreo update but where to put it the update is not being detected in system update
I m an Indian user so retin variant and dwnlf the oreo file provided by you.

The zip file needs to be placed in the internal memory and not within any folder in the internal memory (i.e in the root directory of internal memory), after that you need to give storage permission to the updater app and reboot. After reboot, you need to check for updates and the updater app should now be able to pick up the zip file you placed in internal memory as a new system update
The Following User Says Thank You to psychopac For This Useful Post: [ View ] Gift psychopac Ad-Free
18th September 2018, 05:56 AM |#10  
Senior Member
Flag vadodara
Thanks Meter: 17
 
More
Quote:
Originally Posted by psychopac

The zip file needs to be placed in the internal memory and not within any folder in the internal memory (i.e in the root directory of internal memory), after that you need to give storage permission to the updater app and reboot. After reboot, you need to check for updates and the updater app should now be able to pick up the zip file you placed in internal memory as a new system update

I have to directly place the zip file?? I extracted it into folder maybe thats why updater app didnt detected
Let me try again.
Tried after placing the zipe file directly into the root of internal storage and gave motorola update service storage permission then rebooted
Still not detevtion the zip file.
18th September 2018, 10:37 AM |#11  
psychopac's Avatar
Senior Member
Flag New Delhi
Thanks Meter: 225
 
More
Quote:
Originally Posted by karan3660

I have to directly place the zip file?? I extracted it into folder maybe thats why updater app didnt detected
Let me try again.
Tried after placing the zipe file directly into the root of internal storage and gave motorola update service storage permission then rebooted
Still not detevtion the zip file.

There's no need to extract the file. Simply place the zip in the root directory. You must be on June 137-92-14 update to install it.
Post Reply Subscribe to Thread

Tags
oreo, ota, roms, stock, tutorial

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes