yashsingh1/xdaforums huggingface dataset:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] jbrookex_x:
I will give that a try thank you!

Sadly, I have only seen more issues since this post. I tried to reboot again and it now only takes me to the bootloader. I get an error at start up that essentially says "no bootable a/b slot". (I'd post the url link but cannot due to not having enough posts..)

When I try using fastboot to flash the zip, I just get "unknown/invalid partition".

Edit: I am back to booting to recovery. I had to flash the stock rom and it instantly booted to twrp which confuses me a bit, but I can start back from here I am assuming as long as the unencryption zip is flashed along with the kernel...?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Flash the unencryption zip, reboot to bootloader and flash the image you want. All images have been tested on my device and boots up and all features work that I can test (have no NFC devices to accurately test NFC for now and I only have the projector mod for mod testing).

Edit: after flashing the zip, be sure to format data, not wipe but fully format to remove encryption. The zip just makes sure encryption doesn't happen, it won't remove current encryption.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Big project incoming. Due to Oreo release, I am starting from scratch with the 4.4.78 kernel source provided by Motorola. I will work on getting my features to work on current 7.1.1 kernel then upstream. Once I get the features stable, I will release a normal kernel with 4.4.78 then take on the task of getting the kernel in line with linux-stable. FYI, new job and don't have as much free time, so it might take a little bit to get done. I will close this thread and reopen once 4.4.78 is complete.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://drive.google.com/file/d/1Xj1VLKHQwPspMNLTUMyv4ioivdyusYjP/view?usp=drivesdk

Pantheon alpha for Oreo is now live. Ran it this whole week without issue. Will start updating to linux-stable over the weekend. Will edit OP after work.

Edit: it is an aroma installer. Will lose root. Use TWRP
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
OP updated. Change log post updated.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
wait confused here... If I flash this zip in TWRP, then I should retain root correct? And regarding the Sig Check it'll fail because I have root. And if I use Su Hide it'll be fine; however I have Xposed which is not compatible with SU Hide, so then technically speaking, this kernel will not be compatible on my phone correct?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Kernel will work fine. You will lose root as all root methods now edit the boot image. You just reroot after. Sig check is lost since you are using Xposed. That is only needed for Android pay, Pokemon go, Netflix, etc that require CTS to pass which Xposed fails. The kernel will work on any Z2. I just gave those warnings so people know what they're getting into. This kernel actually will pass safety net by removing some stuff that prints in proc/cmdline which is what Google checks for CTS, like boot loader lock status, verity, selinux and other stuff to ensure device isn't tampered.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
Okay that's good to know, maybe you might know this then. If I flash this Kernel it will lose root clearly, would it make sense to switch to Magisk versus SuperSU? As it states in the thread for Magisk that "If you plan to flash a custom kernel, flash it AFTER installing Magisk", but that makes no sense. As once the kernel is flashed I lose root anyways. Reason for me asking this is, then if i'm running Magisk, I can then run Systemless Xposed allowing me to use apps like you mentioned.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] artlan:
Running systemless Xposed will not let you run those apps.

You would be better off for now switching to Magisk (and if you want to run apps like Pokemon Go/Android Pay, you will have to just not use Xposed, systemless or otherwise)

Flash this kernel from TWRP first then flash the Magisk Installer to add root back to system

You an then install the Magisk Manager and see if there are modules to replace the ones you used in Xposed if you want.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
The way modern root works, it needs to edit boot and ramdisk. Just flash root after flashing the kernel to have this kernel and root. This will always be a secure kernel. You need an insecure kernel to flash and keep root.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
okay well i'm actually running into a problem now. I installed your kernel and afterwards tried to flash Magisk but it does not work. Magisk fails to flash. One of the error lines says boot image patched by other programs. So I proceeded to restore my nand. Went into SU settings and chose cleanup for another SU app, and then went back into recovery and tried again to flash Magisk and keep getting same error. I even tried to reinstall regular SuperSu and then it wouldn't even boot stayed on the bootlogo. So now i'm stuck back at Stock Rom with root with SuperSU/Xposed which is fine because the device works, just a bummer because I cant run this kernel.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Soon I will be abandoning stock to AOSP to get Pantheon working on AOSP. Motorola did a number on how their stock rom handles the Kernel's WiFi module. Instead of missing important net updates in linux-stable, I am going to leave Pantheon stock at 4.4.78 and only update AOSP based kernel to latest.

Edit: I will still add features to stock Pantheon, but it won't be up to linux-stable due to it's difference in WiFi modules.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
But there is no AOSP ROMs for our device yet??? Or are you planning to build one yourself? There isn't even a regular Rom for Oreo besides stock
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] DsturbD:
There are Lineage builds being done just not released yet. They'll come. I'm working on one myself. Also trying to see how easy it would be to build aosp too
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] tr4sh80:
Lineage is a no go for me until all mods are working flawlessly. The mods were the biggest selling point for me on this phone.

---------- Post added at 09:30 AM ---------- Previous post was at 09:25 AM ----------

Direct install Magisk from the Magisk Manager. Worked fine for me.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] mattlowry:
installed fine. testing now.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
Nope same message when I did that.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] mattlowry:
either reflash your rom or reflash your stock kernel.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I flashed Pantheon then magisk just fine after a flash all...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
I have re flashed my rom keeps saying patched by other programs. But I haven't tried flashing the stock kennel, however there is no thread for stock restore files. The only option I haven't done is going into supersu and full unroot. But then it prompts me saying if you manually decrypted the device it will not boot. Which I already did decrypted the device through TWRP. And now every time when I go into TWRP, I have to put the lock pattern in, so I can see any file otherwise it'll be a string of letters and numbers hence encrypted.

So kinda stuck here. It's to the point where I'm just going to stay stock and upgrade my device in August. This is one phone that has had hardly any development, unfortunately. If I knew how to code and script I'd love to help.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
I also tried to install kernel and reboot then try flash but it doesn't work. Immediate boot loop.

Unless there is a file for a clean boot.img that's flashable in TWRP. On my device it will never work, constantly says patched by other programs and fails Everytime.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Flash the stock boot image for your respective device. (Functionally they are the same, just different signatures that will get changed with flashing kernel or root anyway). Then try again. Something is wrong with your ramdisk. Possibly from SU. I haven't used SU since magisk started working on our device.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
By any chance do you have a link to the zip; flashable in TWRP?. I've looked everywhere and no one has it. Only ones I could find are August.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Boot images are flashed in bootloader not recovery.

https://drive.google.com/file/d/13pKSMS5zGuYsr1EEDma0L6AxHDSUmu2g/view?usp=drivesdk

Pull the boot image from there, go to bootloader and flash to boot.

fastboot flash boot boot.img
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] LostDarkSoul:
thank you so much! The ramdisk is what the problem was. flashed the clean boot.img > TWRP > Kernel > Magisk.

Sorry for all my questions but thanks on helping me through all of this. this is the only device i ever had so much trouble with....:good::good:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] hackenggr:
sprint got the oreo OTA officially ? I not get do I have to unroot and get to previous version flashall and get the updates in sequence to get the oreo and use this kernel or flash all the oero just
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
You need to flash all to a nougat stock version and take all updates.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
Flashed the latest Pantheon kernel on Sprint Z2 with Oreo. Running flawlessly so far but will report back with any problems. BTW, did Sprint get an official Oero OTA? I'm still on the RETAIL version.

Edit: okay so I've had my first random reboot. Hopefully I can find some time soon to see if I can capture any logs.

What's done to the kernel besides the option to oc/uc? I stayed at stock values BTW.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Odd it rebooted. I ran the kernel through the ringer before switching to AOSP to get that kernel made.

OC/UC

New IO schedulers: Zen, FIOPS, SIO

Boeffla's wakelock blocker (blocks a lot more redundant wakelocks and some that don't break userspace)

Adrenoboost tweaks from Flar2's ElementalX kernel (same toggle in his EX manager and similar kernel apps to enable)

Safetynet bypass (no root needed for Google's CTS and basic integrity to pass on an unlocked device, Xposed still fails)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
I ended up going back to stock. The kernel caused my device to reboot and freeze too much to be considered a daily driver. I hope I can find time soon to capture some logs.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] darkghost柚:
Same as me ... Just wanna know how can I back to stock kernel without losing my data
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
This is why you make backups in TWRP. You can however get the stock boot.img from one of the flashall zips and just extract and flash it in TWRP. Lmk if you need help.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] darkghost柚:
;) Got it...Just flash boot.img....And it works....Thank u sooooo much..... Anyway...z2f is good enough without flash kernel:silly:
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ilovemeow:
anyone experiencing slow performance and

slow camera startup with stock kernel?

8.0
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
Do any of your guys screens ever just stop responding? Like it'll turn on but it won't respond to touch?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I've never experienced that
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] donjuro:
This happens on stock kernel. I was at the Sprint store today playing with the Moto mods and noticed when I use one it causes it to happen very quickly. It got me to thinking and it makes me feel like the software, something to do with Moto mods is bugged. It happens without Moto mods too just not as often, when I took one off it would happen within minutes.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] xxcloudconnectedxx:
Have not experienced any of these issues with the kernel. No issues at all, z2 force is a unstoppable device. 205k plus antutu scores all day with Pantheon.

Cheers for making a formidable device become even more : ?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://drive.google.com/file/d/1nypgskfAoSOpOa_E-pfyaRO_mp_JWFxw/view?usp=drivesdk

For anyone flashing AOSP here is the AOSP kernel. Going to rebase it to 4.4.126 in the next couple of days. Mods are hit and miss with this kernel and that's why I'm rebasing it. Will update OP later. This kernel is at version 4.4.105 and has same features as stock but is only for AOSP.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Screenshot
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Rebased kernel. Google drive file updated. Since AOSiP is on official status, this thread is migrating to AOSP based kernel and I'll make a new thread for the 4.4.78 stock ROM kernel I made.

Edit: Kernel is now based off [MENTION=6842057]nathanchance[/MENTION] 's Nash tree which he keeps in line with linux-stable.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] cervantesjc:
I know this is not related to the kernel, I see you're using AOSP, any updates on AOSP for the device?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
AOSiP is official on their site Today or tomorrow I'll create a how to install thread as there are some idiosyncrasies for install to go smoothly. Just did it from flash all and only bugs I have noticed is audio recording doesn't work (phone works fine, some soft phones, camcorder, etc broken audio) LTE doesn't work for sprint, WiFi calling...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://xdaforums.com/z2-force/development/rom-aosip-t-mobile-sprint-t3773307
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Known issue with current AOSP kernel. GPU UC won't wake the phone correctly. Will fix by next release. Will need to move min freq from 180 back to 257, so no GPU UC.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ilovemeow:
wondering stock 8.0 wont update anymore?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
It will. Work has been hectic so if I don't have to flash all and flash back to AOSP, I won't. When I have a weekend where I can do that, I'll work on updating stock. I only have one phone and I don't want to fastboot -w too many times. That's how you prematurely burn out an EMMC
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] ilovemeow:
thanks for you hardwork for this device :)
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] :
Hey Uzephi,

Searched the thread but I didn't find the answer so I hope I didn't miss something obvious. Is this kernel compatible with the lineage os build floating around?

Viper has weird distortion at high volumes that is fixed with your kernel (??? Don't know why exactly).

Thank you sir.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I wouldn't know if it would fix the issue with viper, but this will work with any aosp based rom, so yes, it will work on los.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] niyaolowe:
stock kernal

Here is to hoping someone here can help me.

today i decided to get all updated and reroot with magisk, which went swimmingly i might add, i was stoaked to have android pay again!!! but then i decided to flash this rom..... and I was a moron and forgot to run a a backup first......

well I thought it all went off without a hitch, but quickly realized I could no longe switch on wifi.....the switch will flip like its turning on bt nothing happens and when i exit that page and come back its set to off....

but wait theres more....

I then tried to the nougat flash all, seemed to work but now no wifi or cell connectivity... at wich point I attempted to flash a back up from a couple weeks ago and well, no joys still no connections amd added crashing.

im hoping theres a way out for me, if itg help i just noticed unde base band it not shows unknown..

any and all help is wonderfull, hees t5o hoping i didnt perm bork my phone...
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
This isn't a ROM. This is a kernel for aosp. There is a thread in the guides section on how to do a flash all for Oreo. Try there. People, please stay on topic for this thread. You flashed something wrong and didn't even read OP. Go to the flash all thread for help please. Only post here bugs and help installing this kernel (which requires an aosp ROM like DU or AOSiP).
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
[MENTION=4604067]Uzephi[/MENTION] I've been wanting to try out this kernel for awhile and I was wondering if I'd have any issues just booting it and giving it a test run. I have backups so I'm not too worried I'm going to get into trouble, but I was really just wanting to know if there is anything I should be ready for. I know this is a little vague, but are there any pitfalls that I should safeguard against or be ready to address once I reboot back to normal.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Swapping from stock aosp kernel to this one and back won't cause any issues. Be sure to did if/of pull your boot image with your old kernel to flash if you went to go back. There isn't a temp boot for this kernel. It will flash directly to your boot image.

I have flashed this kernel, taken a Lineage OTA to their kernel, test to make sure it boots and works before flashing my kernel back onto it.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] niyaolowe:
Did you read my whole thing. I know it's a kernel. And my question was because of bugs after installing. And trying to figure out how to get it back to stock. I installed the kernel at updating and got my before mentioned bugs. I never said anything about a custom ROM or the like. Just what I had already tried in order get get my phone working again.

So do you have any advice past being in the wrong thread? Or is it only misplaced aggression?

---------- Post added at 08:07 PM ---------- Previous post was at 07:33 PM ----------

As I said I've tried the flash all's for Oreo and the like. Only to make things worst. And I saw another question about getting back to stock in this same thread, hence why I thought asking it here would help. You said it's for installing said kernel and bugs. Well I'd call losing connectivity after INSTALLING a BUG wouldn't you?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
I think you're mistaken, but I can understand being frustrated when things don't to plan and you've got an unusable device. I would suggest starting here to get back to good. [MENTION=4604067]Uzephi[/MENTION] does a lot for us around here, for free I might add, and if there was a bug that serious then this kernel wouldn't have been posted. Losing baseband isn't so much a bug as it's a major problem. Check out the link I posted and go from there.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
My kernel has nothing to do with your modem. That's a different partition. Please respect the site and stop the off topic banter. This zip will only put the kernel dtb into a current boot image. It changes nothing else. Flashing a stock boot image will remove the kernel entirely. This kernel will have issues with the stock ROM. It is only meant for aosp built ROMs. I would suggest posting in a thread to return to stock rather than a kernel thread please.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://www.androidfilehost.com/?fid=890278863836285353 Custom kernel for Dirty Unicorns. Built with Clang, but Motomods are still not working. I will have to just pull the whole device tree and start building the whole boot image for them to work.

https://www.androidfilehost.com/?fid=674106145207486836 for AOSiP and LineageOS. same as above.

Both kernels are in line with linux stable at 4.4.131.

P.S. if you flash the wrong kernel for your ROM,. things may get wonky (wifi def breaks, don't know if anything else does)

Edit: getting mixed results. Motomods may work. (I only have a projector, and it didn't work on any AOSP since it has older firmware and I'm too lazy/don't care to update it. Motomods functionality is from tester sources, YMMV).
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Updated to 4.4.132. below are the links. Motomods MIGHT work. Only had one tester and they said they didn't work but my phone recognizes my projector.

Google Drive Link (DU)

Google Drive (LineageOS)

Android File Host (DU)

Android File Host (LineageOS)

Edit: at this time, I am releasing this as stable. This kernel will not adversely affect the ROMs they are made for. It is built from the same sources and will get the appropriate CAF and linux-stable commits merged into them. Only difference is the edits I made for power savings with minimal performance loss.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] mattlowry:
is double tap to wake included with this kernel?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Nope. Haven't touched any gestures yet.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
[MENTION=4604067]Uzephi[/MENTION] ...what is the difference between the DU & LOS versions? I ask bc I am staying stock ROM due to my challenges w/aosip rooting & it's current audio bugs.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
CAF WiFi fixes that affect how kernel space and system handle WiFi. Pretty much slight changes to "net" that break WiFi on one of their builds.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
Awesome, tyvm [MENTION=4604067]Uzephi[/MENTION] ...which link should I use for stock rom sir?
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
Neither. I assume WiFi would break. You can try both, but I haven't built a stock kernel in about three months. The stock ROM is jank compared to true aosp and how aosp handles WiFi on our chipset. Every Linux stable net and crypto patch on Motorola's ROM breaks WiFi and/or encryption. I have a repo with the stock ROM, I just haven't built it much. Motorola is releasing kernel source for march update and once that drops I'll update that and post it in it's own thread.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 3's&7's:
Thank you for the background here, I do not experience too many wifi issues myself on stock but have observed a few for sure. Unfortunately aosip bug list includes no audio on vid cam was a non-starter for me (much less a few of us having root issues breaking wifi...which is sort of ironic if you think about it lol)...I have three boys and always capturing some "moment".
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I have a go pro for that, which is why IDC about audio, lol.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
https://drive.google.com/file/d/1ealI8lDk84O0B9jcplh_M-vY-m_QezFZ/view?usp=drivesdk

4.4.135 for Dirty Unicorns and should work for any AOSP base that has the recent CAF changes to the WiFi module. If your ROM doesn't have it, WiFi will break.

Fixed 180mhz under clock for GPU and 750 MHz OC as well.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] 41rw4lk:
I have 4.4.132 v1.0 which I believe have the CAF changes, can you confirm this? Either way I'll pull a backup just in case.
[Moto Z2 Force  ROMs, Kernels, Recoveries, & Other ] Uzephi:
I don't know if LoS updated to the new CAF fixes for WiFi/net yet, but Invitrix, DU and AOSiP builds after may update have it.

Edit: I will update 1.0 here in a few days with the same changes and at that time I will update OP as well. (I have two branches going for this reason specifically, which is the only difference between 1.0 and 2.0 for ASOP so far)