yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] itsttime206:
flash with disabled dm-verity/no force encrypt

Hello everyone,

For anyone curious, I was able to disable forced encryption on my z2 force running lineage and stock ROM with custom kernel (I don't believe you can do this with pure stock kernel). Here's how it's done:

1: Clean flash lineage (or whatever ROM you want)

A (its OK to let it boot/encrypt if that's what happens)

2: reboot into TWRP

3: wipe data (type yes to confirm)

4: Mount data and all partitions

5: flash "Disable_Dm-Verity_ForceEncrypt_v1.3.zip"

6: now flash "Magisk-v16.7.zip" (ensure that it doesn't say "preserving encryption" during dialogue)

7: reboot

Your device WILL reboot many times and appear to be in bootloop. That's alright. Give it at least 15 minutes, it should eventually boot fine and never bootloop again.

Enjoy! You can confirm in setting that encryption status is "disabled" (in lineage) or you have the ability to "encrypt device" on stock based ROM.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] asislife20:
After restoring to stock, make sure to fastboot -w. I've had this happen and this fixed the loop for me. As far as lineage os I've been able to get it to install, but only with a specific twrp. Google Nash treble twrp and find the 3.2.1.1 IMG and fastboot boot it, then install.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Has any of the known issues been fixed yet.. Were do you find the disable dm verfiy zip..
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] always6s:
Finally got it running but I ha e no LTE for sprint. Several months ago I used los and it did have 4g. Is there something I need to do? Or is it just busted.

Bump
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
Necessary Base Firmware: 8.0.0 (OCSX27.1.2, May 2018) (for TMO, or equivalent security patches for other variants)

What is this mean?

I have OCX27.138 retcn, I follow the steps, but my device now have the 9008 port.

I don't know why, Is there any one can help me?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Iv'e got a feeling this is a dead project. Nothing new in a while.. Thats how dead projects start.. LOL
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Marcowerjr:
It isn't dead, they're working on LineageOS 16 to get it functional for our device.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Sure... Dead... The lineage maintainers who are on our device barely use XDA, best to try the lineage forums or the discord if you want up to date information...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
LTE works for me. Flash all, boot once so the device provisions to Sprint (that's what I do when I lose LTE). Then follow the install instructions again
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Funny I went to their main site, clicked on downloads, picked out device and still only 15.1 last was 9/11 were are you getting v16
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
16.0 is in testing. Still a few bugs to fix before it goes live. Test builds are on erfanoabdi's AFH. They are test builds and things break. Don't report unless you provide a log and instructions on how to replicate.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] gyarados025:
Is this build stable for a daily driver ..? What about Compass and proximity sensor..?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
It is the furthest thing from dead. You get weekly updates with security patches, features, and fixes, what more could you want?

P.S. 16.0 is in testing, and IMO, getting to the point of being better than 15.1. Patience is a virtue.

I update the OP frequently. Whatever is listed there is broken.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Were can I find 16.0 to test...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] JAWheat411:
So 16.0 is Pie? And if we want to use a GSI, is it better to go from 15 to the GSI or does it even matter?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] neelchauhan:
I am running LineageOS 15.1 on the Moto Z2 Force (got this after returning a Pixel 2 XL). My Z2 is on Sprint and I have no LTE data on Lineage, only 3G. In the default configuration, 3G is used most of the time, but I believe it tries LTE (and there it appears to have no data then), and then falls back to 3G. I set the preferred network to CDMA/EvDo to get reliable data for now.

Does 16.0 have this issue with no LTE on Sprint?

I have also reported this issue to Lineage here.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] toogamer:
Hey, could you say exactly what you did to save LTE? I am here on Sprint too and I can't get LTE, only 3g.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kzdom:
I tried 15.1 a few times and had lte on Sprint. I returned the phone to stock, then factory data reset, booted into twrp then flashed 15.1. If I factory reset 15.1 I would lose lte.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I flashed the latest flash all from AFH (link in the return to stock thread). Wiped phone completely with a fastboot -w and erase of modems per the .bat file. Booted stock enough to provision. (I.E. got service on stock, didn't even do setup) then went with the normal install process of Lineage.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Comet1966:
Are the Known Problems up to date for 16.0? Does wifi calling work for Sprint? Wifi calling is a must for me, I have no reception at work.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] z2forceuser:
Did you finally manage to install LOS on your device?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] toogamer:
So to clarify, you guys just got LTE working on stock, then you wiped and installed Lineage? or did you just get LTE working on stock, then get it working on Lineage with no wipes? Sorry, I am just frustrated because nothing I do seems to get it to work, thanks in advance.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kzdom:
After the flash all, I booted and configured to get LTE, then wiped and flashed 15.1.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
After getting LTE, I just went through the install process of LOS, boot TWRP, format data (the one you have to type yes for), flash LOS, flash twrp, reboot recovery (this is done so the phone will reboot to the partition LOS was just flashed to), flash gapps, flash Tachyon, reboot.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
Mod Edit: unauthorized external link removed

Hey, please remove this. When we're ready for 16.0 on XDA, you'll see a post, but for now its in Discord.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] toogamer:
I think I actually found a bug whilst trying to fix my issues with LTE. I found that you can't change the bearer setting in an APN profile. There should be a save button somewhere in the bottom of the menu, but there is none. According to some other threads, some Pixel users have the same issue and lineage 15.1 seems to have taken a few things from the pixel firmware. Either way I can't change the bearer setting in the APN profiles. I guess I will have to find something using root.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
Is there someone success in XT1789-05 retcn for china?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DHGE:
FWIW my experiences installing in early October 2018

[MENTION=5848265]npjohnson[/MENTION]

I applied the latest security updates from Motorola as recommended. I think I even got into Augusts patches or so.

After I unlocked the bootloader fastboot did not work as expected anymore (it did before unlocking).

adb reboot bootloader works fine. THEN fastboot devices (or any other command) does not do anything!

When I unplug/replug the USB cable (still in fastboot mode) it works...

I had no luck working with MindTheGapps 20180808_153856 (rebooted before flashing them). The colors got weird and I saw the message "Google Play services stopped". Starting with e.g. Google Play Store got stuck stuck with "Updating data" ...

Then I wiped /data in TWRP again, reinstalled LineageOS 20180925, rebooted and flashed open_gapps-arm64-8.1-pico-20181008

Same problem as above ...

Then I did a factory reset - voila I got sucked into the Google system like on a normal vendor ROM! Play Store works :good:

Then I flashed Magisk 17.1 - See the attached screenshot regarding SafetyNet.

TLDR:

- fastboot works again after you replug your USB cable

- do a factory reset after flashing Gapps

- OpenGapps and Magisk work just fine
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
MindTheGApps work fine, the issue is a matter of the fact that you didn't *format* data, you _wiped_ it. A "Factory Reset" formats data.

And the fastboot issue you have isn't something everyone experiences., and isn't specific to nash, its likely a driver/bus issue.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
No, but let us know after you try!
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
I try a few days ago, I failed.

And I don't know how can I success.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
The error or issue you faced would help...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
My firmware version: RETCN_OCX27.138-29

Then I follow the steps in 'How to Install', my phone will into the 9008 mode.

I use blankflash recovery it and flash all for reboot the phone.

This is my twrp logs in the Attach Files.

Do you know why failed?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] shawnsingh:
Hey guys, I finally decided to log back into XDA forums after 3 years. But I have one concern about this ROM. My Voice and text works but how do I enable LTE. I have roaming on and my data works but I lose it quite often.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] toogamer:
I would say I have this problem too but I have tried fixing it using different apn settings except a bug gets in the way. I would try to see if your apn settings match the previous ones on stock.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
What variants and carrier are you using? Just saying LTE and data doesn't work won't help us know if it is a known issue. I ran into an issue where a flash all made me lose imei and LOS didn't handle it correctly. Please check imei and meid compared to stock and let us know if they are the same. Also check in bootloader to see if baseband shows up correctly. Mine showed unknown until my flash all fixed imei/meid. Then a flash of LOS worked for data and LTE on Sprint.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
[MENTION=5848265]npjohnson[/MENTION]

when I use

fastboot set_active other

it will show:

Setting current slot to 'b'...
(bootloader) WARNING: Bootloader images on target slot b are not valid!!
(bootloader) There is risk of bricking HW. Please flash valid bootloader
(bootloader) into slot b before activating it. OR you could force to
(bootloader) switch to slot b by running the same command again
(bootloader) within 30 s if you understand what you're doing
FAILED (remote failure)

I think it is why my phone into 9008 mode.

So I force switch to slot b, then flash the bootloader.

I flash the Lineage Os 15.1 successfully.

But in my phone com.android.phone has stopped.

Because I have 2 sim card. when I remove the sim 2, the com.android.phone don't exist .

I can phone call, receive the sms message, but I can't see any signal.

Is the Lineage adapt for the Chinese environment？
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
You need to make sure both slots have the same firmware on them. Get a flash all, for your device, flash it, set_active other, then flash again.

We only support single SIM configurations right now, but if you only use SIM1 it should work fine. Make sure your APN's are right.

And I have no clue what you mean by "Is Lineage adapt for the Chinese environment?", you'll need to reword that.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LazyCountry:
In China, you can use the 2 SIM cards at the same time, If I only use SIM1, the signal not full, I use Stock rom, It's full signal.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
I'm aware your model is dual-SIM, but Lineage OS for nash only currently supports single SIM configurations. None of the developers have the dual-SIM model to fix it.

You'll need to either not use SIM2, or use stock until/if anyone ever contributes a fix for dual-SIM devices.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
If you're using the Sprint variant, the below firmware package will work with LOS install. use the bat, then shift right click in the folder and open command prompt here and run the command "fastboot --set-active=other" and then "fastboot reboot-bootloader" and run bat file again so you have the most recent Sprint firmware on both slots.

https://drive.google.com/file/d/1lhKlii7qd1rJ8XTb-Z4aP-F6zSbdq5BP

Don't flash unless you have a Sprint model phone
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
Has anyone had problems with phone calls crashing at random times, then the signal bar goes away but is still seen in the quick menu?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
What carrier? Never ran into that here on Sprint
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
T-MOBILE mobile, the issue only comes up when trying to call, I can use data all day long with no problems. So allot of times I'll call using my Hangouts number. But when I receive a call it goes to my mobile number and will crash at some point in the call. I've force stopped both the dialer and Sim tool kit and wiped data and it will still crash. I'm not sure what triggers it.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
How long into the call? Can you disable volte and wifi calling?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
It's not a set time frame, just random crashing. I can try those options. I'll keep in touch after some trial.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
[/COLOR]

So I tried turning off volte and actually got through a decently length call. WiFi calling is still left on.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] carlos22b:
Is there anything we can do to help getting dual-sim to work? Providing logs or similar?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
Find your developer a dual SIM Nash to play with.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
^^ I helped pay for Invisiblek's Z2 and paid in full excluding shipping another developer's Sprint Z2 to get more support for my variant.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
any update on Lineage 15.1 regarding wifi calling? Did the 8.1 blobs added to github solve the problems? A review of the various lineage 15.1 ROMS would be helpful with links
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Biotron 7:
I have been WiFi calling since day one. Are you referring to carrier supported WiFi calling or using Google voice type calling? I'm with T-Mobile.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
No, thanks for letting me know. I was very explicit in discord about that link not going on XDA.

Do not post links to non-official builds in this thread. I send people who want to test stuff to discord for a reason.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LenAsh:
Posts with non-released links have been deleted. Please avoid linking to builds that are not in a release state. At best it is rude to the OP....
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
After trading my OPO for a tmobile OP 6T, I decided to install Official Lineage 15.1 on my tmobile Z2 Force. I adb reboot-bootloader, then fastboot boot twrp-3.2.3-2-nash.img, then wipe Format Data "yes". I then entered TWRP sideload and adb sideload lineage-15.1-20181030-nightly-nash-signed.zip. after that finished I rebooted to Lineage Recovery, but I couldn't figure our how to flash MindTheGapps-8.1.0-arm64-20180223-195845.zip. I rebooted and set up fastboot mode and booted into twrp recovery again. I pushed MindTheGapps to the /sdcard and installed it with TWRP and rebooted However my Z2 wouldn't boot, said that it couldn't install Android. I set up fastboot again and did a factory reset so I can now boot back to stock OCXS27.1..3 May security update. What do I need to do differently to get Lineage working on my phone.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] riskyfuture:
dont know if this will help see it posted a while back

https://xdaforums.com/z2-force/how-to/tutorial-enable-single-sim-to-dual-sim-t3797707
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
You need to flash MTG from Lineage recovery. Just choose Apply Update, then Apply Update from ADB. Then sideload the package.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
repeated the steps as described using Lineage Recovery, Apply Update, Apply Update from ADB, ADB sideload, then on the computer adb sideload MindTheGapps-8.1.0-arm64-20180223_195845.zip. I got an error "/B OTA device detected This is unsupported. Aborting" I rebooted from Lineage Recovery and got Lineage to load. I got the same error with Open_Gapps, pico version for 8.1 64 bit and when I uploaded MTG to the /sdcard/ and tried to install it from TWRP. I am stuck with basic Lineage 15.1 no gapps. I updated Lineageos to 11/06 and now am on slot_a, previously on slot_b.

However, sideloading MTG gave me the same error. finally went with lineage-15.1 with microG and F-Droid. No problems installing with TWRP
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DoN GioVaNNi:
Weird problem!!!

I have the MOTO z2 Force (Sprint) and I have a very strange of problem. The problem is when I set my network to GSM/UTMS the mobile data only connects to Edge network (Painfully slow), but if I connect it to CDMA/LTE the mobile data connects to LTE network but then I am unable to place or recieve a cellular call or sms. (It says "no sim or sim error) If I set the network to Automatic it connects to LTE but call and sms incoming is still not availabe. But when I place a call (in auto mode) it takes a very long time because it reverts back to edge network and then I can make a call.

Furthermore I have flashed the phone for the exact same reason (no success) and I have also checked the frequency bands support. (of-course they are supported because all the services are working but not at the same time)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] p-x:
Finish in QDL mode

I try to install LineageOS 15.1 on my XT1789-06. I have already experimented with many combinations (using different builds, switching slots, wiping everything, not wiping...) and unfortunately every time my device switch to QDL just after LineageOS installation and reboot. I exit from QDL by typing

sudo ./qboot blank-flash

and then try again with different order/methods and finish in QDL mode again. I do not have more ideas.

ADDED: My problem probably is not related with LineageOS. I have tried to install Dirty Unicorns with the same result → QDL mode after reboot.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
Man your doing something worng for sure.. is this the Sprint Model? If so follow these instructions.

These are the steps to follow to get lienage 15.1 to work flawless. I went through this so follow closely.

1) Start out with full stock again.

2)Power off phone, and enter fastboot

3)Fastboot boot twrp-3.2.3-2-nash.img

4)Go to wipe and Choose format data

5)Go back to main screen, choose wipe, choose advance wipe, and wipe system only nothing else

6)Go back to main screen, choose install. Install Lineage 15.1 Once finished do NOT reboot.

7)Go back to main, Install, and flash twrp-3.2.3-2.zip

8)Go back to main screen, choose reboot, reboot back into recovery.

9) Next this is important. Flash MIndTheGapps first then flash the SprintFix.zip (If you do not do it this way, you will only get 3G not LTE)

10)Go to reboot, reboot back into recovery, then boot system..

If you follow this it will work no problem.. If you don't flash the twrp-3.2.2-2-nash.zip First. then reboot back to Recovery. Then MindTheGapps, and SprintFix won't work. What ever you do, do not skip the flashing the twrp3.2.3-2-nash.zip, or you will enter Lineage recovery, and it dose not work worth a dam.

After all that, enable Developer Option in setting, turn on USB debugging, Then reboot back to recovery and flash the addonsu-15.1-arm64-signed.zip. When back to system go back to developers option, scroll down Root Access and choose your option.. I choose Apps and ADB.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
Lineage recovery works absolutely fine man. My bet is you're using the wrong MindTheGapps package, and you don't need to use the SprintFix.zip, you can just add the APN after booting, but do whatever man.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] kendallgreen:
I have the Tmobile version. I followed your steps except #5 and #7, since I planed to use Lineage recovery, which you said worked fine then. I used the latest MTG package. Right now I am happy with Lineage 15.1 with microG and F-Droid. If I choose to go to the official version, I will probably start from my current version instead of going back to Stock with the hated Hello Moto animation.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] p-x:
I already tried this method in the last weekend and today I tried again with the same final result. The phone went into QDL mode instead Recovery mode.

My version is not Sprint, it is European retail.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
1) it may work for some but doesn't mean it's going to work for everybody. 2) The SprintFix came from the Lineage discord page. When people have issues, I try to give them tips on how it worked for me. But with your attitude hell I can just keep my solutions all to myself.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Have you ever taken an OTA? I.E. is your B slot active yet?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] p-x:
I have never upgraded Android in the "official" way. Just before first try I have upgraded Android to 8.0.0 by running commands from flashfile.xml manually.

Slot B seems be inactive.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
That's your issue. You need to at least take one OTA to have the flash to aosp work. This is said in OP. "You need Oreo firmware on both slots."
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] npjohnson:
1. As for flashing the same zip, it will work for everyone. We did hours of testing on lineage recovery to ensure compatibility with specific add-ons.

Look at it from my POV: *spends hours of life working to ensure A/B lineage recovery is well made and works to flash x, y, and z reliably, and gives explicit interactions to follow* user: "doesn't work worth a damn".

2. Yeah you can use the SprintFix zip for concienience, merely stating you don't need it as you can change the APN if you need to.

Give whatever install suggestions you want, but just as if someone were to recommend an add-on I don't support in the ROM, I'm going to say so and note it publicly.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] doubledragon5:
I understand you spend hrs of testing to make sure it works . But again it does not mean it will work for everyone. If that is the case, it would have for me, and I would not had to spend time figuring it out. Then I would not have wasted my time trying to help others. But rest assured I won't make that mistake again.