yashsingh1/xdaforums huggingface dataset:
[P8 Lite (2017) Development] RoccoA:
Just want to confirm this kernel works perfectly fine on emui! Someone here said flashing it results in a bootloop and I didn't bother checking it before since I was already on a custom rom. So feel free to use it if you're on emui no issues at all.
[P8 Lite (2017) Development] tunasahinn:
Any problems in kernel ? I'm using Oreo
[P8 Lite (2017) Development] natanrosenfeld:
Does this enable Permissive for SELinux? Or is it possible to enable it somehow?
[P8 Lite (2017) Development] Dil3mm4:
Can I ask why you're interested in Permissive SELinux?
[P8 Lite (2017) Development] natanrosenfeld:
Well, I'm trying to somehow get Viper4Android working on my device, and setting SELinux to permissive could maybe get it to work. Besides that I have no reason to change the SELinux status.
[P8 Lite (2017) Development] Dil3mm4:
Until Viper4Android updates to support 64bit audio driver we won't have it working.

V4A probs are not SELinux related.
[P8 Lite (2017) Development] natanrosenfeld:
Thanks for your reply. I guess I've got no hope for it to work then. But thanks anyway for your response!
[P8 Lite (2017) Development] steven360:
This doesnt work on the honor 7x, it will cause bootloops.

EDIT: It works now with 1.3, works and doesnt cause bootloops anymore, at least for me. I'm on a custom rom, treble gsi.
[P8 Lite (2017) Development] mrmazak:
I knew this bootloops with emui on Honor 7X . But It does work with twrp, so there is possibility for it to work in the rom, eventually.
[P8 Lite (2017) Development] GDStaff:
You can "repair" the ability to switch the selinux to permissive, please?
[P8 Lite (2017) Development] Dil3mm4:
Again, for what?
[P8 Lite (2017) Development] Dil3mm4:
Update v1.3

gpu: raise frequencies for ondemand governor;

TEST: cpu: enable overclocking;

cpu: enabling sched governor;

cpu: rename Interactive Governor to Bypass EMUI Overrides;

cpu: Tune Sched Governor for Fast Frequency Ramp-Down;

Upstreamed to 4.4.110

Better Energy Aware Scheduling (EAS);

Download

Labyrinth 1.3
[P8 Lite (2017) Development] Wire1122:
Bootloop on p8 lite 2017 and Los 15.1
[P8 Lite (2017) Development] steven360:
well, it works now without bootlooping :)
[P8 Lite (2017) Development] Wire1122:
How did you do?
[P8 Lite (2017) Development] mrmazak:
On stock emui, or you on custom GSI?
[P8 Lite (2017) Development] mrmazak:
Thanks. The V1.3

Kernel is running on stock (rooted with magisk) emui, on Honor 7x (Kirin 659) B332.

Still need to be tested for while to see if any bugs show up, but right now it is running

Day three, so far everything is setteling in good, battery life is good, so is above average.

Update::

Updated phone BND-L24C567 with OTA to B341, now phone no longer boots with custom kernel.

(looking for solution)

Update 2:

Thanks to some help. ; )

See next post.

The kernel does still work fine on the new update ota on my device. (BND-L24)

.I added repacked kernel.img only change is the "oslevel" tag file in split-img. changed from "2018-05" to "2018-07"
[P8 Lite (2017) Development] neondragon1909:
This is most probably because the security patch level on the kernel.img does not match the one on system.

you can try repacking it
[P8 Lite (2017) Development] steven360:
Not sure what you're doing with the red text. It makes it

really hard

to read. Could you just post normally next time? Thanks :)
[P8 Lite (2017) Development] leap_ahead:
I use this kernel on p smart ! v1.3 [MENTION=9034316]Dil3mm4[/MENTION]

* thanks [MENTION=6765491]neondragon1909[/MENTION] [MENTION=5312578]mrmazak[/MENTION] for the info to make it work on last updated firmware.. I edit Oslevel
[P8 Lite (2017) Development] leap_ahead:
how you have version 4.4.151 ? its not this kernel ?
[P8 Lite (2017) Development] mrmazak:
Now I'm actually running "154+". LoL

I have preview of possible future edition. If you watch the GitHub linked in op, you can build it too.

Or wait to see if Dev makes release.
[P8 Lite (2017) Development] :
This is probably a stupid question. I know this kernel is for Oreo devices but would it work on p10 lite (Was-lx1) running CypherOS which is a Treble Android P custom rom.:confused:

Also when I do kernel testing how hard can I brick my phone. Can I just restore it by flashing another kernel or would it be so bricked that I'll have to use DC-Phoenix or even testpoints.:rolleyes:
[P8 Lite (2017) Development] mrmazak:
The pie roms are already running on stock Oreo kernel, so it should work.

If phone is not booting with this kernel, it should just be a matter of flashing back the correct kernel to fix it.

What I have been doing is using twrp to backup current kernel to ext_sdcard.

Then flash new test kernel as image. And rebooting twrp first (ROM and recovery share kernel) and if recovery does not boot then use fastboot to flash stock kernel back
[P8 Lite (2017) Development] :
Thanks for the reply. I tried it and it didn't boot:(. Recovery booted just fine but when I tried to boot into Android it just stayed stuck on the Your device is booting now... screen. Then I just booted into recovery and restored my kernel backup.
[P8 Lite (2017) Development] mrmazak:
That is wat it did to me, when security patch date in ROM didn't match the kernel security patch date
[P8 Lite (2017) Development] :
I couldn't get it to work on CypherOS no matter what I tried. However it did work on stock and only after I changed the os-level to 2018-08 otherwise it just bootlooped. Now I have to choose either to flash an Oreo rom with this kernel or a Pie rom. I'm kinda bored of Oreo though:rolleyes:.
[P8 Lite (2017) Development] Dil3mm4:
Update v2.0

Completely rebased on kernel-common and upstreamed to 4.4.159

Better EAS ( if you enable sched_util as cpufreq governor)

OOM Reaper

Disabled most of Huawei Logging

Download

Please check the downloads section.
[P8 Lite (2017) Development] 9bestenbier:
This kernel boots on every Pie GSI that I've tried so far, but I haven't gotten it to work on Oreo yet. I have the PRA-LA1.

I'll check the updated one and see what happens
[P8 Lite (2017) Development] mrmazak:
I'm on oreo (emui) and it boot it just fine. But I needed to repack with matching os level tag. My issue is my emui September patch update makes calling not work with custom roms. This worked on older patch level.

Will finnally be switching away from emui and give this another shot.
[P8 Lite (2017) Development] 9bestenbier:
I've never tried this on emui as I've never really used it. I got rid of it the instant I got this phone so I've just been using custom ROMS

I'm currently on OpenKirin Resurrection Remix which runs perfect. All that's left is a custom kernel cause I'd like those extra features. I hope I can get it to work with Oreo soon.

Wait, which tool did you use to repack the kernel?
[P8 Lite (2017) Development] mrmazak:
AIK

https://xdaforums.com/showthread.php?t=2073775

treat each part as a boot.img

so just drag the kernel.img over the unpack script.
[P8 Lite (2017) Development] 9bestenbier:
Here's what I did to finally make it boot up. I unpacked both the stock kernel and the custom kernel images and then I copied the zImage from the custom kernel and replaced the stock zImage, repacked and flashed and it worked like a charm!
[P8 Lite (2017) Development] mrmazak:
yup. Go back One page to post #72

this was supposed to be only an emui bug, that you needed to repack like that. What rom are you on?
[P8 Lite (2017) Development] leap_ahead:
I test the kernel...
[P8 Lite (2017) Development] leap_ahead:
This kernel work on october update...
[P8 Lite (2017) Development] 9bestenbier:
I tried the method in post 72, but it still bootlooped. It only booted up after repacking like that.

I'm on OpenKirin Resurrection Remix
[P8 Lite (2017) Development] ppdr07:
Can u post the kernel u using on Openkirin RROS? i want to try it :)
[P8 Lite (2017) Development] honorfan:
Hi

I flashed v2 on pixyos pie

But it stuck on logo

Even I did factory reset but again stuck on bootanimation logo

Does anybody know how to fix it??
[P8 Lite (2017) Development] 9bestenbier:
Hi. I am back on the stock kernel as I have been trying different ROMS. But this kernel worked for me after repacking
[P8 Lite (2017) Development] ppdr07:
Thanks for this!
[P8 Lite (2017) Development] ppdr07:
Can u add support for Spectrum?
[P8 Lite (2017) Development] gabi4175:
bootloop on pra-lx1 dot2.4 rom
[P8 Lite (2017) Development] ppdr07:
you need to repack it. Unpack both stock and custom kernel then copy the zImage from custom kernel to stock kernel then repack.
[P8 Lite (2017) Development] gabi4175:
done that and now i get bootlogo and then reboots to erecovery
[P8 Lite (2017) Development] ppdr07:
Did u use the tool to repack unpack in this thread? If not try that read back.
[P8 Lite (2017) Development] gabi4175:
ok so i repacked again and works now i try to setenforce 0 but nothing happens
[P8 Lite (2017) Development] ppdr07:
U cant set the selinux status to permissive in this kernel try the other kernel.
[P8 Lite (2017) Development] RAR1991:
Thank you for your work. I want to ask 8f using this kernel on my PRA-LA1 will solve game guardian issue with the stock Huawei kernel.
[P8 Lite (2017) Development] Traceur017:
Which version of pixys os?

Edit: I've installed this kernel,and it caused boot loop

in pixys os rom.
[P8 Lite (2017) Development] Lipponen:
Same here PixysOS 2.3.
[P8 Lite (2017) Development] jeko99:
Any fixes to flash this kernel on pixy os
[P8 Lite (2017) Development] :
anyone got it to boot. same
[P8 Lite (2017) Development] actinhic:
Use: fastboot flash kernel labyrinth.img

Use the last version (downloads tab)
[P8 Lite (2017) Development] :
Bootloop. Device didn't turn on. Stuck on boot animation so I just flashed stock. Just asking how long should it take to boot after flashing
[P8 Lite (2017) Development] :
I tried. Stuck on bootanimation. Waited for 5 mins before flashing stock so maybe I didn't wait enough? Anyway I can't understand what this does for the life of me. I already have kernel adiutor to Max my clock speeds on stock kernel bug really want this to work. Maybe I will try again later and leave it for ~30 mins. Who knows. Maybe it boots.
[P8 Lite (2017) Development] :
After flashing kernel how long should the phone take to boot. I read online that approx 10 minutes are needed. Can anyone who has flashed this kernel tell me?
[P8 Lite (2017) Development] :
Did you try to flash this kernel. Was it successful. Or did you get bootloop
[P8 Lite (2017) Development] :
Nah. There's no need. I just wanted it working on Pixys OS but if it doesn't it's OK. Pixys OS Is a great ROM so far for me and I don't plan on switching to any other soon. I also have stock camera available now so that's a plus. And the latest update 2.4 brings some pretty nifty features. So I am gonna be waitng for that. And not to mention there is a kernel that sort of works. I found that morfuz kernel works perfectly. Only issues I faced were no flashlight, no calls (incoming or outgoing) and can't download anything from play store. There is supposedly a fix for that but it's device specific and there isn't one available for the Honor 6x. So I just flashed stock.
[P8 Lite (2017) Development] :
I am gonna take that as a no. If you get this kernel to boot then please share. When though I don't know what it does anyway. But still
[P8 Lite (2017) Development] ppdr07:
Why dont u guys back read in page 9 u will know how to boot it... :):good:
[P8 Lite (2017) Development] neondragon1909:
Preparing a changelog is too much work so check here in case you are interested. Anyway, here's Labyrinth r2.1

---------- Post added at 08:50 AM ---------- Previous post was at 08:49 AM ----------

Sorry, I don't understand what you are trying to say.
[P8 Lite (2017) Development] :
Bootloop. Honor 6x. AOSP Extended by DarkJoker360
[P8 Lite (2017) Development] Dil3mm4:
You both, go ahead and blog it for me.
[P8 Lite (2017) Development] :
What? Blog it? :confused:
[P8 Lite (2017) Development] hopeless_bricker:
Anyone experiencing bootloops should try to unpack the image using Android Image Kitchen as explained in page eight of this thread, post #72. You need to make sure that the oslevel tag matches the security patch date of YOUR ROM.

This fixed my problem with bootloops on AOSPExtended 9.

On an unrelated note, can someone running version 2 or 2.1 of this kernel tell me if they have Westwood available as a TCP congestion algorithm?
[P8 Lite (2017) Development] :
Can you please explain exactly want you did. Step-by-step if possible
[P8 Lite (2017) Development] hopeless_bricker:
I might, if I have the time.

Go read post #72, you can do it yourselves.

I don't know which security patch is in PixyOS.
[P8 Lite (2017) Development] hopeless_bricker:
There's no need to do this for PixysOS 2.4 v2. Just get labyrinth_r2.1.img from here, don't forget to thank neondragon1909: https://xdaforums.com/showpost.php?p=78298986&postcount=124

Okay, here goes:

NOTE: The instructions here should work for any kernel. To view your ROM's security patch date either go to its respective thread, or (while using it, of course) go to Settings > System > About phone > Android version

0 - Download the labyrinth_r2.1.img kernel image from here: https://xdaforums.com/showpost.php?p=78298986&postcount=124

1 - Download Android Image Kitchen from here: https://xdaforums.com/showthread.php?t=2073775

2 - Extract the archive and open the Android Image Kitchen folder

3 - Open the folder where your kernel image (labyrinth_r2.1.img) is located

4 - Drag and drop your kernel image (labyrinth_r2.1.img) on top of the file called unpackimg

5 - A command line window will appear and a new folder called split_img will be created in the Android Image Kitchen folder. (The command line output should look something like this):

Android Image Kitchen - UnpackImg Script
by osm0sis @ xda-developers

Supplied image: labyrinth_r2.1.img

Setting up work folders...

Image type: AOSP

Splitting image to "split_img/"...
BOARD_KERNEL_CMDLINE loglevel=4 coherent_pool=512K page_tracker=on slub_min_objects=12 unmovable_isolate1=2:192M,3:224M,4:256M printktimer=0xfff0a000,0x534,0x538 androidboot.selinux=enforcing buildvariant=user
BOARD_KERNEL_BASE 00478000
BOARD_NAME
BOARD_PAGE_SIZE 2048
BOARD_HASH_TYPE sha1
BOARD_KERNEL_OFFSET 00008000
BOARD_RAMDISK_OFFSET 07b88000
BOARD_SECOND_OFFSET 00e88000
BOARD_TAGS_OFFSET 07988000
BOARD_OS_VERSION 8.0.0
BOARD_OS_PATCH_LEVEL 2018-11
BOARD_HEADER_VERSION 0

Warning: No ramdisk found to be unpacked!

Done!

6 - Open the split_img folder and find a file called labyrinth_r2.1.img-oslevel, use a text editor to open the file (on Windows the Notepad works fine)

7 - You will see a date. Change this to the date of your security patch. For example, if you're patching AOSPx 6 you need to change 2018-11 to 2018-07.

8 - Save the file and exit your text editor, go back to the Android Image Kitchen folder.

9 - Double-click the repackimg file. A command line will appear, giving you output similar to the unpackimg script.

10 - You will now see a file called image-new.img. This is your new kernel image..

MOVE IT OUT OF THE FOLDER.

11 - Double-click the cleanup file to reset the Android Image Kitchen folder.

Flash image-new.img as instructed in the first post of this thread. Worked for me, running AOSPx 6.0 and Labyrinth 2.1, no bootloop and no problems.

I have attached the proper kernel image for the current version of DarkJoker360's AOSP Extended (6.0).

You will probably have to do this every time your ROM updates its security patch.
[P8 Lite (2017) Development] hopeless_bricker:
This version of the kernel posted by neondragon1909 already has oslevel set to 2018-11. If you've tried it and it doesn't work, then your bootloops aren't being caused by a mismatched oslevel (kernel security patch date).
[P8 Lite (2017) Development] A_S_A113:
fine! kernel runs on p20 lite ane-lx1 Rom Pixys OS 2.4
[P8 Lite (2017) Development] Harsu04:
Will it wrk in honor 6x
[P8 Lite (2017) Development] :
Nope. Didn't work for me
[P8 Lite (2017) Development] Harsu04:
Do u know any kernel for honor 6x oreo treble bcoz i am in omni pie alpha 2 and this rom is taking so much of battery and charging very slow

---------- Post added at 06:51 PM ---------- Previous post was at 06:51 PM ----------

Didnt worked in honor 6x i also tried
[P8 Lite (2017) Development] A_S_A113:
incoming and outgoing calls do not work p20 lite ane-lx1.
[P8 Lite (2017) Development] Wicksot:
I don't have an option for Westwood. Running 2.1
[P8 Lite (2017) Development] hopeless_bricker:
If you're having phone/contacts FC try doing wipe in TWRP and reboot

---------- Post added at 02:30 PM ---------- Previous post was at 02:27 PM ----------

Thank you. This issue has been confirmed, and an issue opened here: https://github.com/Dil3mm4/labyrinth_kernel_prague/issues/9
[P8 Lite (2017) Development] A_S_A113:
Wipes made from stock recovery, did not help
[P8 Lite (2017) Development] :
I am guessing that it's a device related issue. Tried to flash modified kernel. No boot. But the thing is a P20-lite was able to run it. So theoretically, my 6X should to. Can anyone test this? I really want a custom kernel. BTW, does this kernel add Fast Charging or anything?
[P8 Lite (2017) Development] :
I know this is weird but how long should the device take to boot after flashing kernel? I flash it via fastboot, reboot and then wait like 10 mins for it to boot. After that I just flash stock kernel. Maybe I need to wait more? I am on latest Pixys OS 2.4 2028.
[P8 Lite (2017) Development] A_S_A113:
Kernel very nice work on p20 lite ane-lx1 !!!
[P8 Lite (2017) Development] :
Did you edit the kernel yourself?
[P8 Lite (2017) Development] A_S_A113:
Yes
[P8 Lite (2017) Development] :
Can you share your file.
[P8 Lite (2017) Development] A_S_A113:
Plz https://drive.google.com/file/d/18mziyCnNIO7iHa_LokQEsqw8aAr-prXH/view?usp=drivesdk
[P8 Lite (2017) Development] A_S_A113:
What official firmware did you have before the custom? When I had an official with the last November patch, after the PixysOS firmware and the labirynt installation, the calls fell off too. Then I installed the official firmware version for May, unlocked the phone again, installed PixysOS and installed labitynt and it all worked, including the calls!

---------- Post added at 06:31 PM ---------- Previous post was at 06:25 PM ----------

As far as I understood, Huawei on the latest versions of official firmware, changed the section associated with calls, because of this, after the firmware of the labyrint kernel, calls do not work. Need an older version of the official firmware before the custom firmware.
[P8 Lite (2017) Development] rush9935:
[MENTION=4919590]cookremier[/MENTION]

Is that the Kernel .img ????
[P8 Lite (2017) Development] :
Whatever I do, I can't get this to boot. I've tried patched images, flashing via TWRP everything. Always the same. Maybe because before Pixys I was on September patch and I need to modify for that. Or maybe flash Stock ROM with June or before patch. Whatever the case, I'll wait till a new version is released. I'm not clean flashing now. And before I go ahead and do something I'd like to know just one thing. Does this Kernel have fast charging. If so what? How much time it takes. I read that fast charging is dependent on hardware. Other than that I'm fine with stock kernel. Maybe I'll try Elemental Kernel.
[P8 Lite (2017) Development] A_S_A113:
Yes

---------- Post added at 08:20 AM ---------- Previous post was at 08:18 AM ----------

Yes, you need to return to stock firmware from June or earlier.
[P8 Lite (2017) Development] :
Well. Now I'm waiting for updated version of AOSP Extended. Let's hope it's released soon
[P8 Lite (2017) Development] moonknight01:
could install on descendant honor 9 lite?
[P8 Lite (2017) Development] moonknight01:
i didnt understand bro but i test in descendant and got

FAILED (remote: image verification error)

could you help me to installl?
[P8 Lite (2017) Development] JonasMeyer:
will this work with honor 6x latest pixy? would be awesome :fingers-crossed:
[P8 Lite (2017) Development] natoieri44:
how to install on pixysos?
[P8 Lite (2017) Development] cyclon1978:
Patch for new MODEM firmware:

https://github.com/cyclon1978/andro...1cac277ebef467d999a674a5b1475355bce1681.patch

It might be downward compatible, but i didnt try it on old MODEM, just on OREO november modem.
[P8 Lite (2017) Development] cyclon1978:
The patch needs to be inserted in the kernel code!

After that the kernel provider can build a version for the new modem (or one for all, that needs to be tested)
[P8 Lite (2017) Development] natoieri44:
i don't have any modules but i go in to bootloop
[P8 Lite (2017) Development] natoieri44:
I try but my phone is in bootloop
[P8 Lite (2017) Development] natoieri44:
I've done it !!:laugh::laugh::cool::cool:
[P8 Lite (2017) Development] natoieri44:
I have another problem! no calls start and I do not receive them
[P8 Lite (2017) Development] kfatah22:
Sorry mate to ask this stupid question ... can this kernel be installed on ASOPEX 6.1 on P8 lite 2017 ?

Basically I am looking for a kernel that provides double tab to wake and SElenix persmissions ... can you provide me with a link for one, please?

I am running your same gear

Phone : P8 Lite 2017 (PRA-LX1c432)

OS : AospExtended-v6.1-hi6250-20181215

GAPPS: OpenGapps 9.0 ARM64 Pico 22.12.2018

SU : Magisk 18.1 IanMacd 15.12.2018

Askuccio´s TWRP 3.2.3 Fixed Version
[P8 Lite (2017) Development] omega_55_lul:
I don't think that works, I tried to install the kernel on AOSPE 6.1 and it hangs on the "Your device has been unlocked" message

And also, I have the B370 build, maybe that's the cause (?)
[P8 Lite (2017) Development] omega_55_lul:
After installing the custom ROM
[P8 Lite (2017) Development] mahrtayyab:
Not booting on lineage 15.1
[P8 Lite (2017) Development] -CALIBAN666-:
Hey,im on AOSPExtended 6.1 from Darkjoker and like to know a lil thing.Does this kernel work with this rom when i modify it with image kitchen or have anyone test it without errors?Thanx in advance.Greetz!!!
[P8 Lite (2017) Development] SCP_682:
Hello, if I flash it from TWRP, which partition do I need to flash?Kernel or boot ramdisk?：d
[P8 Lite (2017) Development] honorfan:
Hey guys

Has anybody tried pie update of honor 7x

On p8 lite 2017 by nocheck recovery???
[P8 Lite (2017) Development] _kd003:
I tried it on aex 6.1...Device boots sucessfully but problems in receiving and making phone calls.
[P8 Lite (2017) Development] MIcHiJK:
Can this kernel fix the UI lags on PRALX1?
[P8 Lite (2017) Development] Dil3mm4:
Labyrinth rev2.2

Changelog

Upstreamed to 4.4.174, latest available version

Kernel

Download

Spectrum profile flashable via TWRP (you'll need root and spectrum app)

Download

Follow the guide under the spoiler to have better result with spectrum conf

SSC Instructions

First download the SSC flashable zip for your device file from the link above and place it on external SD card

Go to <root>/vendor/etc and delete the "perfgenius_boost_policy" and "perfgenius_config" XML files.

Go to <root>/vendor/bin/hw and rename (do not delete) "vendor.huawei.hardware.iawawreperf@1.0-service" and "vendor.huawei.hardware.perfgenius@1.0-service" (just add ".bak" in the end)

Go to <root>product/etc/xml and delete the "uniperf_config_cust" XML file.

Go back to <root>/vendor and open the build.prop, find the lines "ro.config.hw_perfgenius" and "persist.sys.iaware.cpuenable" and change them from 'true' to 'false'.

If you were already using Spectrum, on your Internal Storage, delete the Spectrum folder, along with the profiles. Leave the Spectrum app installed.

Reboot to TWRP and flash the SSC file and reboot. (If you do not have Spectrum app installed, install it). Just give root permissions to the app and set whatever profile you want to use.
[P8 Lite (2017) Development] :
Works on latest security patch or have to downgrade to June patch?
[P8 Lite (2017) Development] Ham1do:
Deleted
[P8 Lite (2017) Development] honorfan:
Hi didn't boot on emui 8 stock rom
[P8 Lite (2017) Development] Ytim08:
Does this kernel have ptrace support? (Stock Oreo kernel has broken ptrace)

Also the hosting service you're using seems to be down. :c
[P8 Lite (2017) Development] hexxr:
Not booting on b399 emui 8.0 . bootloop .