yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  Guides, News, & Discussion] fast69mopar:
Did you get it figured out? I suggest pulling the cable and starting over with a fresh install.
[Moto Z2 Force  Guides, News, & Discussion] navi7512:
dual sim

I have enabled dual sim, whats happen if go back to stock?
[Moto Z2 Force  Guides, News, & Discussion] fast69mopar:
I am almost certain that if you return to stock using a flash-all that you will not have the dual sim capability anymore.

Why do you need to return to stock? Are you having issues?

If you run a flash-all to return to stock, flash the dual sim zip again once you get TWRP installed so you can get the mod working again.
[Moto Z2 Force  Guides, News, & Discussion] navi7512:
No issues, just want to take the OTA to pie. From other threads i was thinking to exclude the following lines to keep the dual sim:

fastboot flash modem NON-HLOS.bin

fastboot flash fsg fsg.mbn

fastboot erase modemst1

fastboot erase modemst2

Do you think this will work?
[Moto Z2 Force  Guides, News, & Discussion] fast69mopar:
Are you with Verizon in the USA to take the OTA?

From everything I have been reading, I am not sure if an Oreo modem will work with a Pie ROM and from what we have seen so far from other users is that once you install a Pie modem you will be unable to revert back to an Oreo modem.

Now, on the other hand, your strategy may work. By eliminating the flashing of the modem you may be able to use an Oreo modem with the Pie ROM. I dont see any reason why it would cause any issues if you decided to leave out those 4 lines. Give it a shot. The worst thing that I could see happening is the Pie ROM not working with the Oreo modem but you may be the first one to attempt it. This may be the trick that saves other users from having a paper weight once they tried to update from Oreo to Pie on a carrier that has not officially released the Pie OTA. Let us know what happens.

Make a note of what version of Oreo that you are using right now. Write down the ROM version. Boot to the bootloader and copy down the modem listed as well. That way if you have to use a flash-all to get things working you know which version you need to set up in the flash-all.
[Moto Z2 Force  Guides, News, & Discussion] navi7512:
So going back to stock without flashing modem lines worked fine. However, was not able to take OTA so to keep the dual sim flashed a retail ROM and worked fine.
[Moto Z2 Force  Guides, News, & Discussion] ElwynnEldoriath:
41 pages of discussion and I'm still not sure if there is a way to return to stock (incl. locking bootloader) or not...
[Moto Z2 Force  Guides, News, & Discussion] fast69mopar:
You can return to stock and be able to accept OTA's. I as well as several users have returned to stock, taken the updates and then installed

TWRP + root again.
[Moto Z2 Force  Guides, News, & Discussion] ElwynnEldoriath:
I already did OTA to android 9 with an unlocked bootloader, but now (for some reason), GPay is not working anymore, although it did back with android 8. This is why I want to relock my bootloader again (or: NEED to relock), but I can't find any manual on how to do so :(
[Moto Z2 Force  Guides, News, & Discussion] fast69mopar:
Did you try to boot to fastboot and run the command:

fastboot oem lock

Does this give you an error?

Or have you not tried to relock the bootloader?
[Moto Z2 Force  Guides, News, & Discussion] ElwynnEldoriath:
I tried while on Android 8, it seemed to work, at least GPay was working. As soon as I OTA to Android 9, I received the two booting messages warning me of the unlocked bootloader and GPay is not working anymore. So, for some reasons, OTA did unlock my phone again or it never actually locked it again and I just fooled GPay to work on Android 8 with unlocked Bootloader :confused:

For this reason, I haven't tried it again on Android 9 yet
[Moto Z2 Force  Guides, News, & Discussion] crossface:
My son brings in his phone and says it's broken. The phone only boots up to AP Fastboot Flash Mode (Secured) screen. This phone is completely stock Sprint. I've tried booting it in any way possible through the options given me and it always lands the same place. I downloaded the files from the first posts and I run the .bat file and it runs through everything in like 3 seconds, reboots the phone and I get back to more or less the same page.

I'm not sure what to do here. Is the phone just dead?

I even downloaded the newest version of the official Sprint version that's installed on the phone and tried it with that. Same issue.

Edit: I even downloaded Lenovo Moto Smart Assistant and tried fixing it that way. It says Fastboot Flash > Flash failed. Please try again.
[Moto Z2 Force  Guides, News, & Discussion] sd_shadow:
Remove sim card and sd card

And retry
[Moto Z2 Force  Guides, News, & Discussion] crossface:
Just tried that. Same thing as before.

Motorola told me it would be $300 to repair or replace. I ended up buying 4 new phones today. This will probably get trashed sooner or later if I can't figure out how to fix it.
[Moto Z2 Force  Guides, News, & Discussion] danielg4:
Is the bootloader unlocked? I doubt the methods discussed here accomplish much if no.
[Moto Z2 Force  Guides, News, & Discussion] crossface:
No. It's 100% stock.
[Moto Z2 Force  Guides, News, & Discussion] BlueIce84:
I have used my Moto Z2 for about one year. Bootloader was unlocked, twrp installed and rooted with magisk. Anything goes fine.

Now I decided to clean the phone and did a factory reset. What a mistake! Since then I stuck in bootloop. Only can boot into twrp.

I got a XT1789-06 with retail rom, updated to Android 8. Which Flashall files I need?
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
You can find RETAIL firmware here.

I've attached a folder with adb/fastboot and a .bat file to create a flashall for your firmware. Just extract the firmware into the attached zip, run the .bat script to create your flashall, then run the flashall to flash your firmware.

Credit to RootJunky for the xml to bat script.
[Moto Z2 Force  Guides, News, & Discussion] BlueIce84:
Thank you for the zip.

But it did`nt work as well. See attached log file.

still bootloop and now there is a message "verity mode is set to disabled"
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
If you look at your log you can see that the name of the partitions are wrong, they have a double__underscore. So you should try copying the the commands in the flashall one at a time and adjust accordingly.

For example say you post the command fastboot flash logo logo.bin and it returns fastboot: error: Command failed logo__a: not found

You know it's trying to flash the _a slot, which is fine so tell it to do so manually fastboot flash logo_a logo.bin
[Moto Z2 Force  Guides, News, & Discussion] BlueIce84:
Great! Thanks for your help. TWRP is gone but phone boots up normally.
[Moto Z2 Force  Guides, News, & Discussion] BeingHuzzii:
Hi iam open flashall.bat fill but its show waitng for device what should I do waiting or no ?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
It sounds like either your phone isn't in fastboot mode or your PC doesn't have the correct drivers to recognize your phone in fastboot mode.
[Moto Z2 Force  Guides, News, & Discussion] handsoncolorado:
Forgive my ignorance, but what is the exact text I need to enter before the file I want to be pushed in the command prompt? adb boot... adb flash... fastboot flash... fastboot boot?

I am having a really hard time getting my phone to push a file for some reason in TWRP. ADB sideload will not open in TWRP. My phone is stuck at the Motorola startup logo and all I can access right now is TWRP and Bootloader. Unfortunately, I do not have a nandroid backup to recover to (DOH!).

I tried flashing it in Bootloader using "fastboot boot" and it says;

creating boot image...

creating boot image 4096 bytes

downloading 'boot.img'...

OKAY [ 0.000s ]

booting...

OKAY [ 5.130s ]

finished. total time: 5.134s

Then, it reboots to recovery. When I try to reboot the phone from there, it just sits at the Motorola start-up logo still.

PLEASE, HELP ME!! Thanks!!!
[Moto Z2 Force  Guides, News, & Discussion] ibra727:
Please help! It doesn't continue (please have a look at the screenshot)
[Moto Z2 Force  Guides, News, & Discussion] manzzyReborn:
same issue here, i think i flashed the wrong boot img and it broke everything
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
The .bat file isn't included by default, it's created by users to automate the flashing process. The .xmls are usually for other programs like rsdlite and such, .bats you can flash right in your cmd prompt just the same.
[Moto Z2 Force  Guides, News, & Discussion] pmacevad:
I'm currently running the version attached in the screenshot. What would be the proper file to use to return to stock and remove traces of root? Just want to be sure so I don't screw up device by flashing the wrong file. Tia.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
I don't have -3. Motorola firmware team should have an official release usually 1-2 months after the ota
[Moto Z2 Force  Guides, News, & Discussion] pmacevad:
Do I just wait or is there something that I can use if I mess up my phone to return to stock?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Honestly, I have no idea. Nougat updates worked fine, so it may work, it may cause issues if you flash all back to the older Oreo version. In theory flashing all to the version before is pretty much doing what the phone would do by swapping slots.
[Moto Z2 Force  Guides, News, & Discussion] pmacevad:
I just don't want to get into a situation where I have a device that won't boot correctly if I have to return to stock. Hopefully someone can chime in with their experience to confirm whether or not it would work.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Link in OP and second post for the Oreo version is the official one released by motorola with a slight edit on my end. It will now erase everything like as if it came out of the factory (even internal SD, external is untouched). It now will let you update to -3.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Updated OP to be more universal. Post two now has the official zip links from MFT and my utilities I use to use them. Unless it's an official release, please don't post any, but I will put links to other versions as long as it's an official release from Moto/Lenovo.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
Thank you for your post and links. You saved me a RMA cause I lost my imei and baseband. Flashed this and worked perfectly and rooted again ?
[Moto Z2 Force  Guides, News, & Discussion] niyaolowe:
I have tried this flashall and utilites and still cant seem to take a ota update or use android pay? anythoughts? advice?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
You can't use android pay if your bootloader was ever unlocked without magisk or a custom kernel that hides the bootloader lock state. There is 0 never been unlocked, 1 unlocked and 2 relocked.

Which flash all, what is your bootloader status and what does your about phone screen say?
[Moto Z2 Force  Guides, News, & Discussion] felipevsw:
This links to the Moto Z2 PLAY (XT1710), not the Moto Z2 Force (XT1789).

EDIT: Well... the filename says NASH, but the category on AFH is Moto Z2 Play... I guess just the AFH category is wrong, sorry.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
MFT didn't bother making a separate folder for the NASH
[Moto Z2 Force  Guides, News, & Discussion] zlebors:
I flashed back to stock, but Software status still "modified" (yellow font), how to change this? do I need to "fastboot oem lock" and re-flash the firmware?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Currently for this phone there is no known way to show software to official after you modify any partition.
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
can anyone tell me how to use this? were exactly must the utilities go?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Instructions in second post:

How to fix your phone:

Download the Utilities zip

Extract the zip to it's own folder

Download the flash all for your device from the options below.

Extract the flash all zip into the same folder as the Utilities.

Run the Flashall.bat file

Watch windows command prompt put your phone back to stock!

All of that is done on your PC with your phone hooked up and in fastboot mode.
[Moto Z2 Force  Guides, News, & Discussion] riskyfuture:
If I'm not mistaken but aren't these links not for the Z2 play and not the Z2 force ?
[Moto Z2 Force  Guides, News, & Discussion] skywalker-live:
Motorola put our links in with the z2f play links. Play codename is Albus, Force codename is Nash. The links are directly to the correct files.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Motorola was being lazy and didn't give us our own folder... The Z2 force seems to be the redheaded stepchild of the mod phones...
[Moto Z2 Force  Guides, News, & Discussion] riskyfuture:
Do you know if there is a way to pull the file off the phone as my device is software channel vfeu and software variant of, Would like it just incase something thing goes wrong. As you can see I'm still on the October patch this is definitely the ginger stepchild lol
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Updated second post with disclaimer and information about the folder our flash alls are in since that seems to be a popular question.
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
But my phone is already on oreo. can i still flash?
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
I ran the utilities and the whole flash sequence seemed to be a few seconds long. However, I still have twrp recovery. It seems to have flashed just the stock room. Can anyone help with this
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
You extracted your stock ROM from the links in second post? You should have had 2 zips: utilities and the ROM. One is a few megs and the other a couple Gigs
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
Right, there is a folder for the utilities and the rom, I ran the flash file and it opened a cmd for a minute.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
If it took a minute then it didn't flash any file. System alone takes 5 minutes. What files are in the folder where the flash file is?
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
the flash file contains many things; adspso.bin,boot,bootloader,etc.

---------- Post added at 03:45 AM ---------- Previous post was at 03:42 AM ----------

when i run the flashall I believe all its doing is wiping the userdata. why is that?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Because it cannot find the files. Your flash file and the images from the zip need to be in the same folder. Can you screenshot the folder you're using and upload here?
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
I attached below a screenshot of the utilities folder and whats inside the flash file. Do the images need to be in the utilities folder (not in a separate folder as seen in the screenshots)?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
That's your problem. They need to be in the same folder as stated before
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
I must've misunderstood, ill try again and hopefully it will work. Thank you!
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
All good. Maybe I stated it wrong, but yes, the utilities need to be in the same folder as the flash all files or the .bat won't find them
[Moto Z2 Force  Guides, News, & Discussion] wiswis:
It restored my phone to stock successfully but now i tried to take the ota and it failed. Is it because my bootloader is unlocked?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
I honestly don't know. We have tried to pin point what causes it with no luck. sometimes it installs and others it fails. No rhyme or reason.
[Moto Z2 Force  Guides, News, & Discussion] focused67:
Can I use this method to upgrade to Oreo?

I have a Moto 1789-04, AT&T branded, which I bought in "new other, unlocked" condition from an eBay source. It works great, but it won't OTA upgrade to Oreo. I just called AT&T, and they reset the push for my IMEI, but settings still says my device is up to date at 7.1.1, security patch June 1, 2017.

If I use this flash all for AT&T Oreo, will it upgrade my phone? Thanks!
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
It "should" since it has the gpt binary in the official zip. But that's in theory
[Moto Z2 Force  Guides, News, & Discussion] focused67:
Awesome -- one other question: since the AT&T bootloader is locked, do I need to root in order to use this method?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
The link in second post is the official images from Motorola, so lock status "shouldnt" matter
[Moto Z2 Force  Guides, News, & Discussion] PhantomSoul:
After flashing this, I'm assuming is it safe to re-lock the bootloader, yes?
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
Worked for me. Even if not, just do the flash all again if you get the corrupted and will not boot message.
[Moto Z2 Force  Guides, News, & Discussion] PhantomSoul:
The phone after locking the bootloader works great!

But, the "Unlocked bootloader" warning has been replaced with "Loaded different OS", which I'm looking to get rid of. It's very weird that it does that.

Any solutions :( ?
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
Mine did that to me too but I was just returning my 3rd replacement. It's really weird cause it's the official software. Maybe try the trick on here of getting rid of bootloader unlocked screen. The same principal should work
[Moto Z2 Force  Guides, News, & Discussion] teradark:
Can i still use these if i already flashed the latest OTA?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Yes, flash the same mainver. I.E. don't flash nougat if you're on Oreo. I have flashed back to December update from march and experienced no I'll effects.
[Moto Z2 Force  Guides, News, & Discussion] PhantomSoul:
[MENTION=4604067]Uzephi[/MENTION]

Is there any solution to the "Your device has loaded a different OS" issue?

I'm looking to sell the phone :(
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
None that I know of. I got this phone with the intent of unlocking the bootloader, voiding the warranty and never reselling it, so I never attempted to reset that flag.
[Moto Z2 Force  Guides, News, & Discussion] uglatto:
Hey, I figured I'd ask here since it seems like OP has a lot of experience flashing different stock firmware to Z2's. I'm on XT-1789-03 (the Sprint variant). I bought this one because it contained all the same bands I would need to work with Verizon, I figured popping my in VZW SIM, booting to TWRP, and installing Magisk would just work. Now I think I'll settle for anything to get my radio working again.

Is there a nice step-by-step for anyone in my type of situation trying to get this thing to work? I've gone through just about everything. There was a period when the network was working only if restarted into fastboot every time and input the commands shown here, full 4G no prob. Then it started only working in roaming mode. Then it wouldn't even recognize if there was an SD card inside or not (it should show "mobile data" with no bars, and ejecting/re-inserting the SIM had no effect. Mobile networks APN settings were all greyed out.) Currently it's not even making it past the "Please wait, this may take a few minutes." prompt at setup. I'm at my wits end. I figured booting to TWRP and formatting data would do the trick, but it seems to have no effect. I've always stayed on O and not downgraded to N at any point. I've tried a couple different of your VZW flash-all's, a Sprint one, and a plain "retail" one. I've also tried a different flash-all someone mentioned earlier in the thread that omitted a few things. So far nothing is indicating I'm moving in any sort of a right direction. The cool thing about android is even a dingus like me can mess around with stuff, and it'll mostly be fine, but I've never had it not be at the point where I couldnt just re-flash stock and have it work again. Please help! Thanks~
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Wipe data in stock recovery. After you flash firmware for a different model, you need to wipe with their recovery.
[Moto Z2 Force  Guides, News, & Discussion] robbiekinnz:
moto z2 oreo stock

hello, question. where would i have to have my phone screen on , right now i am unable to boot my phone in anything but bootloader, is that okay? right now i executed the flashall and it is currently at :sending partition (206kb) its been at that screen for about 5 minutes so far, any suggestions>? ALOHA -Robbie
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Either bad USB port, bad cable, bad drivers or bad emmc.

Edit: You're in the right area to flash. Sending partition is the first thing the computer sends to the phone which is why I suggested what I did above.
[Moto Z2 Force  Guides, News, & Discussion] uglatto:
Thank you! That helped, I thought you had to do it in TWRP. I'm still having issues with my SIM card. I've tried a couple stock Sprint ROMS (my phone is variant -03), a verizon one, and even the AOSiP ROM floating around here, all with stock recovery data wipe in between. It doesn't want to recognize my VZW SIM. When I was first trying this I downloaded the Verizon stock image and had the best luck, it activated at setup and booted with 4G and only stopped recognizing once I restarted. Nothing was working to get it recognize again so I tried the Sprint ROM. It was working, but constantly said the signal was roaming. I switched the roaming mode from automatic to home back to automatic, and it cleared it, but I had the same issue with it not working at all after a restart. After restart I can say it is recognizing the SIM at the very least, just not doing anything with it. I can tell because when I eject the icon is a SIM with a slash through it, and when I insert it, it's empty signal bars. Also sometimes I can make the SIM read for that session by reflashing the modem before boot.

Is there anything I should try? I was thinking about going in for a new SIM, but that fact I've gotten it to work sporadically tells me it might be software. Hoping it's something simple! Thanks for all your help!

EDIT: & as I mentioned in my previous post, the phone is SIM unlocked, and should be able to accept VZW since -03 is CDMA and shares the same verizon bands. Now I'm wondering if I'm mistaken somehow? Is anyone else out there using their Verizon network on -03?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
I honestly wouldn't know. In theory, it should work. I can only state that my Sprint phone works on sprint and when flashing another variants flash all, because I am sim locked and it is a sim for a different carrier than the software, it locks my sim out.

Edit: I.E. I flashed T-Mobile flash all for Oreo. I got the notification on first boot that I need to sim unlock my phone to have this sim work on my phone... So the T-Mobile ROM wanted a T-Mobile sim... I'm still wondering what'd happen if I did insert a T-Mobile sim...
[Moto Z2 Force  Guides, News, & Discussion] uglatto:
Glad I'm not crazy and you agree it should technically work! A little more info, I decided to not restart this time and just see if it would correct itself over the course of the day. So far no. Also when I turn wi-fi off the mobile network roaming icon turns from an "R" to a triangle. Mobile data is not working whatsoever, but voice, text, and mms are totally fine. The only APN listed is "VZWINTERNET", I'm holding off on resetting to default APN's because I think that broke it last time. Do you think Sprint or Verizon would be able to do anything if I bring it into a store? I can give it a shot tomorrow.

BTW I know I'm probably giving a lot of extraneous info, I'm just including it in case it jogs anyone's memory for how to fix it if they've had similar problems!