yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
You always want to test and familiarize yourself with your emergency systems.

Don't wait until you NEED it, to learn how to use it.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Borchuck:
Yeah, I've restored system partition on this phone before but never did it this version of TWRP.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] alienyd:
Hi guys,

I seriously need some help with this here.

My new Z2P just arrived yesterday and I wanted to install TWRP and root it.

I tried all TWRP I could find in the forum, both flash and boot with them. Nothing worked, the following happened:

- one TWRP stucked on splash screen

- one TWRP could not get pass decryption, it just shows input field for password. I did not set any password, only Fingerprint + PIN during normal phone setup. That PIN didn't help anyway.

- as some suggested, I did not swipe to enable modification to system. TWRP seemed not able to access internal storage (I don't have an SDcard), it justs showed 0 MB, so I could not do Nandroid backup.. At the time, TWRP could show the folder structure on the storage (mnt, system, etc, etc...) but that's all.

- TWRP also could not format data.

My guess is, TWRP could not decrypt data, so it has no access to do backup. As somebody here said, it is not a good idea to disable verity , so I did not flash it.

I would love to keep the phone as original as possible, just to have TWRP and root, probably Xposed will be installed on it too. So I'd rather keep system unmodified

My Z2P is on ALBUS_RETAIL_7.1.1_NPSS26.118-19-18_cid50_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip

Bootloader is unlocked, ADB on, all commands received on the phone's end.

Anybody has a suggestion/solution for my problem? Thanks a lot!
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] WaltA:
I am totally new to this, and I just got my Z2 Play too. My goal, like yours, is to keep the phone as original as possible, just to have TWRP and root. The path to that, seems to be (1) unlock the boot loader, (2) install the correct TWRP, and (3) install Magisk.

From all have read in forums, and all I have watched on loosely related YouTube videos, one can't decrypt the data partition. That's because no one knows the encryption password (its not your lock PIN). The only step is to completely deleted all the user data, and start again. That's not a bad thing because you already did this once back when you unlocked the boot loader.

Other than for that, I am a bit confused. That's because some people say to do it one way, and yet others day to do it the other way. :confused: For example, with TWRP, do I do a Permanent Flash or do I do a Temporary Boot? Do I "slide" or do I "wipe"? I am just too new to this, to simply known which is correct.

Another example, when someone simply posts to "install Magisk", do they mean to adb or flashboot the .zip file, or to install the .apk app (or both?).

I wish someone would do a YouTube video, for the Z2 Play, that shows step-by-step how to do this. :victory:
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
you answer your own questions.

can a temporary boot be considered installing? no.

initial install can only be done via adb.

have you ever explored the TWRP app? it's only a tool to help you update and or download (official) versions of TWRP. there are no official versions for Z²P yet. So the app isn't very useful. You can use it to change (or install update) TWRP from a "downloaded" file.

try not to over-think stuff. explore and have fun. this is how you learn.

as for keeping things stock, there is only one custom firmware out that I'm aware of, otherwise everyone is stock with root/bootloader unlocked.

we are all on the same thing {except those brave pioneers who use the oreo ROM).

there are no official signed firmwares from Motorola, so once you took your first step, there's no turning back. "in for a penny, in for a pound".

:)
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Alabamajackhammer:
Firmware stuck read only, help.

So every time I try to flash a new ROM or Gapps even, it spits out the error "Cannot restore firmware -- mounted read only"

I went in and double, triple and quadruple checked that all partitions were mounted (excluding USB OTG and SD Card). TWRP says they are, and I permitted modifications, but for some reason I can't write to firmware and it is really getting in my way.

I am trying to roll back a complete back up, not compressed or encrypted, just a simple full backup of every partition. If anyone has any ideas on how to get around this, like performing chmod firmware or something, it would be greatly appreciated.

New XT1710-01 unlocked 64GB. Unlocked bootloader and TWRP is permanently installed.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
When restoring, uncheck firmware. That's your modem.

you shouldn't need to touch it. it's unlikely it was changed or altered so no need to superfluously restore it.

although it's ill advised, I THINK (as I'd never be so brave to try) you can unlock it with one of the bootloader options (qtools/Qualcomm). otherwise you have to somehow use adb to flash it..

I assure you it's a bad, no "very bad" idea ?. But should you succeed, please let me know.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
I am on the initial version of this TWRP, v3.1.1-0

I don't see the option to backup EFS.

Am I missing something?

How to backup EFS?

Also, if I upgrade to the latest version of this TWRP, will I be able to restore a Nandroid, created with the previous version?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
I would mostly say 'Yes'.

I cannot tell you how many times I've mixed and Matched the backups with the TWRP versions.

but if for some reason you can't, you can always 'Fastboot Boot' your original version, or simply downgrade/upgrade as needed.

Speaking of 'Fastboot Boot', you could do that with vrs 3.2.1, to backup your efs, if the version of TWRP you working with doesn't display it as an option.

your efs is one of the selectable options in the backup screen along with system, boot, system image, cache, logo, firmware/modem, etc

just uncheck what you don't want.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Is EFS an option in 3.2.1?

Because EFS is not an option to backup on 3.1.1-0
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] alienyd:
yes it is
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
I should have mentioned that with this TWRP 3.1.1-0 I made Nandroid with SYSTEM, SYSTEM IMAGE and BOOT CHECKED.

Would that Nandroid include the EFS?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] alienyd:
Personally I'm not so sure what the system image includes. What I did was, checking each partition, including EFS, but excluding System Image. The EFS was backed up fine.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
because EFS, is a separate option from System Image, on all releases of TWRP. It's a safe assumption that it's not inclusive.

i don't understand your difficulty here. it's a simple process to change versions or TWRP. You can do it with the TWRP app, just download both versions of TWRP, use the app to flash 3.2.1, make your backup, then use TWRP app again to flash 3.1.1, back if that's your first and true love.

alternatively, you can install 3.2.1, make your backup, then restore recovery partition only (from your old full backup) , and you back to 3.1.1.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Just trying to understand the differences and cover my bases, before any tasks, since official firmware is not really available.

I would have never thought to look for the new version of this TWRP, in the app, because it's not an official release. At least I don't think it's official, because this device is not listed on twrp.me
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
pay closer attention to what I typed. I said use the app to install, not to download.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Oh, ok. Got it.

Just as well, because I can no longer open a fastboot command window. Must be caused by a windows 10 update.

---------- Post added at 12:50 AM ---------- Previous post was at 12:42 AM ----------

I don't see an option to flash a file, in the TWRP app, without selecting a device. Albus is not available.

---------- Post added at 01:00 AM ---------- Previous post was at 12:50 AM ----------

I don't see an option to flash a file, in the TWRP app, without selecting a device. Albus is not available.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
ignore the top button.

TWRP Flash - > Select File to flash - - >

browse to file--> Flash to Recovery.

also should you need to recover from a backup in 3.2.1, uncheck System, then recover it separately after the other recovery is completed.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Mine doesn't look like that. I got it on the pay store, via a link from the twrp.me web site.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
I'm losing all hope for you... ?

read my instructions above, I didn't think I'd have to make you a COMPLETE pop-up coloring

book. lol. the picture is step #2 (two)

now what is the first step?

........ Step one: TWRP flash.

........ Step two: Select File to flash.

........ Step Three: Flash to Recovery.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Sorry to be difficult! :angel:

I found a file to run, to get the OPEN COMMAND WINDOW HERE option back in the Windows 10 right click menu. Attempting to flash new recovery now.

When I get the Z2 Pay back up, I'll checkout your instructions, but I did poke around and didn't see a TWRP app screen that looks like yours.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
well there is only one official TWRP app as far as I know, and I just installed it from play store for you, and only you.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
This is what I see when I select TWRP Flash, in the app. There is no selection to select a file...

BTW, I was finally able to flash TWRP v3.2.1 via Fastboot AND I backed up my EFS.

THANKS FOR HANGING IN THERE FOR ME!
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
grant root privilege?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
It has root authorization in Magisk

\_0_/
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
https://play.google.com/store/apps/details?id=me.twrp.twrpapp
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
That's the one.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
storage permissions?

you aren't the first I've directed down this path, and now I'm tasting crow.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
Was already there.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
OK I'm going to dig into this.

---------- Post added at 03:43 AM ---------- Previous post was at 03:25 AM ----------

Select any TWRP version in select device. You should only need do this once, follow through to web page, but don't download.

return to the TWRP app, and the second option should appear.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] pizza_pablo:
On my way to follow your direction I selected TWRP Flash, and this was the result. Go figure...

Perhaps it was necessary to open five times, checking root privilege and permissions, before SELECT FILE was available. ?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] hans3103:
This works very good, I unlocked the bootloader, installed this twrp and then magisk. I read a lot of problems but I can confirm that on the reteu xt1710-09 / npss26.118-29-22 it works without a problem.

After the bootloader unlock I didn't setup the device, I did it at the end. What I see different is that when I boot in twrp it ask a password to decrypt. Put here the password pincode which was used in the setup. Also when I start Android it ask the password.

When you cancel the password in twrp the internal storage is not available. Acces to the SD card is not a problem.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
NVM
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] hans3103:
Nvm?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
NVM = Nevermind.

It was about TWRP, and it's slow boot (into TWRP) with Adoptable storage.

it seems that partitioning the SD card speeds it up.

so nevermind.. :) :)
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] hans3103:
OK.... I am happy with it....
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] andleska16:
I install TWRP 64 Bit, but whenever I enter the Fastboot mode and I go into Recovery Mode, the screen goes out a while and then shows the Android Robot with the phrase "No Command", and whenever I want to use the TWP I have than to be installing again. :confused:
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
Overinstall : Next time you ADB install TWRP.

Ttry to it two or three times in a row.

Also you could try using the TWRP app to flash it.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] andleska16:
Thanks, I'll try this, is this TWRP application the one you find on Google Play? :confused:
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
Yes. you must give it root access to be able to flash locally stored file.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] andleska16:
Okay, thanks. :)
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] diegow121:
Você sabe como instalar o teto direto no celular não consigo sem computador
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] andleska16:
Só com Computador, procura algum amigo.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] diegow121:
Eu precisava trocar o IMEI e não estou conseguindo achar um método eficaz pode me ajudar ? Ou algum root albus z2 play que funcione com o bootloader ativo sem twrp?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] The Analog Kid:
Ok. Everyone talks about "temporary boot" but, how exactly is boot temporary? I mean, if it is "temporary" which are the circumstances that will make it disappear? Also, if I go with temporary boot, I assume I would be able to backup stock recovery with Flashify, for example, and then proceed to "permanently" flash TWRP to make it fully functional, I guess. Am I right?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] The Analog Kid:
Oh yes, this is always confusing "as hell"!!!... But you know, somehow we all are always new to this thing. I guess so, because everytime I dare to switch devices (and because I just can't stand a smartphone without root) I always get confronted with this kind of contradictory stuff. You start in peace, searching for your specific device's root method, just to find the usual ADB procedures remain unchanged, thankfully (reason why, at this point I can say I'm able to manage these with "eyes closed") however, you can easily get stuck with issues that come with new "security" tricks unveiled for newer devices buried in their operating systems, and that's what we actually look for: the newest tricks against the latest obstacles. Nevertheless, we should take into account that rooting is not the piece of cake it used to be, so in spite of developers always finding new ways, they now have bigger challenges to deal with and it forcefully takes longer than before; also, most of us users tend to fail as part of a community, letting everybody know about our issues, but keeping fixes for ourselves when they finally arrive... not nice.

Me, I always do my research before I even get the new device and I've found, as of today, that there is no complete, fully reliable, step by step guide that fits you anywhere. Ever. I just can't rely on a single method, because there is always a lack of steps, explanations or words; they usually are earlier methods, they simply stopped updating... or everything you like at once. Point is, you end up building your own method out of the multiple methods and discussions you can find, which typically get hotter, by the way, for the first six months after the release of the particular device in question; then, expect for things, interest, development and all to start slowing down. Right now, my quest is for a specific Z2 Play proper rooting on Android 8.0... there isn't any. Anywhere that I can find. OS version is important when it comes for root, so I'm pretty much... stuck for now. Or I can go and TRY with 7.x.x stuff. Nah. I'll keep searching and figure it out. As always. Unless "one works for all" this time. I don't think so. Good luck.

---------- Post added at 06:44 AM ---------- Previous post was at 06:24 AM ----------

Probably no one answered your IMEI question because this is not an IMEI thread; on the other hand, root without TWRP on Moto devices... actually I don't know of any or even if it's possible at all; though, you can always try the likes of Kingroot or One-click root or stuff like that. Who knows...
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] allstar21369:
I just received my Moto Z2 Play in the mail and have unlocked the bootloader but am unsure which TWRP to flash (or boot), and how to backup the stock system/EFS. From what I can tell I'm supposed to boot a custom TWRP (or maybe the one posted in this thread) and then backup my whole system. I can't do this, however, because it's encrypted... so I'm sort of figuring I'm going to have to wipe everything in order to backup everything and then install magisk from recovery... and then flash recovery?

Any advice?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Borchuck:
You only have to wipe data partition and since it is a brand new phone you're not loosing anything. If you're planning to use stock rom than flash twrp from this thread -it's working very good for me. You can choose on which storage you want to place your backup in "mount" menu.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] allstar21369:
So I should wipe the data partition after booting into TWRP, but should I leave encryption enabled after wiping? Some guide (here -> https://www.gadpost.com/2017/09/21/flash-twrp-recovery-root-moto-z2-play-retus-variant/) said something about flashing a file called "DM-Verity ZIP" and something else about "Forced Encryption Enabler 5.1" but the link to both files is crossed out and dead...

And after I wipe the data, is that the point at which I flash Magisk?

Mostly I'm needing to know what to do regarding encryption. It sounds like I need to wipe data, enable encyrption and set a PIN, then boot into recovery again and sideload Magisk (can I install Magisk 16.4 or does it have to be 14.3 like some guides suggest?)
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Borchuck:
If you want to disable encryption you can flash no-verity-opt-encrypt-5.1 (which I've done) -in attachment.

Yes, you wipe data partition after booting into twrp, also you can safely flash this version, I'm using it since very begining and haven't noticed any issue. After this begin with Magisk, I'll start from 13.3 and then update to the newest available version (I'm on 16.0 and everything working fine).
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] allstar21369:
Do I need to start with Magisk 13.3 and upgrade version by version or can I just start with the latest (16.4)?

Also, I'm going to keep it encrypted (it says it is under "Security" but I don't think I ever set that up).
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Borchuck:
I was updating it one by one as it was released so I really can't tell.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] allstar21369:
I now have it all sorted out.

TWRP never finished trying to decrypt data so I long pressed the power button and eventually went here -> https://xdaforums.com/z2-play/development/twrp-moto-z2-play-t3729531 , downloaded "twrp_albus_3.1.2_r18_64.img" and in adb used the command:

fastboot boot twrp_albus_3.1.2_r18_64.img

This TWRP looks a bit different than all of the others but it let me boot up and use my recently created PIN code to actually decrypt my data and make a full backup. After that I just installed Magisk (the latest one, 16.4) as indicated in this guide -> https://gist.github.com/eexit/e6d5fc0984e1c7f25376d3dafa819792 and everything is fine. I never even flashed TWRP, just booted it.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Bcl2:
Guys I need help. I cannot make the recovery to be permanent flashed. The first time it works but if I boot the system and then reboot in recovery it shows me ''No command''.

I read all the thread looking for a solution but I could not find it.

Here is what I've done:

-Booted to bootloader

-Flashed the recovery (fastboot flash recovery twrp-3.2.1-0-albus.img)

-Booted to recovery

-Tried many solutions: only format data, only flash the no-verity-opt-encrypt-5.1.zip, format data and then flash the no-verity-opt-encrypt-5.1.zip, flash the no-verity-opt-encrypt-5.1.zip and then format data, but non of them are working. If I flash no-verity-opt-encrypt-5.1.zip, my phone bootloops at the ''unlocked bootloader'' warning screen. If I format data, the system boots but during the boot shows ''wait while your phone is being encrypted'' and then when I try to reboot in recovery it shows ''No command''.

I cannot figure out what I'm doing wrong, please help me.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
in my experience, I've only done it once.

wait until that black "Encrypting your phone" screen pops up, let it go to the blue "Welcome" setup screen. stop there reboot, .

flash TWRP (again) boot into it, flash Magisk, enter the work around in terminal.

echo KEEPVERITY=true>>/data/.magisk

echo KEEPFORCEENCRYPT=true>>/data/.magisk

cross fingers,

you don't need DMverity anymore.

but if you want to use that method instead, just flash it after the blue welcome screen, ignoring the terminal commands above, (but terminal method is better) . .

the data partition has to be created by the system, this is why you let it boot first.

atlest in 'My Experience'
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Bcl2:
Yes, you were right, but:

1) These things should be written in the 1st post, along with the fact that format data is not necessary and could lead to a bootloop (not always, but happened to me twice)

2) After installing magisk, TWRP stays permanently and root checker says that I'm rooted, but the root does not work properly (e.g. adaway fails to apply the ad patch, apps for removing system apps don't work, flashing the youtube vanced module has no effect, flashing other modules can lead to a bootloop etc etc...). Also, updating the f2fs loopback module makes magisk manager to crash.

I hope we will get a more stable rooting method in future :/
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] timberman4444:
I've tried to install this on the Oreo build but every reboot the TWRP goes away, when I try to flash magisk it says the installation is correct but the phone doesn't boot at all. This is due to magisk or TWRP?
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] kewlzter:
if you have a backup from your 7.1.1, with TWRP, you can restore only the recovery partition. I've done this a few times, works OK. Remember, let your phone boot up OK first before installing/altering it.

.

---------- Post added at 06:04 PM ---------- Previous post was at 05:59 PM ----------

I don't think you need F2FS Loopback, anymore. I normally install it, but didn't this time, and things are working fine.

as for other issues, this phone is a pain. But just realize The rooting does work, you might have missed a step, done it in wrong order, or you simply have to try and try again until you get it.

The number of people who are successful, far outweigh the number who fail.
[Moto Z2 Play  ROMs, Kernels, Recoveries, & Other D] Bcl2:
I've not missed any step (there are literally 2 steps lol) but maybe it's because of the f2fs loopback. I will try all over again without installing that module. Just to make sure, can you confirm that adaway and vanced are working fine on your phone?