yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ddxBrandon:
How do I go about determining these details? I've tried doing

fastboot getvar all

and i don't see a revision number entry at all.

Bootloader itself doesn't show me this. Unless I'm missing something and I just don't know how to access it yet.

What, if at all, is the risk of flashing the firmware to replace both slots with Oreo code? Specifically, if I flash this with the intent to keep using stock (until I can find all the stuff I need to reliably go back to stock after a custom ROM), what will happen to me right now? Will it wipe/fail to boot/etc?

I'm excited about your ROM but I'm also reading all this stuff about losing baseband/IMEI/etc, and I'm not as good with all this new flashing, dual slot stuff. I'm used to the old methods with Droid 4's where we were using Safestrap or whatever it was back then to install ROMs into slots stored in /userdata without modifying /system.

I'm not afraid of a Nougat bootloader lock, as long as I'm good to flash the firmware stuff... but I haven't found a dead-set, written in stone method to get back to stock on a t-mobile -04 SKU. Especially concerning is all the links I found to anything to help me restore a lost baseband/IMEI are all dead, and I want that stuff locked down before I start this adventure. Any help getting hold of it would be GREATLY appreciated as well as boost my confidence.

Last questions to end my already long-ass reply, this dual slot business, I've figured there is slot A and slot B, but can we switch between them? Do they work together? like a fully booted functioning system in A working with a kernel from B? Or, what all is stored in the slots? If there's a write-up, I'll read it thoroughly.

Thanks in advance for dealing with the wall of text. I'm excited about this phone but I've got a lot of learning to do first.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Narco8:
Now if I go to TWRP, it wants me a password to decrypt a data. What should I do? Is there a way to decrypt phone without wiping all data?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DrakeJones:
Sprint 3G APN Problems

I want to start off by saying a Big Thank You for your work. The ROM is great, no bloat, substratum works which is great and super buttery smooth. But I do have one problem that I would love to get some help on. I am on Sprint and I am actually ok with the 3G speeds, but my problem is I cant get 3G to connect I can only get 1x to work. I have done my homework and changed APN settings until I am blue in the face and I just cant get 3G to connect. I have looked at this thread here > https://xdaforums.com/showthread.php?t=2798619&page=17 but all of the APN settings and suggestions don't seem to work for me, probably because its not based off of Oreo 8.10. I just want 3G working it doesn't have to be 4G LTE.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
Have you tried resetting the apns to default in apn settings? That should pull the apns from your sim. If that doesn't help, you can search for a sprint "apn-conf.xml" and replace the one in your etc/ folder. Maybe a friend can pull their xml from a stock phone for you. Either way, something to try if you're stuck.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DrakeJones:
Yes I have done the reset but I did not know it actually pulls from the SIM that is good to know. I have not tried replacing the .xml file yet I will have to give that a try thank you for your suggestions :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
Enter your password/pin for unlocking your phone as if you normally booted. Then TWRP will decrypt for that session.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
When I get data issues for Sprint, I flash all back to stock. Data reset, then boot to stock long enough for my phone to provision. (Make sure you have LTE for like 2mins) then go through the install process for AOSiP.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DrakeJones:
Yeah my thought process was starting to head that route anyway because despite the good suggestions nothing is working. Thanks for the help and thank you for the awesome ROM :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ddxBrandon:
TWRP asks for your Android lock screen password so that it can have the decryption key necessary to access your SD card. It doesn't wipe anything.

---------- Post added at 06:24 PM ---------- Previous post was at 06:15 PM ----------

@Uzephi was my wall of text filled with stuff I should find obvious, or did you miss it? :(
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I can't give advice for T-Mobile. My experience with the Sprint model is no issue to flash back and forth besides the obvious wear you put on your emmc. (In reference to going back to stock after)

The red letters at the middle of the screen will have the bootloader build date in YYYYMMDD format. Both slots need the same build date.

I have never lost my baseband. I only flash the official flash all (and my personal image pulls). My sprint one is always either my personal phone's partitions images or official from the Motorola Firmware Team. I cannot say the same for others floating around.

Dual slot business is engineered for seemless updates. It isn't used for swapping back and forth on the user end.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] :
Edit: already covered
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Narco8:
No, it doesn't work, TWRP writes: "E: This TWRP does not have synthetic password decrypt support. Unable to decrypt with default password. You may need to perform a Format Data"...

---------- Post added at 05:41 PM ---------- Previous post was at 05:40 PM ----------

Look to the previous message, I forgot to click "Reply"
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
I'm using the official twrp 3.2.1 from twrp.me and it does work to decrypt with your lockscreen password/pin. It sounds like you're using and outdated twrp. I'm only booting twrp but I have tested the installable twrp and that also is capable of decrypting.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
You're on AOSiP or Lineage? It's a known issue AOSP encryption compared to ours is different and won't work fully. TWRP sees it as a synthetic password.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] skywalker-live:
My apologies, I didn't know that encryption was different between asop and stock.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DrakeJones:
My Sprint 3G Fix

Hey Guys, I went back to stock with the suggestion of Uzephi because my Sprint 3G was not working. LTE connected fine on stock of course and I noted the current APN settings with the working LTE and then flashed back to the AOSiP ROM and after the initial setup my 3G was still not connecting. So what I did was modify one of the APN's it was either a Sprint one or a FreePop one with eHRPD, i forget which one, but after entering the APN settings from what I noted in Stock my 3G finally started working. The settings are much different then what I have seen before so it looks like these are fairly new settings but if you are having trouble with getting 3G working these are the settings that worked for me.

Name: internet

APN: x.ispsn

(All the fields between Proxy to Server are "Not set")

MMSC: http://mms.sprintpcs.com

MMS Proxy: oap7.sprintpcs.com

MMS port: 80

MCC: 310

MNC: 120

Authentication type: Not set

APN Type: default,supl,mms,cbs,ia

APN protocol: IPv4/IPv6

APN roaming protocol: IPv4/IPv6

Bearer: eHRPD

MVNO Type: None
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] MootNewt:
Just installed, so far it's gorgeous! I'm waiting for my MMS to choke since that seems to be the MO with my phone. Thanks a ton! :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
Continually get ERROR 255 trying to install (even tried side loading, no dice).

Flashed 3.2.0-0 TWRP to boot via fastboot (was on 3.1), reboot to TWRP, formatted OEM / System / Data (could not at first b/c not mounted), install the .zip and receive the ERROR 255.

ERROR 255 is often reported as a storage issue in Android (brief research) and that is not the case w/my z2.

---------- Post added at 04:24 PM ---------- Previous post was at 04:11 PM ----------

@Uzephi ...let me make sure I totally under your instructions. I LOVE all the effort and massive brain power that you & @joemossjr put into this device but neither of you are the best Installation Guide writers lol (that is in fun and me venting frustration)

How to install

1. Download the latest ROM from here. (DONE)

2. Prepare your phone for AOSP style ROMs. (download one of the firmwares depending on your model) (I modified the T-Mobile firmware flashall.bat file so it actually flashed properly instead of having to copy/paste each command in, as that takes forever)

Flash the firmware with the .bat file. (See links below or on Post #2) (Got 'OKAY''s on each A & B slot flashing)

3. Boot to TWRP (DONE)

4. Flash TWRP to boot image (with the zip from their website.) Reboot to Newly flashed recovery. (WHICH ONE? I can only assume you mean 3.1.0-0 ??? This needs to be specific, I was running 3.2.0-0)

5. Erase oem, data, and system (After mounting, I could actually wipe these three successfully)

6. Flash rom like you would any aosp rom, in twrp. (Received ERROR: 255)

7. Reboot to bootloader

8. run the command "fastboot -w" (this will erase EVERYTHING from your phone, even internal SD, but is needed to have these ROMs work)

9. reboot.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] joemossjr:
You need official twrp
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
What Joe said. Error 255 means you did not "reboot recovery" which is an option when rebooting in twrp. If you flashed the zip, it will reboot to the recovery on your device. The ROM will not flash unless flashed on the phone's recovery. The booted one will error out.

Edit: I don't know for sure, but I would bet it's because the boot image you're booted on isn't the device's true boot image causing a write error.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
That is 100% accurate...I updated to 8.0 based on installer that was provided in this forum early on and then redacted (was no longer available). I also was testing xposed too (which worked beautifully).

Thank you for this detail, I downloaded official twrp and trying again. I have a feeling this is not going to turn out well at this point, Slot A is a mess and Slot B appears to still be running Nougat.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Be sure to flash one of the firmware files from post 2 the .bat for mine at least flashes firmware on both slots. I assume Joe's does the same. You shouldn't have an issue. If you are on Mac/Linux, you should be able to rename the file to .sh and it should work.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] HACK3DANDR0ID:
DAM, i BRICKED 2 device in the Very Early Development stages of this ROM when it was built by a Contributor. I sacrificed (2) Moto Z2 Forces in 4 days (and i cant even get a credit? WTF?!?! j/k I did it for the development), luckily i was under buyers remorse and was able to send them back to T-Mobile and blamed it on the OTAs....

Glad the ROM switched hands and i hope NO ONE, had to go through what i went through.

All i have to say is, if your gonna be a ROM tester, make sure you check the developers experience....FYI
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I didn't build this just as OP states. This is the final result of that ROM you tested for.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] HACK3DANDR0ID:
Tell me this, where did I lose the Modem, not before Flashing the provided Flash All I was told I had to be on. After it booted, no MAC, no IMEI, no wifi no signal not even a NO Service...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I don't know which flash all you did flash. The firmwares in the AOSiP thread a have worked for everyone who tried. You're on T-Mobile, right? Did you take the beta Oreo OTA zip? Or did you naturally update from nougat?

I can't say anything for the T-Mobile flash alls, but mine have always helped me recover from a borked baseband, never lost imei or MAC yet. Did you blank flash?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
I did run the flash all and can confirm that in fact slot_a & slot_b flashing was successful. Once I did wipes in TWRP is where I ran into another issue...see attached screenshot.

I am thinking the answer is to return to stock, get the phone usable again, then go for TWRP and then flash this ROM?

Thank you again for your time & effort [MENTION=4604067]Uzephi[/MENTION] !
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Correct, try again. Twrp isn't decrypting the phone due to you wiping with a lock on the phone
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
Thank you; I did remove my fingerprints and the pin from the original slot this was installed on, weird...

When you state "try again", do you mean flash back to stock as I am guessing I need to?

If so, do you have a stock image source you recommend (US - T-Mobile here)?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://xdaforums.com/z2-force/how-to/how-to-return-to-stock-sprint-t3694783 use the bat from my zip and download the latest official from the motorola firmware team below.

https://androidfilehost.com/?fid=673956719939833411
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
So use the .bat flash all file from your Sprint (image link here on XDA) .zip to flash Moto's TMO image .zip (image link on AFH)?

Thank you again for your assistance...just want to make sure I understand your directions perfectly.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Yes, the .bat file will work for any of the (edit: Official from MFT) Oreo Flash-alls (if their imaging scheme is the same, which would be highly unlikely to be different)

Edit 2: I am getting the files needed to flash and the bat extracted from my flash all and adding them to their own zip here shortly.

Edit 3: welp, the file uploaded isn't right. I have to erase the current one (using 6 Gb of space for a 2 Gb file anyway) and re-upload when I get home in 4 hrs. I'll have an updated .bat by then, the current on isn't right, I'll make a new post with you tagged. I really hate Google drive with huge files (over 800 Mb). I'll upload to my AFH next time.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
I have a general question about stock flash-alls. I haven't had to use one yet, but someday I might and I want to be certain I'm good to go. I have the TMO regulatory oreo zip that was posted a little while back, which is the official 27.1 stock oreo. I used the xml to batch script convertor to create my flash-all, no problems. It creates two flash-alls, one that will wipe the system and one that won't. I assume I need to use the one that wipes everything given the nature of our phone, and my question is: is there anything I need to append to my flash-all or is everything copacetic?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I'll PM you a copy/paste of my .bat file. It flashes and redoes the partition layout first then flashes all partitions and wipes everything (even internal SD). Like a brand new phone, almost.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Use the official flash all and use the below zip, extract in same folder as the flash all files and run the .bat.

https://drive.google.com/open?id=1JhyZ2BfQG3Z4c-7SdNVEKFSBQRGSR5nY no need to download the sprint one anymore.

Edit: also my return to stock thread is now nearly universal (Sorry brz, no link to your firmware on MFT's AFH, only USC, Spr, T-Mo, ATT, and Vz)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
No worries, first chance to attack this issue this am for me since posting. I will follow the directions / links you just provided in the ahead post(s).

---------- Post added at 10:17 AM ---------- Previous post was at 09:50 AM ----------

Was able to boot to Oreo, but no wifi (developer options published after reboot, weird!). I am going to try to reflash the firmware files in fastboot to at least get wifi going again. Odd here...

Update 15 min later...

All good, firmware flash brought WiFi & SIM back, ty again [MENTION=4604067]Uzephi[/MENTION]
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
If your slots are messed up, it is best to do the .bat file twice tbh. I don't know windows command prompt enough to do a reboot-bootloader and have cmd wait for device to boot in a .bat. On .sh I can, that's easy, lol.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
Not the prettiest, but it works. Save as a .bat to test, and add it where you want to reboot if it suits your needs. If not, no worries. Just killing time. This only works in fastboot btw, but can work in regular adb with a quick adjustment. Could also just add this as it's own .bat in the work folder and call it into play without taking up a lot of space in a script.

@echo off
REM --- we can add this in a flashall to reboot to the bootloader and verify a connection before proceeding
:wayback
echo.Rebooting to Bootloader and Verifying Connection!
fastboot reboot bootloader
TIMEOUT /T 30
REM wait for 30sec or until keypress --- adjust as needed
:start
FOR /F "USEBACKQ" %%F IN (`fastboot devices`) DO (
SET var=%%F
)
REM Checks adb, looks for adb device serial and sets it as a variable
echo %var%|findstr "^[A-Za-z0-9]*$" >nul
REM Checks variable to ensure it is an alphanumeric and not blank
if %errorlevel% == 0 (SET pmt="%var%" is Ready!)	ELSE (GOTO choose)
REM 0 means device serial found in adb and device is ready, if not 0 then serial not found in adb and we should check connection

echo -------------------------------------------------------------------------
echo %pmt%
echo -------------------------------------------------------------------------
pause
GOTO end
REM if all checks are good we skip to the end
:choose
REM otherwise we ask to try again and go back to the start
echo Check Connection!
set choice=
set /p choice="Do you want to try again? Press 'y' and enter for Yes: "
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='y' goto start
:end
REM the script is done
cls
REM clear screen optional
echo.Put the next sequence of commands down below and use or lose the timer below if needed.
TIMEOUT /T 30
REM --- resume flashall or whatever we need to do down here
REM if we need to reboot to the bootloader again we can just GOTO wayback and rerun this script without taking up space.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Update for Sprint: LTE works with this temporary workaround. Create a new APN and enter the following.

Name: internet

APN: x.ispsn

(All the fields between Proxy to Server are "Not set")

MMSC: http://mms.sprintpcs.com

MMS Proxy: oap7.sprintpcs.com

MMS port: 80

MCC: 310

MNC: 120

Authentication type: Not set

APN Type: default,supl,mms,cbs,ia

APN protocol: IPv4/IPv6

APN roaming protocol: IPv4/IPv6

Bearer: eHRPD

MVNO Type: None

After you do that and select that APN, toggle airplane mode until LTE goes on. Took my phone 5 tries and another person it took 10 so YMMV.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DrakeJones:
It works for me

Hey what do you know it works. I guess i did not try enough to get LTE working with the new settings. For me it works when I change the Bearer to "LTE" then it started working for me. Thanks for the great find its great to have LTE working again. Cant wait for your next update :good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] lil-g-gamegenuis:
For some reason I can't set the bearer. When I try to check the box, It checks but after exiting the selector, nothing changes.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Bearer can stay unspecified. Tested with that and it works
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
I want to try this ROM so bad, but I enjoy calling plus too much. It's hard losing the superior call quality and data while in a call. Would it ever be possible to implement those features in the ROM in the future?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
???

I've searched the thread and I'm having a hard time finding where it was stated this ROM will not allow data and voice call simultaneously?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
Sorry, I meant to say on Sprint.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] byt3b0mb:
Dude the wallpaper on the newest update is wicked.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] aztdaniel:
Up an running on my tmobile z2. Loving it so far.

I am, however, having an issue with Android Auto. Whenever I plug in the device, android auto connects and then immediately disconnects. Sometimes I get an error message "Communication error 16". Has anyone else experienced this?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
I don't use AA, but a quick search on 'communication error 16' shows that it is a known bug on various devices and there are few things you can try. One states that it might be a dual app problem that causes the error because some apps use google play services and it's the dual google play services. Make sure your apps are up to date and/or kill those apps that might be using google play services when you connect.

Another thing to try is usb related. Particularly usb debugging causing the problem. Here is a snippet of the fix.

1) Uninstall and reinstall Android Auto. Don't run it.
2) Make sure the USB connection mode is MTP in Developer options
3) Make sure USB Debugging is turned off.

If none of that helps, just google 'android communication error 16' and you should find a solution.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
I finally had a chance to flash this ROM after getting z2 sorted and its excellent, however...

Did anyone else loose wifi after rooting with Magisk?

I read that others had issues with SuperSU so I used Magisk in this case. Is this a simple case of reflash firmware (fastboot)? [MENTION=4604067]Uzephi[/MENTION] any thoughts?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] caiguo37:
I just installed AOSiP-8.1-Official-nash-20180410.zip on my Sprint Z2 Force.

The Rom is great except one little problem.

It doesn't recognize HTC's USB-C Digital to 3.5mm Audio Jack Adapter.

This adapter works fine in stock rom.

Is there any thing I can do?

Any help would be appreciated.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
.....

Update 2 hrs later:

I tried with the 27.1 firmware update in fastboot that is available in these forums and was unsuccessful bringing Wi-Fi back.

I since have started from scratch with this ROM and have everything working again without Root. Again has anyone experienced losing Wi-Fi or other functionality by using magisk (or SuperSU)?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
What version of magisk are you using?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
v16.3
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Flash pantheon and reroot. You will lose motomod functions but it will help isolate if the kernel's wifi module on AOSiP is wonky with root.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
I've not had that experience with this rom or root, but I did have wifi trouble on stock. It was one of the 1st problems I had even before I rooted. FWIW I used magisk_v16.0 when I rooted aosip.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] lil-g-gamegenuis:
I've also had this problem and using pantheon didn't fix the issue.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] aztdaniel:
Thanks for the reply. I did try and Google search before posting and found most of what you suggested. The Moto z2 doesn't appear to have dual apps. All the other suggestions I've found haven't worked either.

Regardless I like this ROM enough that giving up Android Auto isn't a big deal.