yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  Guides, News, & Discussion] JoJoEx:
I have not tried to factory reset although I was debating doing that when I get home from work today. I do have another laptop that I was going to try to use I do have I think two or three different ADB fastboot files but they are all stored in different areas and different drives of the computer..when I get home I'll delete all the ADB files and then install the one that you gave me factory reset the phone and try that if not then I will try it on the other laptop that I have both laptops I have are Asus though but one is a rog one is a tuf I don't know if that makes a difference.. I do set my USB option for the phone to file transfer and I do that through developer options and when you plug in the USB and it gives you the options on the phone.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
If fastboot commands does not work, the fastboot.exe version could be the problem.
[Moto Z2 Force  Guides, News, & Discussion] JoJoEx:
it works because when I type in fastboot device is it at least still shows me the serial number
[Moto Z2 Force  Guides, News, & Discussion] JoJoEx:
Go figure a try it on a different laptop and everything works perfectly I don't get it there almost the same laptop but whatever we are now rooted thanks guys
[Moto Z2 Force  Guides, News, & Discussion] Grumby__:
Verity mode is set to disabled

Ok well I've tried the solution 'E. Recovering from soft bricks or returning to Stock', I've tried it from my usb key the first time, it stoped really quick then I relunched it from my PC, I just got 'preflash validation failed' as error, everything else was fine but now my phone rebooted and it seems stuck to the OS-launching phase in blue/yellow, saying in the top-left cornet that 'Verity mode is set to disabled' :confused::confused::confused:

I'll let it run this night even if I don't think it's normal ahah, good night :cowboy:

Ok well update, now when I try to start the phone it says that the device didn't start up successfully, [...] if it's verizon blabla...

If it's not verizon device or software repair assistant did not help for any reason, please contact customer care for further assistant.

AP fastboot flash mode(secure)

no bootable A/B slot

failed to boot linux, falling back to fastboot,

fastboot reason: fall-through from normal boot mode

this is the bootloader logs, I can't get out of it now :crying:

I can't 'fastboot boot xxx.img' too, error '(bootloader) Failed to load/authenticate boot image: Not Found FAILED (remote failure) '
[Moto Z2 Force  Guides, News, & Discussion] liammc83:
Didn't want to start a new thread.

But I can verify phh base treble ROMs are indeed fully compatible.

Rather than use fastboot, Once bootloader is unlocked, after the install of the official Nash twrp, Simply wipe system partition, install gsi to system partition. Reboot recovery, resize system partition..

Everything works.

I started with the official lineage 16, And official twrp.

Hope this helps others have some fun.
[Moto Z2 Force  Guides, News, & Discussion] Ibrajan:
Can I use this guide for flashing android Pie, is the preparation.bat file same for android pie.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Yes, you can follow de guide for Pie. I've followed it myself one month ago. Double check if you download the correct firmware for your phone.
[Moto Z2 Force  Guides, News, & Discussion] AHMN48:
I added screenshot and video, maybe these help you to find a solution for me

thanks a lot

https://1drv.ms/f/s!AjKe0HoM8geys1T5EP5Xy4tFh81Z

---------- Post added at 09:17 PM ---------- Previous post was at 09:08 PM ----------

is your problem solved or not?

If yes, how you fixed your phone?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
"Too many links" error at the end. Sometimes, changing the adb (fastboot) version helps. Also, change the USB port and the cable. Try to do it in another computer.

Look at the guide:

3. Install the Motorola drivers and the adb/fastboot files.

3.1) do not use other adb/fastboot binaries: we cannot guarantee they will work.

3.2) you need to use a USB 2.0 port of your computer. Some users report that USB 3.0 will also work.
[Moto Z2 Force  Guides, News, & Discussion] AHMN48:
i did with a different USB Port and it was finished successfully, but after it's done my phone turned off!!!

so after upload twrp via fastboot boot command what must I do about it?

https://1drv.ms/f/s!AjKe0HoM8geytgc2TUBm6hLnHqBB

First time was successful, but after that phone turned off,

fastboot boot twrp-3.2.2-2-nash.img

downloading 'boot.img'...

OKAY [ 0.825s]

booting...

OKAY [ 30.091s]

finished. total time: 30.919s

================================

Also, I must add this, when I tried more, didn't work anymore,

Error:

downloading 'boot.img'...

OKAY [ 0.818s]

booting...

FAILED (status read failed (Too many links))

finished. total time: 30.912
[Moto Z2 Force  Guides, News, & Discussion] Szynkars:
Try to use flashall instead of twrp. If it'll flash stock, then reboot to fastboot and try to install twrp.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
[MENTION=5539230]AHMN48[/MENTION]

I'm not sure if the better is to flashall like Szynkars is suggesting (I'm not sure it will succeed).

But you can also wipe data (format) in TWRP wipe advanced settings or booting in fastboot mode (bootloader) and send the command:

fastboot -w

And then rebooting to see if you can enter the phone again.
[Moto Z2 Force  Guides, News, & Discussion] AHMN48:
I don't know what is flashall or how it's work!!

I tried fastboot -w, it's not worked!!!!

I can't enter to TWRP, because got Error Multiple Links, Failed, after trying to boot TWRP phone get error, then turn off and turn on in Normal mode!!!

do you have any suggestions?

this is so much important for me to fix this phone
[Moto Z2 Force  Guides, News, & Discussion] Technical:
If a single command is not working, flashall will be blocked too (see this guide or the main forum and you'll find threads to flashall, but they won't work).

In this guide, at the beginning, there are links for "hard bricks". Although, I never tested them. They are considered "very dangerous" to common or even advanced users. But if you have nothing to lose, then read and try...
[Moto Z2 Force  Guides, News, & Discussion] AHMN48:
I can't do falshall either

can I anything via EDL mode?

is it possible?

if it's possible, how can I

1. Enter to edl mode?

2. after I enter to edl mode, how can I flash my phone?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
As I said, I do not have personal experience. I just posted the links for reference in the beginning of this guide. Sorry.
[Moto Z2 Force  Guides, News, & Discussion] Elitespirit:
Can I use this for 1789-03? I can't access the adb files, they seem to be down.
[Moto Z2 Force  Guides, News, & Discussion] AHMN48:
I read somewhere it's possible to flash newer firmware without unlocking bootloader since I have Verizon Android 8, can I flash Android 9 Verizon without Unlocking bootloader?

maybe in this everything get solve
[Moto Z2 Force  Guides, News, & Discussion] Technical:
You can get the latest version from Google: https://developer.android.com/studio/releases/platform-tools.html
[Moto Z2 Force  Guides, News, & Discussion] TwoBuells:
This looks like an active place I could get a few answers to a few questions.

I have a Z2F 1789-03 (Sprint) running on Verizon. About a year ago I flashed a mix of Sprint and Verizon files to have a Bootloader unlocked, rooted Z2F on the Verizon network.

I’d like to update to Android Pie and there are no Pie Updates for Sprint.

Can I run a custom ROM with a Sprint variant Z2F on the Verizon network?

Or can I use a mix Sprint 8.0 files and Verizon 9.0 files? If so which ones, I seen a thread on how to flash Sprint and Verizon firmware but, some of the instructions are confusing on which files to flash and what files not to flash.
[Moto Z2 Force  Guides, News, & Discussion] Siminica:
This is what I got:

E:\ADB FASTBOOT FILES WINDOWS> .\fastboot get_unlock_data

(bootloader) slot-countta: not found

(bootloader) slot-suffi: not found

usage: fastboot [ <option> ] <command>

first do not quote the entire post as it is too big

second, assuming you already run the first two commands before get_unlock_data and you've seen your device listed, you missed the oem option before the get_unlock_data - review the commands that have to be issued, better to copy/paste just to be sure you don't forget anything
[Moto Z2 Force  Guides, News, & Discussion] knut1er:
Hi,

With version Motorola_Moto_Z2_Force_XT1789-05_NASH_RETBR_9.0_PPX29.159-23_(by_motostockrom.com), mobile netword/SIM didn't work.

After lot of flashes, I tried to load Slot B. The result is... bricked.

Is somebody encounters the same issue?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
I have issues with some of the Pie firmwares too.

The one which works for me is XT1789-05_NASH_RETBR_9.0_PPX29.159-19
[Moto Z2 Force  Guides, News, & Discussion] knut1er:
Not yet tested. I hope I will unbrick...
[Moto Z2 Force  Guides, News, & Discussion] knut1er:
Sorry for this trivial question.

I'm lost with all of links... Where can I find this ROM please? Thx

Edit => Sorry, I found it on https://mirrors.lolinet.com/firmware/moto/nash/official/RETAIL/
[Moto Z2 Force  Guides, News, & Discussion] abense:
Thank you for posting this.
[Moto Z2 Force  Guides, News, & Discussion] abense:
edit
[Moto Z2 Force  Guides, News, & Discussion] abense:
If I got everything setup and working properly, However without having TWRP permanently installed, can I fastboot the twrp image, then install the zip from TWRP, without screwing EVERYTHING up?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Boot TWRP (if you mean the same of "fastboot the TWRP")

Flash the .zip file.

Will you root (Magisk)?
[Moto Z2 Force  Guides, News, & Discussion] abense:
I get to step 5. I install

Step 5:

I reboot

I flash the following from within TWRP (twrp-3.3.1-0-nash.img)

1) lineage-16.0-20200128-nightly-nash-signed.zip

2) twrp-installer-3.3.1-0-nash.zip

I hit reboot system. After it boots up, I do

adb reboot bootloader

fastboot.exe boot twrp-3.3.1-0-nash.img

enter my pin

install

MindTheGapps-9.0.0-arm64-20190615_031441.zip

Magisk-v20.3.zip

I then wipe dalvik, and hit reboot.

Bootloop.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Yeah, you probably are in a slot issue. I'm in a hurry now. I can help you later.
[Moto Z2 Force  Guides, News, & Discussion] abense:
No rush my friend :)
[Moto Z2 Force  Guides, News, & Discussion] abense:
Yeah, no matter what I do I can't seem to dirty flash + root.
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
Try doing a factory reset from recovery, or even 'fastboot -w' w/o 'quotes' from the bootloader. That should fix your bootloop.
[Moto Z2 Force  Guides, News, & Discussion] abense:
I am able to do this and get everything working if I do a factory reset. -- I have two Z2F (one sprint, one tmo). I got the sprint one working, but I had to resort to doing a factory reset. -- I was hoping to be able to do this on the TMO phone without having to perform a factory reset.

Not so much because the data is that valuable, but because I was hoping that their was a relatively simple, proper method of doing this, in the event that I need to do this again in the future.
[Moto Z2 Force  Guides, News, & Discussion] Starkiller2:
It isn't saying anything at all? Not even failed? If that's the case you aren't connected to fastboot. Check your cable. If it does say something, what is it?
[Moto Z2 Force  Guides, News, & Discussion] 00Beat:
Help - b - 8

I CANT CONTINUE FROM THIS STEP

I CANCELLED THE PROCESS (CRTL C) BECAUSE IT DOESN FOUND ARCHIVES OR SOMETHING, IVE GOT THE CORRECT FIRMWARE

:

[IMG="PICTURE"]https://www70.online-convert.com/dl/web7/download-file/69bbb93e-48f3-4531-8a04-8edef252584b/bat.png[/IMG]
[Moto Z2 Force  Guides, News, & Discussion] Shakeel999:
Help please how do I have 2 bootloder when I used Flash all I returned every time stock 1 .bootloader ,please help how I will get 2 oreo bootloader to prepare for custom ROM...it's been 3 days I'm stuck in this step.
[Moto Z2 Force  Guides, News, & Discussion] Shakeel999:
Anyone help me ?

My z2 force bootloader is unlock,

I was andriod 8.0 stock Rom ,then I follow your guide (preparing for custom ROM )and I generated Flashall.bat and pasted in the folder of firmware 8.1 stock rom and Same folder I flashed this 8.1 ,so Do I have 2 bootloaders now ? I'm ready now to flash a custom ROM ? Please let me know as soon as possible.

Thanks X.da
[Moto Z2 Force  Guides, News, & Discussion] faizan571:
same problem please help me bro

:confused:

---------- Post added at 09:41 AM ---------- Previous post was at 09:19 AM ----------

flashmode say flashing locked

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

target reported max download size of 536870912 bytes

sending 'bootloader' (9884 KB)...

OKAY [ 0.286s]

writing 'bootloader'...

(bootloader) Validating 'bootloader.default.xml'

(bootloader) flash permission denied

C:\Program Files\Minimal ADB and Fastboot>fastboot oem unlock

...

(bootloader) Check 'OEM unlocking' in Android Settings > Developer

(bootloader) Options

OKAY [ 0.014s]

finished. total time: 0.0

I can not activate the unlocking oem because this brick
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
Yeah, you're bricked. You'll need the qualcomm drivers , these are win10 signed as well.

You'll also need the blankflash zip, get the oreo one.

You'll want a stock rom for your phone (xt1789-05) that's why we're here right? You can find it in post #6 as well as the flash all. If you're on another carrier or different version you need to find the appropriate firmware and flashall.

Install the drivers and get everything unzipped and ready. Once ready, run the blankflash bat, it'll say waiting for device, plug your phone in and hold the power button till it boots, it should do its thing. Once you're stable in bootloader mode, you can use the flashall to return to stock.

*Note - I've never had to use these, so your mileage might vary. You might need to try a couple of time while you wait for the drivers to recognize, might be frustrating if your phone bootloops, but once everything is settled it should take. You might need to manually assign the diag port driver if the loop causes problems, you can google how to do that. Once you're in bootloader mode, and windows recognize it, and you can verify connection with 'fastboot devices', then run the flashall. Good luck.
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
So in using the tool per your instructions I still get no luck. Gonna be persistent though and keep running the tool till I find some success.

Here's the usual output after running the .bat:

< waiting for device >
Motorola qboot utility version 3.85
[ 0.000] Opening device: \\.\COM3
[ 0.001] Detecting device
[ 8.544] ReadFile() failed, GetLastError()=0
[ 8.979] ...cpu.id = 94 (0x5e)
[ 8.979] ...cpu.sn = 3624714102 (0xd80cbf76)
[ 8.980] Opening singleimage
[ 8.980] Loading package
[ 8.982] ...filename = pkg.xml
[ 8.983] Loading programmer
[ 8.983] ...filename = programmer.elf
[ 8.984] Sending programmer
[ 9.055] ReadFile() failed, GetLastError()=0
[ 9.329] Unexpected command, expecting 3 or 18 or 4, got 1 instead.
[ 9.330] ERROR: sahara_download()->general error
[ 9.330] Check qboot_log.txt for more details
[ 9.330] Total time: 9.331s
FAILED: qb_flash_singleimage()->sahara_download()->general error

---------- Post added at 01:35 AM ---------- Previous post was at 01:18 AM ----------

Working off my other machine for the time being while I'm at work. I've found a program called QPST that should allow me to reflash the phone with the original image as I wait a painfully long time for it to actually download over the network here.
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
Yeah, I won't be much help here. I've never had to use this so I don't know what the error corresponds to. Make sure you use a 2.0 port on your mobo and not a hub or 3.0 port, those aren't always reliable or compatible. Maybe someone who has experienced this might be able to weigh in with advise. If [MENTION=4604067]Uzephi[/MENTION] is around he might know better. Sorry bro, I just know you're bricked and those are the tools you need. The other blankflash file is nougat, maybe it is needed to initially restore your phone? I would NOT advise that unless someone with more knowledge weighs in. Bad things happen when you downgrade, you end up with some hybrid false bootloader lock and you can't flash anything or do anything about it. So stick with oreo, try a dedicated 2.0 port and hopefully it all locks in place.
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
I've seen in another thread mentions of using the Nougat blank-flash just to pop into the bootloader regardless of the target version so I'm gonna give that a try.

Thread in question

EDIT: Solved it with the Nougat blank-flash on my laptop instead of my desktop For whatever reason, it wasn't reading properly on the desktop (which isn't the first time I've had issues with a USB 3 device in a 2.0 slot).
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Yes, not many have had luck with the Oreo Blank flash. I have only heard success stories using the nougat one.
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
And a little note that was made on that thread holds glaringly true, you do need the perfect windows DE set up to make that work. Having to go through 2 computers just to unbork my phone is a bit ridiculous.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
My little experience here:

1. Power cycle won't change the phone booting status afaik.

2. USB 3.0 and 2.0 make all difference with our phone.

3. The correct adb/fastbook executables too (as stated in the guides).

[MENTION=3302201]41rw4lk[/MENTION]: thanks for the Qualcomm drivers compatible with Windows 10.

[MENTION=4604067]Uzephi[/MENTION]: about Nougat or Oreo flashall, do you think it will worth to change this information in number 2 of guide E (unbricking)? Seems that for flashing AOSP number 4 of the guide B is correct: we need to flash the future Android version firmware due to future ROM compatibility. However, when recovering from bricks, maybe, as you say, Nougat is the way. Can you confirm that?
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
For the record, I blankflashed my phone through a USB 3.0 slot on my laptop (it's either that or a C-hub) and that did revive it.

---------- Post added at 09:34 PM ---------- Previous post was at 08:45 PM ----------

Ran through the process again, and hardbricked at the same point again. Happened while trying to install Invictrix + Magisk 16, after I go to reboot bootloader I get nothing. Gonna try with SuperSU once I'm up and running again and see if anything different happens
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
Power cycling won't bring you out of EDL mode (9008), nor would you want to really, it's basically your last chance to recover your phone.

2.0, 3.0, 3.1 ports aren't made the same. In reality most won't have a problem with this, I use a 3.0 hub on the front of my pc with no problems, but some might. It's a safer choice to use a 2.0 port on the mobo because it is a dedicated port. Usb ports aren't always so universal.

Correct adb/fastboot files are critical. When in doubt, Grab the utilities.zip from the return to stock thread, those are known good.

As for Nougat and Oreo firmwares. As we've seen here and in the others threads, nougat seems to be the one when it comes to blankflash and recovering from bricks. So that's probably worth noting. I didn't know that before, but now I do. As for Nougat firmware, I would not flash that for any reason. Most everyone is on Oreo now and downgrading is a bad idea, and to flash custom roms you should have Oreo on both slots or you'll brick.
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
Attempt #3

Back to installing TWRP, I noticed that the installer claims to be for version 3.2.1-1 but the installed version only reports back as 3.2.1-0.

Update: ROM installation is what causes the hard brick using 3.2.1-0. Upon restore I'm going to try installing using a booted 3.2.2-0 image

Update 2: Can't install anything through booted image other than TWRP. Must be something with 3.2.1 on causing issues?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Yeah. This is a fact. As 3.3.2.0 is being released for other phones, maybe they correct this glitch.
[Moto Z2 Force  Guides, News, & Discussion] DTHayakawa:
It might be a stupid question but, if I return to stock, is it safe to lock the bootloader again? If I choose to keep it unlocked, will I have to use magisk to pass the safetynet test?
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Almost all users do NOT suggest locking bootloader back again. By the way, is it possible to lock the bootloader and even try to use Magisk... I don't think so.
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
It also just occurred to me that my problems might have been arising from the fact that all of the ROMS I was trying to install were 8.1 based and I'm running 8.0 :cool::cool::cool::cool::cool:

Man it feels good to be an idiot.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
That wouldn't matter. We don't have official 8.1 and all of us running DU, LOS, AOSiP, etc are on 8.1 with the 8.0 firmware.
[Moto Z2 Force  Guides, News, & Discussion] PimpShit420:
By chance does anyone have a version of preparation. Bat for Linux? I dumped windows a long time ago because it's so much easier to use Linux with Android. Thanks in advance
[Moto Z2 Force  Guides, News, & Discussion] Technical:
[MENTION=2895094]cm0002[/MENTION]

1. Which is your variant? XT1789-05? Are you using the correct firmware when flashing?

2. Did you use adb/fastboot from the provided zip file?

3. Are you using USB port 2.0 or 3.0?
[Moto Z2 Force  Guides, News, & Discussion] cm0002:
[MENTION=1011179]Technical[/MENTION]

1. XT1789-04 T-Mo w/ the T-Mo firmware download as instructed

2. I have ADB set for system wide CMD, I'm not sure if the ones in the zip will be used over it, but I left them with the rest of the files

3. 2.0
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
Dude, this thread isn't for TMO variants ie: xt1789-04, you need to go to the return to stock thread and d/l the appropriate firmware and flashall.
[Moto Z2 Force  Guides, News, & Discussion] cm0002:
Thats what i get for smoking and attempting to flash roms...thanks :)
[Moto Z2 Force  Guides, News, & Discussion] Technical:
[MENTION=2895094]cm0002[/MENTION], what we're trying to say is that you should follow the guidelines for your model: https://xdaforums.com/z2-force/development/rom-aosip-t-mobile-sprint-t3773307
[Moto Z2 Force  Guides, News, & Discussion] shalpp:
It's literally the same instructions throughout the rest of the variants, you just use a different firmware file when flashing. That's all.
[Moto Z2 Force  Guides, News, & Discussion] Technical:
Take care right now using TWRP 3.2.2.0 and trying to flash any AOSP ROM not prepared to it (most probably, any released before 18/7/18). See more info, for instance, for Dirty Unicorns: https://plus.google.com/u/1/+JoshCorrell/posts/Aea3mqxcXxz
[Moto Z2 Force  Guides, News, & Discussion] HorstA:
Hi,

thanks for the very detailed guide. I constantly run into a problem at C (coming from OPXS27.109-49-5). You say just install the OS (lineage-15.1-20180717-nightly-nash-signed.zip) without wiping (Dalvik/System/Data) and it does install, but I always run into a bootloop afterwards. Even if I install twrp again before restarting, I can not even return to recovery, the phone is in a bootloop and I can not do anything in bootloader (it only stops in bootloader without constant reboot if I connect it to a PC). I can still use fastboot commands in that state so I can allflash back to stock, but I really want back to Lineage (my old Nexus 4 runs Lineage 15.1 without a problem). Could it be connected to the a/b slot system not recognizing the new OS?