yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I don't use any apps that require safety net so does even magisk or suhide pass safety net?
[Moto Z2 Force  Guides, News, & Discussion] jugernot:
Thanks for the reply!

I ended up re-locking the boot loader and Google Pay, Netflix, etc. now work just fine and Play store reports it as a certified device.

fastboot oem lock

fastboot flashing lock

fastboot oem relock
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I'm running stock rom rooted with magisk and my play store shows certified device?
[Moto Z2 Force  Guides, News, & Discussion] jugernot:
Magisk allows for Safetynet to show Certified because it doesn't modify the system partition the same way SuperSU does (not preaching, repeating from what I've read), but apparently Google added Boot loader checks back in 2016/2017. Is your boot loader unlocked (shows unlocked on bootloader screen, like 2nd line down...)? If so, I'm curious why my phone is so sensitive to the boot loader being locked...
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I am still new to this device but the play store definitely shows certified device and I am fully rooted with magisk (not Xposed tho). I'm not sure why but when inside magisk when I "tap to start safety net check" it comes back as "invalid response" ?

Also, yes, the bootloader is most definitely unlocked.
[Moto Z2 Force  Guides, News, & Discussion] shadowcliffs:
Thanks for the reply. I found out that my phone fails to apply OTA update and I thought it's due to TWRP, but you mentioned it's due to root. What should I do if I still want to take OTA update? Is there a way to un-root?
[Moto Z2 Force  Guides, News, & Discussion] 41rw4lk:
If you have TWRP, root, and/or both OTAs will fail. Both will modify your boot.img and when the OTA does its verification it will see an invalid checksum and fail. To take OTAs you need to be completely stock. I've seen some people mention relocking their bootloader, that isn't advised. Just an FYI. I've seen many try it and it has left them in a sorry state. Just make sure you're stock and you should be able to take OTAs.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
What I do and it's soley based on the fact that the constant notification comes up even when notification blocked, is I backup apps and data with twrp, flash all back to 100 pct stock, then take the ota. Then i Boot back to twrp, install twrp and magisk on both slots and then restore the backup.

It's annoying, but it works.
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
Ok, I unlocked the bootloader and root in order to sim unlock the sprint model and now the ota update is not working. I only booted TWRP and installed Magist Should I have updated the firemware and andriod to 8.0 before the unlocking? Then again the same issue will come out when pie come out
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I never had a problem taking otas with an unlocked bootloader. Don't relock it either or you could be stuck in a bad situation.

This happened to me too and it seems to do it every other time I go back to stock. Start over with flash-all to stock (it won't relock the boot) boot up, take ota then reboot. THEN do the root process.

If it doesn't work again, try it one more time. I have no idea why this happened to me either but it'll work eventually. This phone is very wonky
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
I through about that but wont I have to do this again when pie come out? Is it possible to reboot the device temporily to get ota and then root it back? I actually had a small scare at first when i push the magisk uninstall button, it try to reboot and it fail. It show the android bot with red!. I had to boot twrp and reinstall magisik and then it boot properly
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
You will have to do that exact same process for every single ota.

As for your reboot question, it would do no good as boot.img is already changed and therefore won't accept an ota. Its just much easier to do a backup of data in twrp to external SD card, flash-all and then root, get ota, and restore.
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
I meant unroot but you know what I meant.

What do you think of this?

https://www.androidauthority.com/how-to-unroot-android-phone-tablet-652905/
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
If you're just wanting to unroot, the flash all unroots to 100pct stock.

You can do an ADB backup for your data as well but requires a pc. You can just backup user data but I couldn't tell you the command for this but it's out there easily found.

Then ADB restore data (again look it up) and it'll put your apps back with data. I've only used it once. Twrp is much easier
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
I have the sprint unit and i am going to unlock it to use it on tmobile. Should I flash tmobile firmware to it or just stick with sprint firmware and then just ota and unlock it again? Well, I will have root it again to unlock it either way. If i stuck with sprint firmware, how do I get the android 8.0?
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I am not very helpful in this area, but I know [MENTION=4604067]Uzephi[/MENTION] has flashed Sprint on his att (or vice versa) so he can help much better than I can. He knows his stuff for sure.
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
I end up flashing the sprint firmware and my unlock remain so I got the OTA no problem. Just just need ot fidn a way to get rid of sprint app. I was going to flash to tmo but I heard someone softbricked over it
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
This phone is super odd in many respects, one of which is deleting bloat. TB doesn't work, but you can freeze it.

I haven't tried, but many people use an ADB debloat to do it.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
I didn't soft brick. When I flashed T-Mobile it recognized my Sprint sim as an invalid sim. I don't know if you'll fare better trying to use the T-Mobile sim with the sim unlocked.

Again, I didn't brick. It booted and let me go through the setup. I didn't go much further after setup since my Sprint sim wouldn't work.
[Moto Z2 Force  Guides, News, & Discussion] xellos2099:
I don't mean you, but there was a thread that say that.

https://xdaforums.com/z2-force/how-to/usb-otg-saved-soft-bricked-moto-z2-t3792483
[Moto Z2 Force  Guides, News, & Discussion] shook187:
What's the worst that can happen if I flash T-Mobile software on my Sprint phone and use a T-Mobile SIM?

I just want Wi-Fi calling and volte to work
[Moto Z2 Force  Guides, News, & Discussion] shadowcliffs:
It's due to carrier specific bloatware comes from a read-only partition, the oem partition, while other phones, Samsung as an example, stores oem stuff in system folder which is easy to get rid of once rooted.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
Thanks for the info on this. I didn't know that's how they did it and I assume all bloat will be like this from now on too but I hope it's just a Moto thing
[Moto Z2 Force  Guides, News, & Discussion] aviseqdas:
I flashed the retail rom and now I lost the radio, there is no wifi, no IMEI everything is showing up as all zero's. How do I restore the phone back to working order? Flashed the Sprint image but still no modem or radio!
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
It's kinda common but at least it's fixable. It's happened to me 3 times now. If I remember correctly, you have to find the blank-flash flash all to fix it.
[Moto Z2 Force  Guides, News, & Discussion] aviseqdas:
Yes luckily flashing the Sprint Stock ROM fixed. So far I see only the T-mobile and Sprint can be flashed without any issues,but not AT&T or retail rom. I am on cricket and was trying to see if I could get VOLTE to work by flashing the AT&T rom.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
I just had this issue again on a new warranty replacement and I ended up having to download the new flash-all from uzephi. I guess using an older flash-all than the current software causes this??

Glad you got yours fixed up
[Moto Z2 Force  Guides, News, & Discussion] shadowcliffs:
Are all those 3 commands required? Is there still the warning message about the bookloader being unlocked after this? TIA.
[Moto Z2 Force  Guides, News, & Discussion] Caltinpla:
I just did: fastboot oem lock (twice, the 2nd time to confirm)

No, the unlocked bootloader warning is gone, but I got a yellow warning "your device has loaded a different operating system" instead even though I am stock and never flash any custom rom.
[Moto Z2 Force  Guides, News, & Discussion] guapinoy:
Yeah if you made any mod to the rom including unlocking it by chmod id_00 it will have this. Haven't found a way to get rid of it. Google play and Netflix works though.
[Moto Z2 Force  Guides, News, & Discussion] shadowcliffs:
I accidentally flashed the retail rom with Sprint NON-HLOS.bin the my phone in hope of getting rid of Sprint bloatware but it ends up the phone wont recognize Sprint SIM any more.

I then tried flashing Sprint rom but there are many remote failure and boot.bin and all system file can not be written.

Then I realized that the bootloader is still locked. Then how come the previous flashing of the retail rom was able to make changes to the system (it shows the retail rom's build number)?

Any idea?
[Moto Z2 Force  Guides, News, & Discussion] dave31g:
I'm currently running DU 8.1.0 on t-mobile and can't seem to determine if the flash-all in the second post is safe for me to flash. Any help is appreciated. Thanks.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
Yes it's safe to flash. It will put you back to 100 pct stock, so no twrp and you'll lose your data.
[Moto Z2 Force  Guides, News, & Discussion] collinrs:
Is there really absolutely no way to get rid of this? I swear on my HTC phones, I could flash the RUU and return it to 100% stock. Does Moto not support this? I've been trying to get the Lenovo Moto Smart Assistant app to perform a recovery, but it keeps saying my XT1789-03 isn't supported, even though its on the dropdown list.
[Moto Z2 Force  Guides, News, & Discussion] Caltinpla:
No, as far as I know... Please share with us when you figured it out.
[Moto Z2 Force  Guides, News, & Discussion] 3's&7's:
Question:

I used NASH_TMO_C_OCXS27.109-51-4_subsidy-TMO_RSU_regulatory-DEFAULT_CFC.xml to flash back to stock successfully.

However, I cannot update the device w/ OCXS27.1.3 and it fails over and over again.

I did not re-root, nor twrp...I even tried re-locking the bootloader for safe measure.

What am I missing? Thank you in advance for any input!
[Moto Z2 Force  Guides, News, & Discussion] TwoBuells:
Is the Flashall.bat file ok for all the firmwares? The command line “fastboot flash oem oem.img”

There is no oem.img file in the Verizon firmware, just oem.img_sparsechunk0 and oem.img_sparsechunk1.

The reason I ask is I can not get past setup when flashing the Verizon Firmware. “Setup keeps closing” error. The only way I can have service is with the Sprint Firmware and the VzW sim and its roaming. No service when not roaming.

Verizon confirms my phone is unlocked and should work. My Sprint account is also disconnected.
[Moto Z2 Force  Guides, News, & Discussion] woodstock101:
Worked perfectly, thanks for this.
[Moto Z2 Force  Guides, News, & Discussion] 3's&7's:
Anyone have any idea what I am missing here (need to get this perfectly back to stock for a carrier turn in)?
[Moto Z2 Force  Guides, News, & Discussion] skywalker-live:
https://androidfilehost.com/?fid=5862345805528054823

This is the 27.1.3 flash all. Use this to return to stock.
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
NM too much info
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
[MENTION=3167089]runningnak3d[/MENTION] flash-alls
[Moto Z2 Force  Guides, News, & Discussion] 3's&7's:
Thanks Josh, I did have your original post in email notification.

My local T-Mobile retailer will run the phone through a factory reset and observe...must look legit and having an update fail notification would not look good lol

Thank you for your support on my issue :good:
[Moto Z2 Force  Guides, News, & Discussion] Josh McGrath:
You have nothing to worry about. I was that guy for a while and nobody even knows what root is or cares as long as there's no water or physical damage. Lol
[Moto Z2 Force  Guides, News, & Discussion] proxybox:
For those that are having problems taking OTA

I was having issues updating over the air like some of you after performing the flashall. I noticed that my flash was not taking very long and so I decided to take a look at the bat file. The bat file clearly shows that the unzipped files need to be located in the same directory as the flashallutil folder, not as a subfolder. So I copied everything over and now my flash takes much longer. I realized that when I unzipped the carrier zip file for my Sprint Z2 Force it was placing it in the flashallutils folder as I directed but putting those files in it own separate sub directory.

Also, open a command prompt, cmd, first and then from there make your way to the directory where flashallutils is stored and run the bat from there. Don't double click the bat file. You will be able to see the progress and the window won't close upon completion so you can check that all the modules are installed properly.

Now I'm able to perform the OTA without issue. I've read not to install the permanent twrp zip and only installing the temporary TWRP img and installing MAGISK to maintain this ability as well for future updates.

Perhaps many of you are executing the bat but not actually pushing over the carrier zip like I was. Worth a try.

Hope this helps others.

***Thanks Uzephi for putting together this awesome tool and posting this thread.***
[Moto Z2 Force  Guides, News, & Discussion] netorincon:
Hi, I live outside the US and I'm not really sure which flashall i should use. My carrier is Telcel (Mexico). Does anyone know if any of the flashalls in the OP will be compatible?
[Moto Z2 Force  Guides, News, & Discussion] riskyfuture:
If your on Android 8.0 I found this flashall for your device

https://mirrors.lolinet.com/firmware/moto/nash/official/TELMX/

It's the only one on there
[Moto Z2 Force  Guides, News, & Discussion] netorincon:
Amazing, thanks a lot! I haven't actually rooted my device yet but I wanted to make sure I could go back to stock if anything goes wrong when I root.
[Moto Z2 Force  Guides, News, & Discussion] lolwatpear:
when I click flash all, all that happens is the command promp quickly flashes with several lines (can't even read it as its too fast) and then closes and my phone reports to the bootloader. What is wrong?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Are the files from the flash all (the IMG and bin files) in the same folder as the .bat file?
[Moto Z2 Force  Guides, News, & Discussion] lolwatpear:
Yeah got it working. I had to click the .bat. Running in the command prompt wasn't working for me for some reason. Thanks.
[Moto Z2 Force  Guides, News, & Discussion] KimingLi:
Thanks! It is very useful! I appreciated it.
[Moto Z2 Force  Guides, News, & Discussion] kapsama:
Hi I apologize in advance if this has been answered numerous times before, but is there any way to get rid of the "Your device has loaded a different operating sytem" yet?
[Moto Z2 Force  Guides, News, & Discussion] rvntone:
Still not getting it boot

Hi, I have a moto z2 force at&t previously I did flash a wrong carrier firmware (I think) and when it boot it shows the Motorola logo and starts blinking, after that I got a screen that said " no bootable a/b slot fall-through from normal boot mode" and another text that said connect the phone the the PC and use a software repair assistant to repair it in the bootloader log, and the fastboot screen lost some of it functionalities like some option in red, some of them apparently don't do anything, and also lose the android robot (the one that is open like getting surgery), after that I found this post and I did flash as you said the at&t one, and after the last line of the batch script it restarted and get a normal fastboot screen with all the color and the android robot, but as soon I selected start it goes again as before, showing the fastboot screen incomplete.

Please some help

What can I do to fix it?
[Moto Z2 Force  Guides, News, & Discussion] jeffritz1:
I also have the same question. I have been through XDA thoroughly and all I can see is people have accepted this but no one has been able to provide a technical explanation why. All I have gathered is something to do with unsigned image and Motorola will never release a signed image. True? Why? First phone I have owned where I could not revert back to 100% undetectable stock just operationally stock.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
The flash all zips are signed or OTA functionality wouldn't work. We have a counter that trips when an unsigned image, or the image integrity changed (mounting system as re for example). Once this counter is flipped from 0 to 1, there is really no way to flip it back. It isn't rw and currently no known way to change it back to 0.
[Moto Z2 Force  Guides, News, & Discussion] universeisgr8:
I was unlocking the sprint z2 force and after finilizing the process and before rebooting phone i relocked the bootloader. Now the phone is in bootloop with a message that your device has been loaded with a different operating system. Will this method of flashall work to fix this issue?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Yes, re-unlock then run it. The flash all will not affect your sim lock status.
[Moto Z2 Force  Guides, News, & Discussion] 3's&7's:
Sorry for late thanks - ty! I ended up using T-Mobile jump with an online order and did not have to mess with retail store judgement (or lack thereof!); device was in mint condition and had no issues. :good:
[Moto Z2 Force  Guides, News, & Discussion] rylip:
Hi I dont know if it's possible I have a Sprint Moto z2 force can this device be downgraded to Android nougat? I've looked all over and haven't come up with much any help would be appreciated
[Moto Z2 Force  Guides, News, & Discussion] towir022:
Nougat???

So I am rooted and bootloader unlocked but I am on the Nougat 7.1.1

Can I follow this guide or do I need a Nougat factory image.

I have not changed roms the rom is moto z2 force sprint stock Nougat 7.1.1

It would be nice if I can just follow these directions but if not what is my best option at this time as my goal is to go back to stock so I can OTA to oreo so that I can flash oreo roms safely?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Just flash the Sprint flash all. It has everything needed to upgrade to Oreo and it is two releases back so you can OTA to enable slot b
[Moto Z2 Force  Guides, News, & Discussion] towir022:
Thanks

I will do that thanks! What is this slot B that I keep hearing about?? Not really sure what that means.

When I flash the sprint flash all and it returns me to stock with it lock my bootloader and remove TWRP as well?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
It will remove twrp, but not relock.

This phone has two bootable slots for seem less updates. Everything but data has a slot a and b
[Moto Z2 Force  Guides, News, & Discussion] rylip:
Does the bootloader have to be unlocked if I am flashing the same version I am on currently my Moto has had random wifi dissconnects since the last update and I'm hoping that a fresh install will fix it.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
It shouldn't. I never tried flashing on a locked bootloader.
[Moto Z2 Force  Guides, News, & Discussion] rylip:
Worked flawlessly thanks!
[Moto Z2 Force  Guides, News, & Discussion] minty95:
question what original rom file is need for European models ?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
None of those. Motorola's AFH profile caters to US release phones. Best to try lolinet or something for firmware files.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Someone on the Z2 Discord found an interesting tool to download official flash-alls. I will edit OP with how to use it and how it works after I tinker with it this weekend. Until then: here is the latest T-Mobile Sept 2018 security update via Official images: https://drive.google.com/open?id=1Bo_ry_38J6BHy4-A4fuhAnv94C5yV1TW Updating second post with this G-drive link as well, eventhough it isn't from Motorola's AFH, it was downloaded using the Lenovo Moto Smart Assistant: https://support.lenovo.com/us/en/downloads/ds101291
[Moto Z2 Force  Guides, News, & Discussion] volcomguyaz:
I am currently going through the thread for more info however, does anyone know off-hand if this is okay to execute with boot loader unlocked? will it re-lock the boot loader? Do I need to re-lock first? thanks guys
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
It is advised to stay unlocked 100% of the time after unlocking it. There really is no reason to ever lock your bootloader. Motorola/Lenovo only need to run the fastboot command "fastboot getvar iswarrantyvoid" and our bootloader will spit out yes. So even returning to manufacturer doesn't need a relock, but can't hurt if you're sending in for RMA.
[Moto Z2 Force  Guides, News, & Discussion] volcomguyaz:
From the man himself! Deff makes sense. deff appreciate the response AND all of what you do for the community! Keep up the great work!
[Moto Z2 Force  Guides, News, & Discussion] Hibinoh:
I have 2 xt1789-03(Sprint) one is bootloader locked and one is bootloader unlocked running stock Sprint firmware but rooted with Magisk.

Today the November OTA went out and I upgraded the locked z2force with no problems (of course), but I am wondering how I can accept the OTA on the unlocked & rooted z2force.

I thought I can just run the Magisk uninstaller and Magisk should return the phone back to stock but after reading pages in this thread I learnt that actually Magisk uninstall does not work and will stuck in a boot loop. I guess if I want to accept the OTA I'll have to do the flashall and loose all my data right?

For the future OTAs, I actually do not need root all I need is google certified to use Google Pay. And Magisk does the trick to certify the device even bootloader is unlocked. I am wondering is there anyway I can certify the device with the stock rom after unlocked the bootloader(so I won't have OTA problems)? Does re-lock the bootloader help with that? Thanks
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
Never re-lock unless you're complete stock. I have taken every Sprint update unlocked since August 2017. If you want to OTA, you have to flash all to stock.
[Moto Z2 Force  Guides, News, & Discussion] windinsky:
Hi,

I hava unlocked bootloader of my Sprint Z2 Force. Right now, I can't update security software. Can I follow your step to return to the stock? Actually, I don't understand what's stock. Is that mean orginal software?

Thank you very much.
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
My steps will return you too stock and also format internal storage. (I.E. all files saved on internal storage instead of SD will be lost, that is the fastboot -w command in the bat file)

Stock means unmodified.
[Moto Z2 Force  Guides, News, & Discussion] windinsky:
Thanks for your response.

You means that if I do that, My bootloader will become locked like orginal?
[Moto Z2 Force  Guides, News, & Discussion] Uzephi:
No. Without explicitly entering "fastboot oem lock" your bootloader will not lock. (This is why you should look in every script to make sure that command isn't there). You can be stock unmodified and still be bootloader unlocked. Only difference is in cmdline your lock status will be 1 instead of 0
[Moto Z2 Force  Guides, News, & Discussion] windinsky:
Thank you for your help.

You mean I can lock the bootloader even though I unlocked it?

My issue is I can't complete my OTA update. I think the reson is the unlocked bootloader.

That's why I want to flash the software.

I hope I express my idea clearly so that you can understand.

Thank you again.