yashsingh1/xdaforums huggingface dataset:
[Moto Z Play Guides, News, & Discussion] Greamos:
Yes, it should work if youre phone model is the number xt1635-02

(You can find the code on the bottom of the phone, between to the USB-C and headphone jack)

:)
[Moto Z Play Guides, News, & Discussion] Stephan.135:
Is it possible only to flash the recovery from this package to get back to stock recovery. My problem is that is have unlock my Phone and than flash Twrp recovery but NO CUSTOM ROM only Twrp. But with Twrp i cant get OTA Updates.
[Moto Z Play Guides, News, & Discussion] Greamos:
You could, but you wont get any ota updates. Thats because your bootloader is unlocked
[Moto Z Play Guides, News, & Discussion] ghannna:
Hey I'm in stock 6.0.1 sept 2016 security patch. Can i relock my bootloader. Do i need the key that i used to unlock my bootloader. I think i lost it please help me
[Moto Z Play Guides, News, & Discussion] Stephan.135:
Are you sure that the open bootloader is a problem for Ota Updates. Yesterday i flash the recovery.img from the original Firmware and now i have stock recovery. I load the Ota Update and start install and the update starts but after some seconds it fail. I reboot my phone and there is a message that the update fails and nothing new is installed. What can i do?
[Moto Z Play Guides, News, & Discussion] Greamos:
Yes! Just follow what i did! You dont need any keys :) (go to the bootloader, and use the codes)
[Moto Z Play Guides, News, & Discussion] tag68:
This is just wrong. If you unlock bootloader and do not modify anything else, OTA does work fine. If you modified things and restore some complete stock firmware, OTA works fine. If you did some modifications and undo everything you changed (including dirty-flags of partitions), OTA works fine. Only if you (or some of your apps) do modifications and you don't remember (or know, one command remount -rw,system is enough to cause troubles) and try to undo your modifications to the firmware and overlook something, OTA will be announced, but installations fails.

There may be system partition altered. Or the boot partition modified (kernel changed? was it rooted?). Or the recovery the wrong version, not fitting to your installed firmware. OEM partition was a problem for me, even when the phone was new, I had to reflash it after my first unlock, using a firmware downloaded somewhere.

There is some log where you'll find which partition is the problem. See in /cache/recovery. You may not be able to access these files outside of twrp, there you can some copy log command (do no know where it puts it) or manually copy the files to some place where you have access to.
[Moto Z Play Guides, News, & Discussion] Greamos:
Does someone have signed firmware for the different devices?
[Moto Z Play Guides, News, & Discussion] Greamos:
Ow, didnt knew that:confused: learned something. Thanks
[Moto Z Play Guides, News, & Discussion] tag68:
If you want to use the firmware from the OP to flash complete firmware and want to be able to receive OTA without relocking (staying unlocked), execute the first block (until oem lock).

If you do not relock (which afaik always wipes data) and omit "erase userdata" - this is the wipe which deletes your app, settings, media etc. - your data should survive fine. Note that still anytime anything can go wrong, do a backup of data partition and don't forget to save data/media separately, as this is never part of Nandroid. And always be sure not to touch /efs, except for backup which is strongly recommended (noone can restore your IMEI for you in case its contents is lost, this is the part which is individual for every smartphone).

Disclaimer: I did not test anything. My own device is still running MM patchlevel 12/16.
[Moto Z Play Guides, News, & Discussion] ghannna:
Update

Will I be able to get system update after relocking the bootloader. I am in unlocked bootloader but I am not getting any update.
[Moto Z Play Guides, News, & Discussion] Stephan.135:
My phone is rooted via Magisk is this the problem why i get no Ota. How to go back and unroot it correctly? Thanks for your help
[Moto Z Play Guides, News, & Discussion] Greamos:
Yes but your phone will be empty again
[Moto Z Play Guides, News, & Discussion] ghannna:
Empty in the sense I wont be having any user data. Am I right ?
[Moto Z Play Guides, News, & Discussion] tag68:
For unroot it should be enough to flash boot.img. If you did not do any modifications on system, OEM, Logo, whatever using the power of root. There will still exist an app called MagiskManager in the data partition, but you may let it installed or uninstall, whatever you want. It will not have access to its core utilities anymore, which were installed in the boot partition. It may be used to modify some boot image to install MagiskSU again after OTA.

As already written: You may also decide to just install everything from this ROM, omitting the complete block with oem lock and the line erase userdata, then you can be quite sure to be able to do OTA independent of what you modified before, and you should be able keep your data (including MagiskManager of course). But you also keep the ability to boot twrp to do Nandroid backups, and you may root without data loss - all of which is not possible if you do relock.

I'd recommend Relock for two cases:

1. You rely heavily on an app which asks SafetyNet if the device is trusted, and you can not live some time without that app after SafetyNet does an Update to its root check, then it will fail until Magisk Hide updates too.

2. You know you will lend your device to someone who you don't trust (not to connect your device with a USB cable to his/her computer), and want to keep some details on the phone secret from that person.

In all other situations my opinion is that the state relock can only be a disadvantage.
[Moto Z Play Guides, News, & Discussion] Kdx10:
Hi sir. Good day, may i clarify something with your help. I mean at this moment i am completely in stock and lock bootloader. I have reteu 7.1.1 and i want to ask something if you dont mind

1. I want to unlock my bootloader and i jus want to do "fastboot boot twrp twrp.img". My question at this point is, is it that one safe?

2. If i just boot the twrp and do a back up right after it boots on twrp menu then if OTA arrives in my place, can i just restore that back up of mine and receive and install the OTA successfully.

The thing that i want to root my device is because i want to remove all those bloatwares all over my phone. 2nd, use the power of root to install soundmods.

Is it safe to do bro? Or any tips that u can share on me. Im pretty sure one or 2 more months oreo(8.0) will arrive in my place and i want to take it via OTA.

By the way thank you so much bro. Really i deeply thanked you. I hope you can help me and Godbless you sir.
[Moto Z Play Guides, News, & Discussion] Greamos:
Yes, you could boot twrp if your bootloader is unlocked.

1 yes, it is safe. Aslong as you remove magisks root before you update the ota

2 i dont know, i have never used soundmods. If it changes files in your phone. I wont think you will be able to install the ota. Because some files are changed.

But, you could just unlock bootloader. (If you unlock your bootloader everything will be erased) and when the oreo update comes. You just relock youre bootloader. And installs the ota :)
[Moto Z Play Guides, News, & Discussion] tag68:
Boot, System, Recovery and OEM are being used for OTA for sure, data is your userdata which should be nearly completely independent.

Think it should be fine.

Regarding debloat, I recommend not to do it. You won't save much, but the risk something's not working afterwards is real. Motorola is not bloated that much.

For soundmod, have a look at the existing Magisk modules. There exist some afaik for this special topic. Then you will keep system unchanged (changed virtually by Magisk) which also means that it will survive OTA: disable Magisk by flashing boot, do OTA, install Magisk and your modules should work the same way as before.
[Moto Z Play Guides, News, & Discussion] zeezk_here:
Thank you very much. Followed the procedure step by step and succesully flashed stock rom, bootloader has been successfully locked too. Just one problem, Software Status still shows as 'Modified' in bootloader, any idea how to revert it back to Official?
[Moto Z Play Guides, News, & Discussion] ghannna:
are u getting update ? previously u were in which android version?
[Moto Z Play Guides, News, & Discussion] Greamos:
Weird, i think you cant change that. But we should still be able to install the ota's
[Moto Z Play Guides, News, & Discussion] Greamos:
We should be getting updates, but Motorola haven't released one yet. So we need to wait
[Moto Z Play Guides, News, & Discussion] ghannna:
I'm in 6.0.1 if i follow this step will i be automatically updated to nougat first
[Moto Z Play Guides, News, & Discussion] varun jashnani:
Yes you will be on the second latest nougat firmware, then u will receive ota for the latest update. Just dwld the mentioned file and follow the said steps.
[Moto Z Play Guides, News, & Discussion] ghannna:
(bootloader) slot-count: not found

(bootloader) slot-suffixes: not found

(bootloader) slot-suffixes: not found

max-sparse-size: 268435456

finished. total time: 0.015s

i am getting this error guys i executed only first two scripts of this post
[Moto Z Play Guides, News, & Discussion] ghostbusted:
Just ignored it, continue to the next command until finish and you good to go
[Moto Z Play Guides, News, & Discussion] Greamos:
Jup
[Moto Z Play Guides, News, & Discussion] chico_salvador:
I am on a custom build (118-22-2-8) rooted with Magisk and TWRP. Do I need to unroot first or I'm good to go anytime?
[Moto Z Play Guides, News, & Discussion] iscjarquin:
Thanks for this. I'm finally relocked again. Thank you.
[Moto Z Play Guides, News, & Discussion] Gilguit7:
Can you make a video tutorial?

Can you make a video tutorial, because i don't know English very well?
[Moto Z Play Guides, News, & Discussion] zeezk_here:
I was on stock nougat rom which i installed by flash able zip.

---------- Post added at 06:56 AM ---------- Previous post was at 06:55 AM ----------

Yes, hopefully. Was just curious to know the reason though. :confused:
[Moto Z Play Guides, News, & Discussion] Greamos:
Ah okay
[Moto Z Play Guides, News, & Discussion] Greamos:
Good to go :)
[Moto Z Play Guides, News, & Discussion] Greamos:
Will think about it
[Moto Z Play Guides, News, & Discussion] chico_salvador:
Worked perfectly! Thank you!!
[Moto Z Play Guides, News, & Discussion] jatinkhatri:
Im on Crdroid 7.1.2 + latest TWRP , is it ok to flash this ROM through ADB ?
[Moto Z Play Guides, News, & Discussion] chico_salvador:
Worked like a charm

Hey SupahCookie, my bootloader is showing that I have a "modified" ROM / software. Am I still gonna be able to get OTA updates? Oreo is around he corner in Brazil.
[Moto Z Play Guides, News, & Discussion] Greamos:
Yeah, we should get ota's
[Moto Z Play Guides, News, & Discussion] :
Hey there, mate.

I did every little step you've said to do but even though, I'm not being successful.

I've installed several different ROMs before and I'm going to sell this phone and I'd like to remove root, install stock and lock the bootloader so the horrible message "cannot be trusted" get gone.

Is there any other way?
[Moto Z Play Guides, News, & Discussion] Greamos:
What device model is your phone?
[Moto Z Play Guides, News, & Discussion] FredRaylander:
Thank you! Working Flawlessly on my Moto Z Play! THANKS A LOT!
[Moto Z Play Guides, News, & Discussion] hamudistan:
Stock or custom ?

Sorry, wrong thread
[Moto Z Play Guides, News, & Discussion] :
Hello there, it's the XT1635-02

http : // infinity . help/motoz.jpg
[Moto Z Play Guides, News, & Discussion] FredRaylander:
Stock

Came back to Stock using it, relocked sucessfully. Great Dev :) :)
[Moto Z Play Guides, News, & Discussion] Greamos:
Thanks!
[Moto Z Play Guides, News, & Discussion] Greamos:
Than it should work. Can you give me a log something?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Didn't work here on my Z play... It gets stuck to the Moto Logo, altough the bootloader is locked again. :(

I'm unable to access the recovery mode of my phone, and trying to recover it for one week.

Best regards from Brazil
[Moto Z Play Guides, News, & Discussion] :
Here is what I've done.

http :// infinity.help/fastboot.jpg

Is it enough or there are any other logs that I can provide you?
[Moto Z Play Guides, News, & Discussion] Milly7:
What model do you have?
[Moto Z Play Guides, News, & Discussion] Greamos:
Phone model..?
[Moto Z Play Guides, News, & Discussion] Greamos:
Wow mm thats weird, i'm gonna check it better after new year. It should work :-/
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
XT1635-02

---------- Post added at 04:41 PM ---------- Previous post was at 04:38 PM ----------

XT1635-02, sorry.
[Moto Z Play Guides, News, & Discussion] Greamos:
Mmm it should work, weird

Can you go to the bootloader?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Yes, i can. But not in the recovery Mode.

In the log, it signed with the bad key, normally. So with your script it locked the OEM again, i wanted it. Normal, nothing else.

But when it is about to boot, it stops in the moto logo =(

Here is the phone info: https://imgur.com/a/G2DVu

Before that, i also tried some others ROMS, basically the ADDISSON ones. RETBR and RETAIL.

Sorry for any english mistakes.
[Moto Z Play Guides, News, & Discussion] Milly7:
Since it hasn't actually booted yet, did you try to unlock the bootloader again using the method you did originally?

Additionally, moving forward, I would suggest that no one locks the bootloader until they are sure that the phone boots into the OS.
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Yes, i can unlock and lock again, since i run the correct scripts.
[Moto Z Play Guides, News, & Discussion] Greamos:
I have no idea why it isnt working.. it should work, i will try to solve this
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
I flashed the versions of: ADDISON_NPNS26.118-22-2-8_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

and XT1635-02_ADDISON_7.1.1_NPN26.118-22-2_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml

And i ran the scripts to spacechnks 1-12 normally, and then the script to lock the bootloader. The scripts are normal, no errors. Should i send it to you ?

Thanks for the help.
[Moto Z Play Guides, News, & Discussion] Greamos:
Yeah do it
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Is it recommended to run the script line by line, or just select all, copy and paste?
[Moto Z Play Guides, News, & Discussion] Greamos:
I copy paste, but the last line, you need to click on enter
[Moto Z Play Guides, News, & Discussion] Greamos:
Mmmm it should work.. can you try to do it one for one?
[Moto Z Play Guides, News, & Discussion] Greamos:
Mm okay, i'm gonna relock my bootloader tomorrow again.. and gonna search for a fix..
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Thanks a lot man. The version that i flashed is the same: ADDISON_NPNS26.118-22-2-8_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml
[Moto Z Play Guides, News, & Discussion] :
Hey mate.

Anything I should do?
[Moto Z Play Guides, News, & Discussion] Greamos:
Same as my post above, i'm gonna relock my bootloader again, and check if i get the same error. But what was your software channel? It shouldn't change anything.. but thats my only idea why it isnt working
[Moto Z Play Guides, News, & Discussion] Greamos:
Okay, and what was your software channel?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
TIMBR -------> TIM = Cell phone operator.
[Moto Z Play Guides, News, & Discussion] Greamos:
okay, i've locked my bootloader today twice. and i didnt got any errors.. so its still working for me, i have no idea why it isnt working for you guys,

maybe it the software channel..

maybe its the mobile number..

i dont know
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
why am i unable to flash twrp ?
[Moto Z Play Guides, News, & Discussion] Greamos:
Uhmm because the bootloader is locked?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
No, not even if its unlocked i cant
[Moto Z Play Guides, News, & Discussion] Greamos:
Uhmm do you have a log?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
i cant flash it again, it succeeds but goes into moto logo and stucks

---------- Post added at 02:32 AM ---------- Previous post was at 02:26 AM ----------

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (4690 KB)...

OKAY [ 0.179s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.165s]

finished. total time: 0.348s

C:\Program Files (x86)\Minimal ADB and Fastboot>
[Moto Z Play Guides, News, & Discussion] tag68:
After flashing twrp it may be necessary to boot into recovery. If you boot Android without starting flashed twrp recovery, stock ROM restores original recovery.

Can this be the cause of your problem?
[Moto Z Play Guides, News, & Discussion] Greamos:
Try it ;p
[Moto Z Play Guides, News, & Discussion] Mr_prfssnl:
I can't download the file. The link seems to be broken. It keeps giving me a 404 :/
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Here follows the log:

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery twrp.img

target reported max download size of 536870912 bytes

sending 'recovery' (11370 KB)...

OKAY [ 0.437s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.250s]

finished. total time: 0.687s

C:\Program Files (x86)\Minimal ADB and Fastboot>

So, even when i selected recovery mode option it went to the id N/A screen....obviously that is "n/a" because i have erased userdata again...so i'm with no ROM.

I think that my bootloader might be broken or something.
[Moto Z Play Guides, News, & Discussion] chanti548:
Link is broken, i am getting 404 error
[Moto Z Play Guides, News, & Discussion] Gilguit7:
Now Bootloader of my Moto Z Play is relocked!!!

Now Bootloader of my Moto Z Play is relocked!!!

But I think it is necessary say how to do it.

1 - Download Stock ROM in the link in this site and extract the files

2 - install adb minimal fastboot

Download it in this link: I couldn't post the link. Please look for it.

3 - after install adb minimal fastboot, click the high button on icon minimal fastboot on desktop, and open file location and copy extracted files of rom to folder of minimal fastboot.

4 - press shift and click high button and select "open command window here"

5 - Copy all commands how is in this site and past and wait.

sorry for my writing mistakes I do not know English very well.
[Moto Z Play Guides, News, & Discussion] vinnegsh:
links are down, rip :(
[Moto Z Play Guides, News, & Discussion] Gilguit7:
really. I did not pay attention. thank you.
[Moto Z Play Guides, News, & Discussion] Greamos:
Uploading :)
[Moto Z Play Guides, News, & Discussion] Greamos:
changed it :) thanks for the idea :P
[Moto Z Play Guides, News, & Discussion] Greamos:
new link :) https://drive.google.com/file/d/19HvPKGDO7zvFOkj9jp5yQTmnlF5fEwjI/view?usp=sharing
[Moto Z Play Guides, News, & Discussion] sebx_g1:
What is this?

Never mind wrong question in wrong thread.

Wysłane z mojego XT1635-02 przy użyciu Tapatalka
[Moto Z Play Guides, News, & Discussion] Gilguit7:
Thank you, friend!!!
[Moto Z Play Guides, News, & Discussion] Greamos:
np :D
[Moto Z Play Guides, News, & Discussion] Greamos:
pm me if it isnt working, because i'm making a file that you can flash, so you dont need to flash all those files
[Moto Z Play Guides, News, & Discussion] vinnegsh:
worked flawlessly, thank you!
[Moto Z Play Guides, News, & Discussion] AmulyaX:
What's your model number and region?
[Moto Z Play Guides, News, & Discussion] Greamos:
You need to be on a custom rom, to lock the bootloader :)
[Moto Z Play Guides, News, & Discussion] Greamos:
You need to be on a custom rom to lock the bootloader
[Moto Z Play Guides, News, & Discussion] Greamos:
You should be on a custom rom to lock the bootloader
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Thats not the contrary ? I should use a signed ROM to lock my bootloader.
[Moto Z Play Guides, News, & Discussion] Greamos:
You can only lock your bootloader when you are on a custom rom (you will go back stock..) but otherwise he wont check for some files because you already on stock

So just flash a custom rom with twrp, and try it again ;D
[Moto Z Play Guides, News, & Discussion] W3ND31:
Man, plz, put this information on the OP. If possible in red, caps and all of those stuff to people don't miss this info.
[Moto Z Play Guides, News, & Discussion] Greamos:
Wass planning it ;p
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
unfortunately i'm unable to flash twrp, even with the bootloader unlocked. Think ive lost my phone
[Moto Z Play Guides, News, & Discussion] Greamos:
Why?
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Because ive flashed so many versions of ROMs, and not even one of them worked out to succcess....and when i try to flash or boot twrp.img it fails, only goes onto moto splashcreen.
[Moto Z Play Guides, News, & Discussion] Greamos:
Lol what versions? Moto z play versions? XD
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Yep, the adison ones...i tried 6.0.0, 7.0.0....and MY ROM....the 7.1.1
[Moto Z Play Guides, News, & Discussion] Greamos:
Try the topic for unbricking your device, (idk how it works..)
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Ok....My main problem is that i'm unable to flash twrp....and cant recovery mode....So...my fastboot mode works...i dont think that is a brick, actually.
[Moto Z Play Guides, News, & Discussion] Greamos:
Try to flash my recovery.img
[Moto Z Play Guides, News, & Discussion] kennedytruong:
I am on Stock 7.1.1, can I relock my Bootloader as this guide ??
[Moto Z Play Guides, News, & Discussion] jhonatanstv:
Still the same...i dont have not even the fun to flash my phone anymore...its just on my desk waiting...
[Moto Z Play Guides, News, & Discussion] Greamos:
No, you need to be on a custom rom to flash this..

Otherwise some files wont trigger, and that will fail with locking the phone..

So, flash twrp and install a rom. And after that, you can relock your moto z play
[Moto Z Play Guides, News, & Discussion] aly19:
Worked perfectly on my Koodo Moto Z Play, thanks!
[Moto Z Play Guides, News, & Discussion] Greamos:
No problem ;D
[Moto Z Play Guides, News, & Discussion] logotoy73:
Thank you. It worked.
[Moto Z Play Guides, News, & Discussion] serg761:
Hi guys, I have an xt1635-03. Can I flash this stock rom on my device? The rom installed is a chinese_custom with bootloader unlocked (bought from gearbest).

Thanks a lot
[Moto Z Play Guides, News, & Discussion] Greamos:
No, this is only working for 02
[Moto Z Play Guides, News, & Discussion] :
Hello there...

Had to activate the OEM unlock in the advanced configs in order to be able to relock it... After doing this simple thing, worked like charms.
[Moto Z Play Guides, News, & Discussion] AmulyaX:
What did you exactly do? Can you specify the edits in "advanced configs"? It'd be helpful.