yashsingh1/xdaforums huggingface dataset:
[Moto Z Guides, News, & Discussion] f2:
Right after flashing TWRP-3.1.0-GRIFFIN-20170415-MODS.img and booting into TWRP for the first time I am asked for a password. It says:

Mount

Decrypt Data

Enter Password.

____________________

I can select 'Cancel', but then I can not make a backup, because it says:

'Failed to decrypt data. Unable to decrypt with default password. You may need to perform a Format Data.....'

What's going on here?

The phone automatically reboots into recovery. I can not push the TurboZ_v1.2_N.zip because I get this error in return:

error: device unauthorized.

This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong.

Otherwise check for a confirmation dialog on your device.

Well, this is not looking good ...

edit: This was the weirdest rooting process I have ever had. In the end it worked, but it took me 4 hours and I can not really say what my solution was. After booting 300 times, the issue suddenly disappeared.

For everyone who gets the 'This adbd's $ADB_VENDOR_KEYS' error message: You have to revoke the fingerprints for USB debugging, and deactivate and activate it again. That's the solution.
[Moto Z Guides, News, & Discussion] doree:
Yep, I'm a Saturn victim too! :P

Anyway, fixed my issue by flashing a Nougat Stock Rom Image. Everything's fine again.
[Moto Z Guides, News, & Discussion] treibstoff:
i read in another thread that you use a RETBR Rom to return to stock. you have a EU Moto Z right? is the RETBR fully compatible with OTA Function of RETEU? I need a full backup rom before i will root it. thx
[Moto Z Guides, News, & Discussion] doree:
Yes, it is.
[Moto Z Guides, News, & Discussion] stunner2002:
I flashed manually from 6.0 to 7.0 to stay on old bootloader.

Can I OTA update (from NPL25.86-30 to NPL25.86-31) or will it override my bootloader? If no, will it override my Tubro Kernel and/or root?
[Moto Z Guides, News, & Discussion] topcaser:
The guide begins with:

"flash my custom modded TWRP"

I am new to Motorola. Is there a guide how to flash something?
[Moto Z Guides, News, & Discussion] chinrod:
it worked but my wifi doesn't work, any help?
[Moto Z Guides, News, & Discussion] Jess813:
Is there a MAC version.
[Moto Z Guides, News, & Discussion] mstrack:
Is this guide/twrp version still up to date or necessary?

Just askin beacause twrp is official here https://twrp.me/devices/motorolamotoz2016.html
[Moto Z Guides, News, & Discussion] ethanscooter:
Can you address in the FAQ that this breaks wifi? How do I fix this?
[Moto Z Guides, News, & Discussion] Fukato1987:
sorry for my question but is it possible to unlock bootloader without bootloader key(i don't want to lose my warranty)?
[Moto Z Guides, News, & Discussion] Kibu21:
Hello everyone, I successfully followed all the steps to this tutorial and it worked (thanks), but now I have just one issue, is that my wifi isn't turning on or rather I can turn it on but it doesn't detect any routers so it's constantly scanning for routers without any names popping up, also the wifi symbol doesn't pop up on the top right. Does anyone have any tips? I own a Moto Z (1650-03) version.
[Moto Z Guides, News, & Discussion] JohnnyHempseed:
What exactly do you mean by this?? Myself and several others have WIFI BROKEN - please help!
[Moto Z Guides, News, & Discussion] doree:
Just flash the modified kernel in TWRP and everything should be fine: https://xdaforums.com/devdb/project/dl/?id=24211
[Moto Z Guides, News, & Discussion] William-H:
1. unzip stock ROM XT1650-05_GRIFFIN_RETCN_NCC25.106-11_cid11_subsidy-DEFAULT_regulatory-DEFAULT_CFC.xml.zip(this is Chinease version)

2. enter bootloader mode( adb reboot bootloader)

3. using fastboot commands to flash system(only system)

fastboot flash system system.img_sparsechunk.0

fastboot flash system system.img_sparsechunk.1

fastboot flash system system.img_sparsechunk.2

...

4. flash latest TurboZ Stock kernel with TWRP

5. flash latest SuperSU by chainfirewith TWRP

everything works fine.
[Moto Z Guides, News, & Discussion] FastKatt317:
Is there a YouTube video with someone going threw the steps to root the Z ?
[Moto Z Guides, News, & Discussion] juliospinoza:
My friend, I did exactly what you said but I cannot get root. I flashed TWRP (your last version), the last kernel and SU, and at the TWRP says "cannot mount fsg, modem, data" and the system at security keeps as "encrypted". Also, yesterday I flashed the Turbo kernel and made a full reset and at the security part was "unencrypted" and tried to flash the SU and phSU and nothing, Weird thing is that after remove the encryption by Turbo z kernel and trying to format the data partition via fastboot says "can't format data as RAW". Any clues my friend? I am trying to get root because the miracast or flash any custom rom, but the forced encryption is making me crazy.

Thanks

---------- Post added at 11:27 AM ---------- Previous post was at 11:06 AM ----------

exactly what steps do you need? because is very easy, remember that you need to unlock your bootloader first. I can guide you
[Moto Z Guides, News, & Discussion] FastKatt317:
I find it easier to follow along with a video I can pause. Plus they have links all together.

Do I unlock the Bootloader on the Motorola site?
[Moto Z Guides, News, & Discussion] juliospinoza:
yes, you have to request the unlock code. Also you need to have some experience using ADB and fastboot commands.

There are a lot of devices and procedures in order to gain root, also, there are serveral videos of it. here is a video in spanish but very easy to follow

https://www.youtube.com/watch?v=eVGnVyHcJUM

He uses the same procedure as the OP but with differents files (because the date of the video).

I couldnt gain root with this post because I have forced encryption, so I have to root systemless.

Please, quote me in order to follow your progress.

regards
[Moto Z Guides, News, & Discussion] bert269:
Has anyone got SuperSU 2.81 to work on our phones (Moto Z)?
[Moto Z Guides, News, & Discussion] erfanoabdi:
What is your system software version?

It seems too new

Have you ever tried other TWRPs? Official or sharps?
[Moto Z Guides, News, & Discussion] juliospinoza:
my version is the NPLS25.86-30-8 security patch 01 March 2017.

I have tried several TWRP versions and the problem seems that the kernel (boot) can't pass the forced encryption. Because I can flash systemless but not this version.

Even after flashing the turbo kernel I still have the forced encryption, but if I made a factory reset after the kernel I can get the phone without the forced encryption, but I cannot flash anything that touches the partitions, TWRP says "failed to mount/read efs, data, etc partitions

any suggestion?
[Moto Z Guides, News, & Discussion] erfanoabdi:
No no force encryption is only on data partition

Your errors is because of out dated encryption blobs on TWRP I'll update them soon with newer version
[Moto Z Guides, News, & Discussion] juliospinoza:
thank you so much!

can't wait to test some roms

:fingers-crossed:
[Moto Z Guides, News, & Discussion] erfanoabdi:
please test this TWRP: https://www.androidfilehost.com/?fid=961840155545568390

i've updated crypto blobs with NPLS25.86-17-3-4 hope it works for you
[Moto Z Guides, News, & Discussion] nighteeeeeY:
Hi

so I unlocked bootloader, flashed Recovery, flashed TurboZ Kernel, tried to root it. There is the problem.

Once I flashed SuperSU.zip and booted, opened SuperSU everything is fine. But when I open an app which requires root access, the grant access dialog opens, I grant access, but then the app freezes or doesnt recieve the access. I open SuperSU again and now theres a pop up dialog which only says "root undeteced" and a link to "How to root" on the SuperSU Homepage.

I tried with 2.82, 2.81, 2.79 (which has another dialog coming up saying "there is no super su data installed and super su cant install it) with the same link). Tried with 2.46, doesnt even install it via recovery flashing. Soooo....I dont know. Xposed is somehow working since I flashed it and modules are working fine but everything else isnt. Which is super weird.

I googled it of course and it seems that there is a problem with newer versions of super su atm where other people have the same issue. But I wanted it to use as my daily driver now and dont want to set it up if root doesnt work properly.

What about Magisk? It said optional. Never heard of it. Read a bit about it....didnt quite get it. Is this a root alternative or something?

Can someone please help me. Its pretty annoying. :(

Thanks a lot already!

Cheers
[Moto Z Guides, News, & Discussion] erfanoabdi:
Wait xposed??

This is only for nougat firmware's

On MM you should use other methods

Like force system superSU (find it on xda)

;)
[Moto Z Guides, News, & Discussion] sippinhenn:
Hey everyone, I'm an interested in buying the Z force or Maybe holding out for the Z2 (force).

I was wondering what the downsides of rooting a Moto device are? I read some stuff on reddit that you can't use any of the Moto Mods if you root, is this correct? Or was the person misinformed?

Also, anybody see any camera degradation after rooting?

Does the Active Display still work?
[Moto Z Guides, News, & Discussion] lollyjay:
Rooting alone doesn't mean that you can't use Moto Mods. Flashing most custom ROMs will kill use of many Moto Mods.

Check out the various forums before flashing any ROM. Personally I have found Resurrection Remix ROM allows use of several Mods, plus the developer is actively trying to get compatibility with the others.
[Moto Z Guides, News, & Discussion] brnoadhi:
C:\adb>fastboot flash recovery TWRP-3.1.1-GRIFFIN-20170528-MODS.img

target reported max download size of 536870912 bytes

sending 'recovery' (24156 KB)...

OKAY [ 0.563s]

writing 'recovery'...

(bootloader) Image not signed or corrupt

OKAY [ 0.531s]

finished. total time: 1.094s

whats wrong? can anyone help me?
[Moto Z Guides, News, & Discussion] lollyjay:
Did you type fastboot reboot recovery
[Moto Z Guides, News, & Discussion] brnoadhi:
No. I'm in fastboot mode, then I type fastboot flash recovery
[Moto Z Guides, News, & Discussion] lollyjay:
After flashing recovery ignore the errors and type fastboot reboot recovery

See if that works
[Moto Z Guides, News, & Discussion] brnoadhi:
ok. i can get to twrp recovery, then it ask for a password to decrypt, i type my password (pin for get into android), but it failed, then i choose cancel. i choose install, i can't see any file in my internal storage. I reboot it then I can't get into my system, it stuck at unlock bootloader warning (wait for 5 second). What should I do?
[Moto Z Guides, News, & Discussion] erfanoabdi:
Use official TWRP recovery
[Moto Z Guides, News, & Discussion] brnoadhi:
Ok. It worked. Thanks.
[Moto Z Guides, News, & Discussion] TobiPeter:
I have a similar bug with the newest TWRP version from this thread.

Everytime I entered my pattern to decrypt, it said that too much time passed for the try.

I downloaded the version 3.1.0 (released in April) and then the decryption worked.

I hope I could help you. ;)
[Moto Z Guides, News, & Discussion] erfanoabdi:
Oh seriously?

Then I will revert my changes soon ;)
[Moto Z Guides, News, & Discussion] TobiPeter:
Decryption works at your updated version. Thanks a lot! :)
[Moto Z Guides, News, & Discussion] SolusCado:
Wrong thread... How do I delete this post?
[Moto Z Guides, News, & Discussion] Byte_76:
I have tested this process using the latest TWRP version 3.1.1 released on 01 July. Everything worked.

I flashed the latest TurboZ kernel, rooted with SuperSU and also flashed Magisk.

The only issue that I noted was that there is an error with Safetynet in the Magisk app, otherwise my phone is working well.
[Moto Z Guides, News, & Discussion] SolusCado:
I think recent updates to SafetyNet prevent Magisk from passing it, and the author of Magisk isn't planning on trying to fix it.
[Moto Z Guides, News, & Discussion] Byte_76:
I have restored my original backup which was Android 7.0 with April security patch. (Latest patch level that is available for my phone at the moment)

Installed TurboZ and Magisk. (skipped SuperSU)

So essentially my phone is stock except for the Kernel and Magisk but even with the Magisk Hide option, SafetyNet still fails.

Why would that be? Shouldn't it fail only with security patches from May onward?
[Moto Z Guides, News, & Discussion] SolusCado:
I think it is because the boot loader is unlocked, but I'm not sure.
[Moto Z Guides, News, & Discussion] lollyjay:
I have unlocked bootloader and using Magisk, and passing safetynet.

BUT... I had to modify the build fingerprint ;)
[Moto Z Guides, News, & Discussion] SolusCado:
But I think that's what just recently broke. SafetyNet updates prevent that kind of bypass.

Again, I think.
[Moto Z Guides, News, & Discussion] lollyjay:
I am passing safetynet as of today and using Android Pay
[Moto Z Guides, News, & Discussion] SolusCado:
Ohh! So, modifying the build fingerprint did the trick? Where can I get instructions on how to do that?!?
[Moto Z Guides, News, & Discussion] lollyjay:
https://xdaforums.com/apps/magisk/xiaomi-safetynet-fix-t3600431
[Moto Z Guides, News, & Discussion] SolusCado:
SWEET! That worked for me too! Thanks!

But... Now Magisk shows that I'm not rooted?
[Moto Z Guides, News, & Discussion] lollyjay:
If I remember correctly I had to reflash magisk...
[Moto Z Guides, News, & Discussion] SolusCado:
A single reboot did the trick.
[Moto Z Guides, News, & Discussion] lollyjay:
Yes now that I think of it that is what I did.
[Moto Z Guides, News, & Discussion] lollyjay:
Here's what the build fingerprint looks like. In one month of use it hasn't caused any problems
[Moto Z Guides, News, & Discussion] Molylepke:
Trying to install twrp but i got problem. It say : Error cannot load twrp.img

What can i do now?

Sorry, my fault, its works like a charme.
[Moto Z Guides, News, & Discussion] vicky_hi:
It works.. Thanks:o:o
[Moto Z Guides, News, & Discussion] xamindar:
Can this all be done with stock kernel as well? I'd rather not use the turbo one as my phone gets super hot as it is when using daydream. Don't want it to burst into flames because of the higher clock speed of turboz.
[Moto Z Guides, News, & Discussion] lollyjay:
Yes it works for me with stock kernel. I used this after flashing Magisk 13 https://xdaforums.com/apps/magisk/xiaomi-safetynet-fix-t3600431
[Moto Z Guides, News, & Discussion] core720:
Sorry, work stock kernel + Magisk13 for root????

R: yes, perfect work only flash TWRP and Magisk13.2
[Moto Z Guides, News, & Discussion] Shyney7:
Hi, thanks for this Guide.

I'am a noob when it comes to rooting phones since my first root was yesterday with a S4 i9505.

Before I start I have some questions that I hope someone can answer me.

1. How exactly do I flash the modded TWRP? With Heimdall-Suite? And if I want to flash it with Heimdall do I need the zdiag.exe and which driver do I need?

2. If I want to use magisk do I still have to flash SuperSU by chainfire first? Or do I have to flash only magisk after flashing TurboZ Stock kernel?

I hope someone can help me.
[Moto Z Guides, News, & Discussion] stalliongallery:
it work on my phone too... thnk you
[Moto Z Guides, News, & Discussion] bert269:
TWRP and Data Encryption

I recently installed the latest version of TWRP that I could find for the MotoZ.

Suddenly it asked me to:

1) Enter password to mount/decrypt Data and when I cancel that it mentioned "unmodified System Partition" and

2) I cannot access my /sdcard and /ext-SDCARD

Then when I cancel the "enter password" and swipe the "modify system partition" - it still does that anytime I reboot to recovery.

Is there a way around this, besides formatting the Data?

It does not seemed to have happened with earlier releases of TWRP.

Any other way I can access my /sdcard and /ext-SDCARD from TWRP?
[Moto Z Guides, News, & Discussion] kabelitz:
I've installed Lineage OS on my Moto Z, but I'm not using any Moto Mods.

Does anyone have Moto Mods and is using Lineage OS?

Which Moto Mods are working with Lineage OS and which not?

Thank you and sorry for my English

Gesendet von meinem XT1650 mit Tapatalk
[Moto Z Guides, News, & Discussion] mikesch.dauerhaft:
does this method work on an updated 7.1.1 also?
[Moto Z Guides, News, & Discussion] erfanoabdi:
skip superSU and turboZ kernel part and just install magisk 13.3

flashing turboZ will break camera

supersu need turboZ to function
[Moto Z Guides, News, & Discussion] mikesch.dauerhaft:
and whats about the DM verifycation? Will it boot without the Z Kernel if i stay on Stock?
[Moto Z Guides, News, & Discussion] erfanoabdi:
yes as long as you don't mount system partition as R/W you can boot it

also you can patch DM-verify and force-encryption with magisk or flashable zip
[Moto Z Guides, News, & Discussion] mikesch.dauerhaft:
when i try to flash, the terminal only says "waiting for Device". But nothing else happens!?
[Moto Z Guides, News, & Discussion] tasar:
And which version you use? I flashed the latest beta and cant pass saftynet :(

I get my Z today, flashed latest TWRP (leave read only ,no right swipe) and only Magisk V13.3. After that the fix from your link (latest beta from Telegram).
[Moto Z Guides, News, & Discussion] lollyjay:
I'm on Resurrection Remix ROM. I am using only Magisk 13.3 nothing else. My Moto Z passes SafetyNet.
[Moto Z Guides, News, & Discussion] tasar:
Ok, I thought you are on stock. Which RR you have, the Mod version?

Gesendet von meinem Redmi Note 4 mit Tapatalk
[Moto Z Guides, News, & Discussion] lollyjay:
Ja es ist sehr gut
[Moto Z Guides, News, & Discussion] Byte_76:
I unlocked the bootloader of my Moto Z, flashed TWRP, installed Turbo Z kernel and Magisk 13.3.

I have now received the new OTA notification for 7.1.1

What will happen if I just proceed with the install? Will my phone brick or will it just revert to stock?
[Moto Z Guides, News, & Discussion] Byte_76:
Okay, my Moto Z is not my daily driver and since I received no response to the question above I decided to just install the OTA and see what happens.

It went through an install process after the download and then rebooted after which it just starts into TWRP.

What did the install process do that causes it to boot to TWRP?

My phone is RETEU XT1650-03.

I tried restoring my original TWRP backup which was created the very first time that I entered TWRP after bootloader unlock and flashing of TWRP but it still just boots into TWRP.

What are the recommended steps that I should take to restore my phone?

I would like to get to 7.1.1 with RETEU firmware. (Stock or rooted)
[Moto Z Guides, News, & Discussion] bullfinch110:
You need to have a clean 7.0 Stock Rom to receive and install the latest 7.1.1 OTA. Because there is no Stock 7 available for reteu, here's what i did:

Flashed this version: XT1650-03_GRIFFIN_RETBR_NPL25.86-30_cid50_subsidy-DEFAULT_regulatory-DEFAULT...

using RSD-lite (download/install on your windows pc) https://my.pcloud.com/publink/show?code=mWertalK

Download the above mentioned Stock RETBR to your pc, unzip it and search for flashfile.xml.

Copy the flashfile.xml, so you'll get a flashfile-copy.xml.

Open the flashfile-copy with any text editor and delete the lines with "bootloader" and "gptbin". After that click safe.

Open RSD-lite program on your computer.

Click the 3dots right beneath the Filename.

Search your modified flashfile-copy.xml and double click.

Now put your moto z in bootloader mode and connect it with your pc.

Your device shows up in line 1. Click the Start button of RSD-lite.

The StockRom will be flashed onto your device. Wait, until your phone reboots completely and RSD-lite gives you a "PASS" under results. Then disconnect your device from pc.

Now you are on clean stock 7.0 (januar patch) and will receive several OTA's one after another.

With this clean system you'll probably get the latest 7.1.1 OTA.

There might be an easier way to reach the same, but thats what i did and it works.

Edit: After you have installed the 7.1.1 OTA be aware, that there is probably no way back to 7.0. I think until now, nobody has catched this OTA, so we don't have a backup for Stock 7.1.1 Reteu. There are dozends of MotoG4/Plus users bricking their devices by rolling back from version 14-8 to 14-4 because the bootloader was updated.
[Moto Z Guides, News, & Discussion] Byte_76:
Thanks, I might try that procedure of flashing RETBR if there is no other way to recover.

I still have unlocked bootloader and I can still boot into TWRP.

I also still have my original TWRP backup which was created just before I rooted and flashed Turbo Z and then another backup that I created later before I flashed RR.

I have tried restoring my first backup with TWRP and then installed Turbo Z which is what I had to do the first time after unlocking my bootloader but the phone doesn't boot. (Jumps straight into TWRP)

What did the install of the 7.1.1 OTA do up to the point of reboot? Can I revert changes to get the phone to boot again from my backup?

None of this is critical. I have time to try different options.

This is all just testing and learning for me because, although I've been a long-time member, I haven't really played much with ROMS and recovery in recent years.
[Moto Z Guides, News, & Discussion] bullfinch110:
If you can successfully restore your first TWRP Backup (Stock), then you don't need to go through the RSD-lite procedure. You will get the latest OTA.

Once installed, i advise you to boot TWRP temporarly (fastboot boot twrp.img), backup Stock 7.1.1 and additionaly backup stock boot.img and stock recovery.img. So you can restore your Stock boot/recovery in case you plan to root your system.

May I ask you, how you've managed to make the first backup of your StockRom? I searched everywhere and didn't find a clear instruction which boxes to check in the TWRP Backup menue. I've tried but get errors. Thanks

Edit: to answer your question: I'm not sure, if you can downgrade to 7.0 once you've installed 7.1.1 As i mentioned before, there a several bricks reported in the moto G4/plus forum from people who tried to downgrade. I wouldn't risk it.
[Moto Z Guides, News, & Discussion] Byte_76:
I have tried restoring my backup but the phone keeps booting back into TWRP instead of loading Android. Did I miss something?

The backup was the first thing that I did in TWRP immediately after I had unlocked the bootloader and flashed TWRP.

I created the backup by selecting the backup menu item in TWRP and leaving all defaults selected. Of course, this backup method does not include stock recovery.
[Moto Z Guides, News, & Discussion] bullfinch110:
So i think your backup was incomplete and you have to go the long way(RSD-lite) to get a clean Stock 7.0. You did everything right by backing up your system before flashing something else.With my former Moto G4 it was easy: checking every box in the backup menue, saving it to sd-card and THEN: fiddeling around with custom roms, kernels etc. If something went wrong, just restore the Backup.

But with moto Z it seems a bit complicated. I searched and didn't find a correct Guide, how to take a "restorable" TWRP backup of the Stock Rom!

Even in the OP of this thread you were told how to root, but not one word, to back up first and how to!

I think it's mandatory.

There is one guy in a german thread, who got his new moto z today, took the brandnew OTA, flashed Twrp, rooted and somerhing went wrong. Now he's asking for help and if someone has a Stock Rom!

Hm, maybe I'm blind or stupid, so someone could please point me in the right direction, [MENTION=6298645]erfanoabdi[/MENTION]
[Moto Z Guides, News, & Discussion] iamaditya:
Can you please elaborate. How can I root stock 7.1.1? Also, I need to enable dual sim, which method would you suggest for 7.1.1? Thanks a lot in advance.
[Moto Z Guides, News, & Discussion] lollyjay:
Magisk 13.3 is a zip that is flashed from TWRP. Go here https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

and download it. You can also download the Magisk Manager there.

Someone else will have to answer your question about dual SIM.