yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Technical:
Yes, I've tried both slot a and b.

I get out of the loop restoring, via TWRP, a nandroid in both slots.

By the way, are you sure we must reflash Magisk to boot? I think that if we can't boot, Magisk won't help, on contrary, will mess the boot partition (if it can even be flashed...).
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ecompton59:
was you flashing twrp 3.2.2 img then rebooting to recovery then flashing zip works every time for me
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] felipevsw:
I believe we would need a new version to be able to install LOS after the July update. I'm getting this error here:

Error applying update: 18 (Errorcode::KDownloadPayloadPubKeyVerificationError)

Updater process ended with ERROR: 1

This is suggested here: https://xdaforums.com/showpost.php?p=76862806&postcount=2

[MENTION=3659125]joemossjr[/MENTION]
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] felipevsw:
I am also unable to copy files to the phone when running version 3.2.2-2. The phone "drive" doesn't appear to me on my Windows laptop here (didn't test on Linux or Mac). I can only adb push files over.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Technical:
My better suggestion right now is to avoid completely TWRP version 3.2.2-2.

Issues with the encryption/decryption mess everything in almost any ROM.

TWRP 3.2.1 allows flashing and dirty flashing. The only drawback is the absence of encryption. If you use PIN/password/gesture/fingerprint, you need to disable them before booting in TWRP to dirty flash, or backup, or restore.

Believe me, I lost a lot of time...

Version 3.2.3 is only on .img file. Maybe when the .zip file be released we can move on.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doctorman:
1) TWRP Moto z2 force official page said just flash the zip file in TWRP if you are just updatng twrp..

that bricked my phone and after I went back to stock ROM and lost all my data I came across this page and saw step 5 ... REinstall Magisk after updating TWRP...

This should be mentioned on official TWRP website

2) Twrp official app crashes after 25 seconds of being open.. everyone has the same issue?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] shadowcliffs:
Sorry for my silly question : Is this the official TWRP? If not, what's the difference? I think I flashed the official 3.2.3.1 and didn't format data but I'm still able to see folders.

TIA.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] always6s:
I'm getting error 255 on every room I try to install. I don't have an older twrp to use. Any help?

Edit. Now it is error 1
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Technical:
For ROMs only 3.2.1 will work.

For Treble ROMs 3.2.3 works.

You can download them on TWRP official site.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] always6s:
How do I know if it's treble or not
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
It will say treble.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] always6s:
LMAO:laugh:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] always6s:
Neither r working for me.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 954wrecker:
Looks like twrp.me posted an update its 3.2.3-2
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
As the person who posted it, it is treble and non-treble capable, and doesn't have any of the signature Mismatch, install device, or timestamp errors people have been running into.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 954wrecker:
Thanks, that's amazing I tried every version previously and could never get anything to install without error messages.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] bujok:
How can I install latest DU 12.5 and get my phone decrypted. I cannot install DU 12.5 with TWRP from this thread. TWRPs from official page doesn't allow to remove encrytpion. Can anybody help?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Technical:
You can remove with the "Format Data" in TWRP (in wipe menu) or using fastboot -w command.

In both cases, you'll lose everything on data and sdcard (internal).
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] bujok:
If I wipe with fastboot - w, I get metada erase failed because bootloader denied it and some comments about raw format.

Every official TWRP cannot decrypt data for me. No matter how many times I hit yes it and get log that it was formatted I'm still encrypted.

I tried Removeencryptionoreo.zip from 4pda but it doesn't help.

With TWRP from this thread I can decrypt data but cannot flash any DU v12 rom.

Can somebody give me a step by step tutorial?

[MENTION=2565743]TTP[/MENTION] (TA-1062)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Technical:
Did you try returning to stock? As in the 1st guide on my signature?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] bujok:
I will try tomorrow and tell if it worked or not.

[MENTION=2565743]TTP[/MENTION] (TA-1062)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
To flash DU 12.3 last step fastboot -w.. Du v12.4-12.5-12.51 wipe data only, do not format.

1)Return to stock

2)Fastboot boot twrp-x.x.x-x.img

3)In recovery flash DU v12.3

4)Right after Flash twrp.zip

5)Reboot recovery

6) Once back in recovery reboot system.

7) Do quick set up then enable usb debugging

8)Fastboot -w

9) Boot to recovery and flash magisk

Done

For flashing DU 12.4-12.5-12.5.1

1)Back to stock

2)Fastboot boot twrp-x.x.x-x.img

3)In recovery flash Du 12.4 or 12.5 or 12.5.1

4)Right after flash twrp-x.x.x-x.zip

5)Reboot recovery

6) choose wipe>advance, wipe data only do not format

7)Reboot to system, do quick set up enable usb debugging

8)Boot back to recovery and flash magisk.

Done.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] bujok:
I've returned to stock.

Booting other TWRP than official 3.2.3-2 gives me an error when flashing rom.

With 3.2.3-2 I can flash DU 12.3/12.5.2 but I'm stuck at DU boot animation.

I tried both ways from above but I can't boot DU afterwards.

Which TWRP do you suggest to use?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] tinydynamite00:
For several DU builds the only working TWRP was the 3.2.1-1 img because of a timestamp issue in the newer TWRP builds. I haven't flashed DU since 12.3 but I suspect the maintainer has corrected the issue to work with the most recent TWRP by now.

Out of curiosity, did you try flashing the ROM to both slots; similar to what is required with LOS? The bootloop may be happening due to non-matching boot images. Flashing to whichever slot is inactive:

fastboot --set-active=[SLOT]

where SLOT is either 'a' or 'b', then reformatting or wiping data as per the current DU instructions, has generally resolved for me the same issue you are experiencing. If the bootloop persists, boot to TWRP or use command above, switch slots, and try booting again from the alternate slot.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Use TWRP 3.2.0-1

With 12.3 did you fastboot -w? that would be why your not going past boot animation.. DU 12.4-12.5 you wipe data in twrp not format. Go back to stock again and start over.. I had to do this a few time before getting it right.. Remember to wipe dalvik cache/cache, data system, oem internal storage before flashing DU.. I forgot to mention that. Put all your files in your external storage.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Aaron Laib:
I brick my phone

Hey, I wanted to install TWRP on my Z2 Force and I followed the instructions. Now TeamWin is installed but I cant boot up to Android anymore. It´s always booting to the Recovery. I don´t know what to do and the phone is brand new. Can I fix it?

PS: I´m german so if s.o can speak german who knows the answer, you can write it in german too ;)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] omnismart:
https://xdaforums.com/showpost.php?p=76850077&postcount=6
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] sammd301:
I have struggled to fix my bootlooping issues, After install LOS rom/ other rom and flashing the magisk. Everything installed fine, but for some reason, after restarting the system it will get to LOS loading screen and bootloop. I attempted to install a stock rom on it, but that load fine but it WIFI and Cellular Network doesn't work. Any detail instruction will be highly appreciated. Thanks
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, I'll start with an introduction. My name is Marc "ThE_MarD" Bourgoin and I am the official TWRP and LineageOS maintainer for the LeEco Le Max 2. I was lucky enough to be chosen to have a donated nash by the LineageOS team so I am super grateful for that and will try my best to help out where I can! :)

I noticed nash for some reason won't decrypt the file-based encryption on official TWRP 3.3.1-0 for me... so I looked and noticed a few issues with the init scripts and meow? It decrypts no problem for me.

https://photos.app.goo.gl/KwjF51zMYYt5NK6Z6

I've contacted npjohnson (who sent me the nash that was donated to LineageOS) who got it merged on TWRP Gerrit and also let bigbiff know to release an updated official TWRP build with the fix.

If anyone else wants to try the build I made in case it takes a day or two for an official TWRP build update? I've shared it here.

https://drive.google.com/open?id=1qd2IRjwMRax1baxeQTMwOlgJKliPZfIh

I hope I'll be able to help with other things on nash! But tbh? Erfan and Nolen seem to have most of it done up REALLY good as it runs quite a bit better than my LeEco Le Max 2 heh, but I'll still try to do what I can! :)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
I haven't tried 3.3.1 yet, but a few of the recent versions mtp was broken. Could you look into that?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] fast69mopar:
I had the same issues with the latest TWRP for Nash and it not decrypting the SD Card and I was also unable to use MTP. Thanks for checking out the TWRP for our device.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, hmm it does seem like TWRP would require more work as I am getting odd errors when flashing is complete... So I'll try to further research maybe why it does this...

MTP is working fine on my test build though. This is also my first time with an a/b device and also with fbe... So both are quite new to me heh, but I shall definitely see what I can do to help resolve these issues. :)

Oh, official TWRP 3.3.1-0 for Nash just dropped today if someone wants to test it out. It might work better than my test build anyways. :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Alruse122:
Hi everyone, can someone can help me with this?

i can´t access to the B slot, when i select it and reboot to recovery again, the bootloader drops me an error "your device has loaded a different operating system"
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=8134715]Alruse122[/MENTION] , when you select "reboot > change slot" TWRP will automatically perform a soft reboot and switch slots. No need to reboot to recovery. You can ignore that error as it is probably just your device detecting different ROM setups per slot during that reboot to recovery.

So for switching ROMs? You can wipe data, system and vendor, install the ROM & gapps, then switch slots and wipe system and vendor and then install the ROM and gapps to that slot as well.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Alruse122:
I did, the thing is i try yo install Lineage Rom.

- I Boot Recovery, wipe data and system, install TWRP Recovery, install the build and it needs reboot to install Gapps, so when i do that, appears that message and can't install Gapps, appears an error 70 (Insufficient storage space calculations in

System partition.) Or "can't mount system"
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
[MENTION=8134715]Alruse122[/MENTION] Installing any ROM does not recommend installing gapps after a reboot. Wiki on LineageOS for Nash installation instructions specifically state that too.

Please read through the full installation instructions for the ROM you wish to install.

For example, here is the installation instructions for LineageOS on nash.

https://wiki.lineageos.org/devices/nash/install
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Alruse122:
https://xdaforums.com/showpost.php?p=80296229&postcount=274
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
[MENTION=8134715]Alruse122[/MENTION] I followed the Wiki guide for LineageOS and have zero issues on my Nash. I definitely trust the official installation instructions. If you wish to deviate from those? That is your choice.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Alruse122:
actually i've tried with that instructions but no success, in the log appear "failed to read fstab from dt" i guess the stock rom is well for now haha, thank you anyway bro!
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
I tried 3.3.1-0 today, and it didn't ask for my pin to decrypt (so it didn't decrypt). But mtp does work.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
[MENTION=1275930]skywalker-live[/MENTION] Hmm dang, there must be something up with the Omni repos that I must have missed since on my minimal TWRP manifest it decrypted without issues... I guess I'll repo sync the full Omni 9.0 repo and see if I can reproduce this issue on my builds as well and then try and diagnose it from there.

By chance can you get me a copy of recovery and kernel logs? I'm still out of town working, and even on days off I'm not sure when I'll get a chance to tinker with my nash :silly:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, so new test build is going up! twrp-for-nash twrp-3.3.1-0-nash-UNOFFICIAL-20191005 indeed has working decryption and ROM installation as it turns out we had the wrong file-based encryption cflag this whole time... and we also needed to switch to prebuilt update_engine_sideloader again as the source-built was giving us odd errors with setting backuptool context and I also updated fstab for userdata to match stock and what custom ROMs use (encryptable=ice:aes-256-cts).

https://osdn.net/projects/twrp-for-nash/releases/71721

I was able to decrypt userdata, use MTP to copy lineage-16.0-20191005-nightly-nash-signed.zip to my nash and install it. :good:

For some reason though, I couldn't install gapps until I rebooted to recovery again... so there could be some kind of issue there with how a/b ROMs are handled... so that's odd lol. I was getting the same issue with TWRP official 3.3.0-0 for nash as well hmm...

[MENTION=1275930]skywalker-live[/MENTION] I'm mentioning you on this as you have had the same errors I've observed on official builds of TWRP for nash. Please check this one out! ;)

UPDATE: I decided to try the fastboot flash back to the stock sprint ROM for my nash and it seems decryption does not work for stock... oh well, more important it works on custom ROMs anyways heh.

From stock? I did...

fastboot flash boot twrp-3.3.1-0-nash-UNOFFICIAL-20191005.img

fastboot boot twrp-3.3.1-0-nash-UNOFFICIAL-20191005.img

Wipe > Format Data > yes > checkbox

Check reboot menu to ensure I'm on slot A

Wipe > advanced wipe > dalvik & system

reboot to recovery

Check reboot menu to ensure I'm on slot A

install LineageOS ROM

since LineageOS flashes boot with Lineage Recovery and I wanted to continue testing with TWRP, I did a reboot to bootloader > fastboot boot twrp-3.3.1-0-nash-UNOFFICIAL-20191005.img

Check reboot menu to ensure I'm on slot A

install MindTheGapps

reboot to system
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
Will do when I'm back from this camping trip
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
Interesting, why did you fastboot twice (1&2)? How do you insure that you have the same system on both slots? I have installed twrp.zip for that.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=6064114]kendallgreen[/MENTION] , it does properly install the ROM to both A and B slots (hence ROM installs like LineageOS show Step 1/2 and then Step 2/2. I even checked logcat and it does show flashing to system_a and system_b and so on). The issue as explained to me is that once the payload is installed? Both TWRP and Lineage Recovery can only mount system as read-only, so you must reboot to recovery in order to flash addons like gapps so that it can mount system as rewriteable and properly install.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] portox:
how did you fix that? I thought that slot b had a previous version of my actual rom but it didn't. Then I did reboot and now there is no response: can't even boot to bootloader. also it isn't recognized in my pc.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Please, if anyone who downloaded this have any feedback if all functions work properly? I see six downloads so far
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
your UNOFFICIAL twrp decrypts my Tmobile MotoZ2 Force correctly and allows me to install lineage-16.0-microG-nash.zip from twrp. It does not seem to install to both slots with one install, I still get bootloops unless I switch slots and install again to the other slot. I have followed your instructions several times starting from lineage-16.0-microG-nash.zip including checking the active slot in twrp. Since I am using microG, I have not installed MindTheGaps or any other Gapps. I went back and followed your instructions again, sideloading the lastest lineage-nightly-signed.zip and MindTheGapps. I got the same results, it installed to slot b. Lineage Update seems to be unable to update correctly, it also gives bootloop and when slot is switched, it is back to the original version. All in all, your version of twrp is an improvement
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo [MENTION=6064114]kendallgreen[/MENTION] , thank you for the feedback! I'll push the changes to official TWRP and request for a new official build and remove the 3.3.1-0 build. :good:

Update: waiting on an unfortunate conflict created by another device accidentally using device/qcom/common on android-9.0 branch to be resolved... Once it is? I'll request a new test build and then we need to confirm that test build works good, and then we will get an updated official build :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doctorman:
PLEASE HELP

I bricked my phone I think

had TWRP and rooted phone on Magysk android 8 moto z2 force sprint

updaed twrp by downloading the latest twrp zip file and flashing it in twrp recovery

clear dalvik cash

restart system and I ended up in the recovery

for some stupid reason I tried changing the boot partiotion from A to B manually and restart and the phone does not turn on at all

Anything I can do?

---------- Post added at 02:33 AM ---------- Previous post was at 02:30 AM ----------

did you find a solution or is the phone garbage now?

UPDATE: fixed the hard brick by this

https://xdaforums.com/z2-force/help/hard-brick-los-installation-t3842683

then the soft brick was fixed by multiple tries of this

https://xdaforums.com/z2-force/how-to/how-to-return-to-stock-sprint-t3694783

and then restored the data from my last twrp back up and back to normal
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] portox:
I didn't find a solution for my case, yet. Since I installed Pie, there is no blankflash available (yet?) and also I can't get the phone recognized in my pc.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doctorman:
so blank flash you tried it but it did not work for you?

it worked so easily for mine
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
Used lineage Updater successfully to update from lineage-20191010-microG-nash to 20191017. Previously I had problems with the Updater causing bootloops and after switching slots, left with old version. I don't know what caused the success, but I had updated to Magisk-v20.0 and made sure both slots had the same bootloader and lineage versions. I previously used the UNOFFICIAL twrp-3.3.1-0 version to install lineage to both slots and rebooting installed Magisk.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ThE_MarD:
Heyyo, ok! The test build straight from TWRP official build servers is up! Someone please test this build to ensure it can decrypt data, MTP works and flashing a ROM (update or clean install, either is fine).

https://build.twrp.me/twrp-installer-3.3.1-0-nash.zip

Or the direct image of you prefer that

https://build.twrp.me/twrp-3.3.1-0-nash.img

If this build is good? Then I will ask bigbiff to push a new official build of TWRP for nash :)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] XirXes:
I replied in discord as Xiyl but I figured I'd reply here too. I wasn't able to decrypt my data from Lineage 16. I also wasn't able to connect to adb, and if that got fixed I'd be very very happy.

If you post again in the discord with another build I'll very likely be around to test for you.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] TheKnux:
Copy everything from internal storage to PC or SD card. That's what I did.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] joemossjr:
Hey guys I'm gonna be absent for a while I had a death in the family and have to deal with somethings
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DsturbD:
Take your time man, family first. Prayers for you and your family. God Bless
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Amd4life:
Sorry to hear this, blessings and prayers to your family
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] mrcodylindsey:
I have the Verizon locked bootloader model. Can I just flash the TWRP with a locked bootloader?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] psycho4us4:
no
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Nope. Only signed images can be flashed when locked. I.E. ones made by Motorola/Lenovo
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] vibraniumdroid:
The only way the vzw model will get rooted is via initroot
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Amd4life:
FYI (please counter if if just my device quirks). If you make a nandroid using TWRP, and wipe, then restore.....

the restored room works fine. BUT you can no longer write/ edit the system (host files, boot animation etc) even if rooted. Also Xposed will NOTICE install.

So basically make sure your backup is setup just the way you like, or you basically have to start all over from the fastboot recovery rooms.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DsturbD:
i did that exact thing, installed twrp, made a backup, wiped everything including internal storage and data, and restored the nandroid and everything is fine, can write to /system, update hosts file, etc
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] X_man.:
Can somebody please tell me whats wrong. Your help would be greatly appreciated. I keep getting this?

C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash boot/C:/Users/gib

sobd/Downloads/TWRPREV2

unknown partition 'boot/C:/Users/gibsobd/Downloads/TWRPREV2'

error: cannot determine image filename for 'boot/C:/Users/gibsobd/Downloads/TWRP

REV2'
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] joemossjr:
Sure should be fastboot flash boot "C:/Users/gibsobd/Downloads/TWRPREV2.img"
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] X_man.:
I feel so dumb LOL

THANKS

---------- Post added at 10:39 AM ---------- Previous post was at 10:31 AM ----------

I did it several times just like that but forgot the quotation marks. It aint like I'm new to flashing I should had realized that. Thanks tho feel really dumb LOL :p
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] enetec:
I think developers should give a look to this article about how to solve better Magisk and TWRP installation... ;)

https://android.gadgethacks.com/how-to/install-magisk-your-pixel-pixel-xl-0177522/