yashsingh1/xdaforums huggingface dataset:
[Moto Z Play Guides, News, & Discussion] Greamos:
It should work, but here try this one
[Moto Z Play Guides, News, & Discussion] Greamos:
Links updated
[Moto Z Play Guides, News, & Discussion] Greamos:
Thats a old mirror, if you use my download from my download comment, you will have batch files etc
[Moto Z Play Guides, News, & Discussion] anilkumar121989:
Can I follow this procedure if If i am the stock rooted with Nov. patch available on custom ROM threads in XDA ? I mean its still custom rom....
[Moto Z Play Guides, News, & Discussion] Greamos:
Just try it, if you bootloader wont lock. Than it didn't work. You will still have stock, and can get ota's.

But to be sure, just install a custom rom. ( If you wanna have your bootloader locked again )
[Moto Z Play Guides, News, & Discussion] Greamos:
You can pm me if you need to
[Moto Z Play Guides, News, & Discussion] anilkumar121989:
Thanks!
[Moto Z Play Guides, News, & Discussion] Greamos:
Np
[Moto Z Play Guides, News, & Discussion] come2mynation:
thanks bre it's work

cheers
[Moto Z Play Guides, News, & Discussion] Greamos:
No problem
[Moto Z Play Guides, News, & Discussion] sam0056:
I have a question I am about to use this method to go back to stock but in the future I would like to unlock bootloader and root again. I read that the same key as before can be used but I don't have the email anymore from Motorola with the key. Will I be able to request another key.
[Moto Z Play Guides, News, & Discussion] tag68:
Why don't you keep the device unlocked? Then you don't need to take that wipe-step again when rooting. Only disadvantage is that you are not passing SafetyNet.

The topic implies that you need locked bootloader to get OTA. This is wrong. If you omit all "OEM lock" commands, your device will stay unlocked, but get OTA fine - until you start modifying any partition but cache and data (flash twrp, install root, modify build.prop or some other things), then OTA won't succeed anymore because they check that it is untouched.
[Moto Z Play Guides, News, & Discussion] sam0056:
But I am on N pre rooted deodex rom with magisk root how can I get ota without going back to stock uprooted rom with locked bootloader I didn't think this was possible.
[Moto Z Play Guides, News, & Discussion] echo92:
Stock OTA updates will only work and flash onto a fully stock ROM without modifications - this usually means no TWRP, no deodex/debloating, no root etc. As tag68 has mentioned, you do not need a locked bootloader to receive OTA updates. As long as your device is on the correct build with stock recovery, stock kernel, stock system etc all matching with the bootloader patch level, then you should be okay to receive and flash OTA updates.

So you'll have to use the first part of the guide commands to revert back to full stock. Ideally, you'd want to re-flash the same stock ROM firmware build that you had before (which may not be the same as your current deodex ROM build) to reduce the number of possible issues, but if not, then you'll want to fully flash the newest stock ROM available for your device. If you want to try to keep your data, then you can omit:

fastboot erase userdata

But ensure you have a backup in TWRP or another backup app in case your device becomes unstable and you have to factory reset.
[Moto Z Play Guides, News, & Discussion] DesireC:
I think it was on AFH's end. It had no options in the list of mirrors that usually has several. It has some now.
[Moto Z Play Guides, News, & Discussion] sam0056:
So my last command need to be fastboot oem _ mode_clear. And Iff I miss out erase user data command I will still have my data be on stock rom with bootloader unlocked and will recieve relevant updates. When they arrive.
[Moto Z Play Guides, News, & Discussion] sam00561:
Ok to update i have now successfully flashed the stock rom and also received the latest dec patch level OTA. Plus thanks for your help guys my bootloader is still unlocked and i wont have an extra duty to unlock bootloader after getting oreo update which i guess is coming soon. everything went very smoothly thanks again.
[Moto Z Play Guides, News, & Discussion] Greamos:
Exactly
[Moto Z Play Guides, News, & Discussion] Greamos:
Greaat
[Moto Z Play Guides, News, & Discussion] Greamos:
Topic updated
[Moto Z Play Guides, News, & Discussion] TeZtdevice:
Hi guys,

I have a XT1635-02 with stock ROM (6.0.1), unlocked bootloader, TWRP, SuperSu and Xposed.

I would like to have an update to 7.x ..OTA...to keep my settings, apps, files, etc.

But like the "how to" from first page, I think I will lost all these data, correct?
[Moto Z Play Guides, News, & Discussion] badflife:
So if one unlocks his/her bootloader and relocks it again with this method is the warranty still void because the unlock key was requested?

Thanks.
[Moto Z Play Guides, News, & Discussion] Milly7:
Can you explain the line "you need to be on a custom rom to relock the bootloader"?

I may be misinterpreting what you mean by custom. As I thought process entailed flash the stock rom.
[Moto Z Play Guides, News, & Discussion] Greamos:
A custom rom like lineage, that is because if you are already on a custom rom, it wont check for some files, because you are already on stock
[Moto Z Play Guides, News, & Discussion] tag68:
Exactly. One may argue in case of hardware failure, depending of the type of the error, that it can't be caused by software, and may achieve good will. But the warranty is void by requesting, there exist databases at Lenovo for which devices the key was requested.
[Moto Z Play Guides, News, & Discussion] DonnyWhite:
So, now you have an unlocked bootloader and still received update. But did u successfully flash the OTA update?

Is it rooted? Magisk or supersu?

I thought about doing it your way but i didn't have the guts to do that. Thanks
[Moto Z Play Guides, News, & Discussion] sam0056:
I'm still on Dec patch 7.1 stock not rooted and I'm waiting for official Oreo because in a bit nervous about flashing the soak test.
[Moto Z Play Guides, News, & Discussion] sam00561:
when i flashed stock from this thread it put me on nov patch and immediately the OTA popped up for dec patch which i accepted and now im on dec patch waiting for Oreo . I dont want to flash soak test in case it upgrades the bootloader and i cannot go back to 7.1. Plus i have read there could be problems getting further updates iff i flash the soak.
[Moto Z Play Guides, News, & Discussion] KrisM22:
probably. imho, you're better off playing with Oreo through custom ROMs rather than taking Oreo through OTA...
[Moto Z Play Guides, News, & Discussion] Greamos:
Bootloader changes..
[Moto Z Play Guides, News, & Discussion] tronoslycer:
Hi, when I unlocked my bootloader and installed TWRP, I had masrhmallow. Is there a problem if my bootloader is from MM?

thanks in advance
[Moto Z Play Guides, News, & Discussion] DonnyWhite:
Would be a big problem. MM bootloader didn't blend well with nougat firmware. As in this thread is nougat stock firmware.
[Moto Z Play Guides, News, & Discussion] tronoslycer:
Do you know how to go back to stock in MM?
[Moto Z Play Guides, News, & Discussion] DonnyWhite:
Actually, there's a command "fastboot flash bootloader bootloader.img" which flashes the bootloader. I dont know if it works or not. You may have to ask OP for thatm

But AFAIK, you can't. CMIIW
[Moto Z Play Guides, News, & Discussion] Greamos:
You can flash this, but you need to bo on a custom rom first... So flash a 7.1 rom and try to flash it
[Moto Z Play Guides, News, & Discussion] gercdgcat:
Question

Sorry for my bad english

It didn't work 100% for me. My two IMEIs are at 0. I can only recover them by unlocking again and restoring the backup of the EFS folder. What I want is to have the bootloader locked but with the correct IMEIs. Is there any way to solve that problem?
[Moto Z Play Guides, News, & Discussion] DonnyWhite:
Have you installed Oreo soak test before?
[Moto Z Play Guides, News, & Discussion] Greamos:
Good question
[Moto Z Play Guides, News, & Discussion] gercdgcat:
Yes!! I installed Oreo soak test one time. If I upgrade to Oreo the IMEIs will be okay?
[Moto Z Play Guides, News, & Discussion] DonnyWhite:
You might want to look at this thread.

https://xdaforums.com/moto-z-play/help/lost-imei-flashing-stock-rom-t3531731
[Moto Z Play Guides, News, & Discussion] gercdgcat:
Ok the Nextel weekend I will try it. Now I'm studying ?

Thank you! ?
[Moto Z Play Guides, News, & Discussion] KrisM22:
!

I wonder when I see these if one who now has the Oreo bootloaders uses Alberto's suggestion to go from M to N pre N custom ROM, would also work for O to N pre N custom ROM, - or just brick things.

https://xdaforums.com/showpost.php?p=74069195&postcount=91
[Moto Z Play Guides, News, & Discussion] Greamos:
pff i'm not gonna test that.. sorry xD
[Moto Z Play Guides, News, & Discussion] arrozcps:
Anyone got a mirror? AFH download keeps failing on every mirror they have.
[Moto Z Play Guides, News, & Discussion] Greamos:
Ah, that sucks. Check on the second page :)
[Moto Z Play Guides, News, & Discussion] merscarras:
Hi, Actually im having the same issue with the IMEI how did you do? to recovery the number =) im really appreciate your help :)
[Moto Z Play Guides, News, & Discussion] yssie:
I rooted my phone and have TWRP. I accepted an OTA update and it soft bricked my phone, now it only boots into TWRP. Can I flash a custom ROM and relock bootloader and then get back to stock?

edit: every custom ROM I tried doesn't work, I flash it, it gives back an error "E:unknown command [log]" and when I reboot it goes back to twrp

edit 2: I can boot into a custom room from the bootloader, but powering it normally throws me right into twrp, weird

edit 3: I managed to flash this stock ROM and everything seems to be working! Thanks!
[Moto Z Play Guides, News, & Discussion] _heberlopez95:
This is the ROM with the december patch?
[Moto Z Play Guides, News, & Discussion] Greamos:
Nope, one update before. But u can still take the ota, soon i will update the topic
[Moto Z Play Guides, News, & Discussion] _heberlopez95:
you could upload the rom with the December patch is that I wanted to install 8.0.0 and need the December compilation to install it.
[Moto Z Play Guides, News, & Discussion] Greamos:
I will search that one :)
[Moto Z Play Guides, News, & Discussion] _heberlopez95:
thank you.....! ;););)
[Moto Z Play Guides, News, & Discussion] Rohan_sadhwani:
bro, i have followed the whole procedure, but at the end it says still reqired signed boot.img.

I need the solution.

So, if any one can help.

hanks in advance
[Moto Z Play Guides, News, & Discussion] Haiik:
unable to relock bootloader

Hi!

I installed the stock rom and it worked beautifully, but when i tried to relock my bootloader it goes through the whole process, but when my device reboots, I still get the "this device is unlocked and can't be trusted" message...

CAn anyone help me with this? Thanks!
[Moto Z Play Guides, News, & Discussion] sam00561:
I have same issue im back to stock but bootloder still shows as modified and when it boots up i get bad key error.
[Moto Z Play Guides, News, & Discussion] zipolo:
How about just reinstalling the signed boot.img?

I would like to keep the custom rom, but to quit the warning messages by reinstalling the signed boot.img so I could relock the bootloader.

I get that from the warning message, the boot.img is unsigned when I try to relock using fastboot oem lock.

Any response would be greatly appreciated in advance.
[Moto Z Play Guides, News, & Discussion] Greamos:
Yeah, i'm getting the same problem, but i think thats not possible. Bcs it checks if u have all the original files
[Moto Z Play Guides, News, & Discussion] fernseher:
Does not work for me! :(

got this replys:

--------------------------------------------------------------------

d:\Handy + Tablet\Moto Z Play\Minimal ADB and Fastboot - install Stock>fastboot flash partition gpt.bin

(bootloader) has-slot:partition: not found

target reported max download size of 536870912 bytes

sending 'partition' (45 KB)...

OKAY [ 0.015s]

writing 'partition'...

(bootloader) Validating 'gpt.default.xml'

(bootloader) Security version downgrade

(bootloader) Image primary_gpt failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'gpt.default.xml'

FAILED (remote failure)

finished. total time: 0.094s

d:\Handy + Tablet\Moto Z Play\Minimal ADB and Fastboot - install Stock>fastboot flash bootloader bootloader.img

(bootloader) has-slot:bootloader: not found

target reported max download size of 536870912 bytes

sending 'bootloader' (5115 KB)...

OKAY [ 0.109s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Security version downgrade

(bootloader) Image aboot failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'bootloader.default.xml'

FAILED (remote failure)

finished. total time: 0.422s

--------------------------------------------------------------------

Any ideas? Thanks in advance!
[Moto Z Play Guides, News, & Discussion] gercdgcat:
Were you in february security patch? When I was in December patch, I could relock my bootloader perfectly. But now, I had installed the february security patch and then happened the same as you.
[Moto Z Play Guides, News, & Discussion] jonas210678:
So you are one December security patch again? Please be careful with the next update. And don't flash the Oreo soak test or it will hardbrick your device.
[Moto Z Play Guides, News, & Discussion] fernseher:
Yes, but got an error during install of the OTA. Reinstalled my twrp backups (not rooted) of boot and system - now the phone does not boot - stuck at warning for open bootloader. If i twrp install the (magisk) rooted boot partition it boots! Curious!

Have you found any solution?

---------- Post added at 12:08 AM ---------- Previous post was at 12:01 AM ----------

Yes, i am on december patch again, rooted, because with the original unrooted boot partition it won´t boot. At the bootloader warning screen it says "bad key instead of N/A. Thanks for the warning for Oreo, but how do i get to stock unrooted to install the next OTAs?
[Moto Z Play Guides, News, & Discussion] jonas210678:
I think you can only stay on your rom or on an custom rom until a new stock rom with the February bootloader or a newer one is leaked
[Moto Z Play Guides, News, & Discussion] jonas210678:
Try using the new February firmware, maybe this will help you. The commands should be the same as in December firmware

https://xdaforums.com/moto-z-play/how-to/february-security-patch-available-retbr-t3766283/page2
[Moto Z Play Guides, News, & Discussion] fernseher:
Thanks for your help - will try when I got time.
[Moto Z Play Guides, News, & Discussion] ghostbusted:
Anyone has trying unlocked the february patch and go back to relock using this december patch safely? Just to make sure this are still applicable on the latest February patch
[Moto Z Play Guides, News, & Discussion] fernseher:
Did it now with the linked rom with February patch. Worked without any problems! Now, till there's a proper way to root, I have a looked bootloader again and OTAs should work again. Thanks for your help!

---------- Post added at 10:29 AM ---------- Previous post was at 10:21 AM ----------

I think this will not work. For relocking you should try the ROM with the February patch. That worked in my case.
[Moto Z Play Guides, News, & Discussion] ghostbusted:
Thanks bro, Do the february rom above come with signed boot.img? Or you still have a bad key/na on the splash screen? I wanted to back on custom rom at the moment and want to make sure if i can relock the bootloader with signed key.
[Moto Z Play Guides, News, & Discussion] gercdgcat:
I have the same question. Can I relock the bootloader with the February firmware although it is not signed? What diferences are there relocking with a signed firmware and not signed firmware? I actually have the bootloader version of february security patch (0xC114).
[Moto Z Play Guides, News, & Discussion] fernseher:
I don't know if the firmware is signed or not, but relocking the bootloader worked without any problems in my case! Before the boot warning showed "bad key", but worked with unlocked bootloader also without problems.

---------- Post added at 06:54 PM ---------- Previous post was at 06:49 PM ----------

The bad key or n/a at the boot warning I also had with the original firmware after unlocking the bootloader. I don't think it depends on signed or not. But that's only my opinion :)
[Moto Z Play Guides, News, & Discussion] ghostbusted:
Ah so it's working, maybe OP can trying to add the previously signed boot.img and try if this works?
[Moto Z Play Guides, News, & Discussion] jonas210678:
Every realised firmware for Moto phones is directly from Motorola, signed and official.
[Moto Z Play Guides, News, & Discussion] Greamos:
Will do! :)
[Moto Z Play Guides, News, & Discussion] talktosam:
how to download signed latest rom from Moto? any link you have? if u have kindly share to me plz..? https://t.me/talktosam its my teligram id,
[Moto Z Play Guides, News, & Discussion] tschannik26:
Yes, still working fine. Did it a few days ago
[Moto Z Play Guides, News, & Discussion] BirdMcGee:
Hi! I'm having some trouble relocking the bootloader. I still get the warning after running the commands in the first post, and I am running the commands whilst on a custom ROM (the latest LineageOS ROM).
[Moto Z Play Guides, News, & Discussion] ghostbusted:
I think until the OP update the Thread, anyone who have the february patch don't try to unlock, this current procedure are only work on november patch bootloader. When you unlocked over the november/december patch you are save to relock the bootloader again.
[Moto Z Play Guides, News, & Discussion] gercdgcat:
Of course. The signed firmware in this post has the November patch (bootloader 0xC113). The December patch has the same bootloader 0xC113, but the February patch has version 0xC114. This tutorial is useful if you were, as last, in the December patch. At least until there is a signed firmware from the February patch.

(Sorry, I used google translate)
[Moto Z Play Guides, News, & Discussion] gercdgcat:
This is an OTA, not a firmware. How do you know that is signed?
[Moto Z Play Guides, News, & Discussion] talktosam:
by mistake
[Moto Z Play Guides, News, & Discussion] BRbrazil:
Nothing notice of blankflash for BL (0xc1.14) ?
[Moto Z Play Guides, News, & Discussion] talktosam:
February signed rom available in the internet,

https://rsdsecure-cloud.motorola.co...ubsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip
[Moto Z Play Guides, News, & Discussion] fernseher:
Isn't that the firmware available since weeks in this thread?

https://xdaforums.com/moto-z-play/how-to/february-security-patch-available-retbr-t3766283/page2
[Moto Z Play Guides, News, & Discussion] Unbornlegend123:
So I just attempted this hopefully someone can tell me what I did wrong. Clicked the the first bat that was extracted to go back to stock and it just hangs at waiting for any device. Phone is in bootloader model Xt-1635-02 from telus in Canada. Last ROM was December patch So this should still work for me right?
[Moto Z Play Guides, News, & Discussion] IncendiaryPyro:
You need the Motorola Device Manager drivers for it to work I believe.
[Moto Z Play Guides, News, & Discussion] Unbornlegend123:
I'll double check the drivers and try again. Fastboot recognizes the device still. Or would it do that regardless if the correct drivers are installed?
[Moto Z Play Guides, News, & Discussion] Unbornlegend123:
You were correct that's what I was missing. I assumed windows installed the drivers automatically. Never assume that again lol. Relocked and back on stock. FOR ANYONE WHO WANTS TO KNOW I NEVER GOT A CLEAR ENOUGH ANSWER SEARCHING THROUGH THE THREAD, BUT SUCCESSFULLY USING THIS METHOD WILL REMOVE THE WARNING SCREEN BEFORE IT BOOTS. SO YOU PRESS THE POWER BUTTON AND MOTO LOGO SHOWS UP RIGHT AWAY. NO MORE "This Device has been unlocked and can't be trusted" I repeat this message no longer shows up :D
[Moto Z Play Guides, News, & Discussion] BarkerIsOnFire:
I'm still on the September 2017 security update. Can I assume this should work fine regardless?

Yep can confirm this has worked.

Thanks!
[Moto Z Play Guides, News, & Discussion] gercdgcat:
How do you know that is a signed firmware? One guy tried this tutorial with a february firmware and he said that isn't signed (when the phone boots, shows a notification that say bad key)
[Moto Z Play Guides, News, & Discussion] talktosam:
it is the same version coming from RSD for moto care , https://rsd.cloud.motorola.net
[Moto Z Play Guides, News, & Discussion] echo92:
Usually if others can lock their bootloaders with a certain firmware, it's a good indication the firmware is cryptographically signed by Motorola. You'd usually see bad key if the unlock didn't work (e.g you choose not to unlock or you don't have OEM unlocking enabled in the stock ROM under settings>developer options) if the firmware is good. Also, bear in mind you can only re-lock your bootloader with firmware that has the same patch level or newer as your device's bootloader. For this reason, you may not be able to re-lock Oreo bootloaders until we get the official Oreo stock ROM.
[Moto Z Play Guides, News, & Discussion] djdelarosa25:
Would it be possible to go back to stock Oreo if I'm using a custom ROM (I have the Oreo bootloader)?
[Moto Z Play Guides, News, & Discussion] javed1:
I lost my IMEI, Now showing 0 on both IMEI, I don't have the EFS backup, any solution ?
[Moto Z Play Guides, News, & Discussion] gercdgcat:
If you have been installed any Oreo soak test, return to that soak test and your IMEI are ok again. Please, always you must yo he a backup of EFS.
[Moto Z Play Guides, News, & Discussion] talktosam:
https://rsdsecure-cloud.motorola.com/download/ADDISON_OPN27.76-12-22_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip STOCK OREO

Mega Link

BUILD REQUEST INFO:

SW Version: addison-user 8.0.0 OPN27.76-12-22 24 release-keysM8953_10238.63.04.83R

MBM Version: C1.82

Modem Version: M8953_10238.63.04.83R

FSG Version: FSG-8953-04.118

Build Fingerprint: motorola/addison/addison:8.0.0/OPN27.76-12-22/24:user/release-keys

CQATest App Version: 6.0.3

VERSION INFO FOUND UNDER 'ABOUT PHONE' SCREEN:

System Version: 27.21.24.addison.retail.en.US

Model Number: XT1635-02

Android Version: 8.0.0

Baseband Version: M8953_10238.63.04.83R

Build Id: OPN27.76-12-22

SW Display Build ID: OPN27.76-12-22

Build Date: Mon Mar 26 08:18:42 CDT 2018

OTHER MISC VERSION INFO:

Subsidy Lock Config: slcf_rev_d_default_v1.0.nvm

Regulatory Info (eLabel): regulatory_info_default.png

Blur Version: Blur_Version.27.21.24.addison.retail.en.US

Version when read from CPV: addison-user 8.0.0 OPN27.76-12-22 24 release-keys
[Moto Z Play Guides, News, & Discussion] therealhoberfinkle:
Bootloader still not locking

I've tried this method twice now but my bootloader is still unlocked. I wanted to root my phone and got as far as making a backup on TWRP before getting caught in a boot loop. This thread was what fixed it for me. But realizing that my phone was still running an unlocked bootloader I have spent the last 5 hours trying to just get the thing back to the way it was when I bought it and start from scratch (no rooting for me)

I have the Motorola Device Manager installed.

I noticed that the original post said that in order to relock the bootloader you had to be running a custom ROM, so back at it, I went and correctly installed magisk and then re-ran all of this to no avail. My bootloader is still locked.

Send help, the cavalry, the Spanish Inquisition, whoever.

Here are the messages I get when running the "LockBootLoader.bat":

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) Security version downgrade

(bootloader) Image aboot failed validation

(bootloader) Preflash validation failed

(bootloader) Cancelling 'bootloader.default.xml'

FAILED (remote failure)

Thank you in advance.
[Moto Z Play Guides, News, & Discussion] jonas210678:
Use the Oreo Firmware on this thread and my fastboot commands on site 3 this should work.

https://xdaforums.com/moto-z-play/how-to/guide-relock-oreo-bootloader-to-stock-t3784621/page3