Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Dorimanx OP3/T Kernel for STOCK 7.1.1 OOS/H2OS 4.1.6+7+4.5.1 + BETA!
NO > Oxygen 3.x.x or CM/LineAge/OREO BETA SUPPORT!!! GO AWAY NOW!
My PM box, is for Emergency ONLY! do not send me PM's just because you cant post! that is lame, post something useful and post in thread.
My kernel was based on OP3/T Stock Kernel 4.1.6+7+4.5.0 + BETA 15/24 Source.
Kernel Tree is 3.18.140, + OP3/T and CAF updates + my tweaks and lots of tuning!
Global Credits!
Flar2 for many kernel mods
Cyanogen/LineAge/Code Aurora for many kernel mods
Andip71
Franciscofranco
SultanXDA
OP3 Devs for Stock kernel base!
To all my sources in GITHUB!
Linus Torvalds for Linux source!
WHAT INSIDE:
Kernel support OOS/H2OS 4.1.x
Kernel compiled with Linaro GCC 7.1.1 Android Bionic 64Bit adapted for OP3/T
Kernel includes all new security patches.
Kernel updated up to 3.18.140 build.
Kernel includes all original last 7.1.1 changes by OP3/T Devs.
Kernel operate in 300HZ + all needed fixes to do that.
Kernel has DASH charge and USB Fast Charge (USB mode up to 900mA with MTP on)
Kernel support charging up to 2500ma with any charger! stock locked to 1500ma
Kernel has swipe to wake features by @flar2 (up,down,right,left,and dual tap).
Kernel include Sweep2Sleep allows sweeping from right to left and backwards!
on soft buttons to turn off the screen. by @flar2
Kernel has support for screen color change app. (KCAL Interface).
Kernel has support for touch keys light delay, default 6sec. by @andip71
Kernel include KGSL fixes and reworked GPU driver (use 133MHz min freq to save juice, goes to idle @ 100MHz)
Kernel include all latest patches from Code Aurora source for 3.18.y
Kernel include Enhanced TCP methods
Kernel include IPA/TIMERFD/WIFI/NETLINK wakelocks removal code by @franciscofranco
Kernel include open source QUALCOMM Wi-Fi driver updated to max without debugs.
Kernel include advanced binder driver from main line 4.10.y kernel.
Kernel include CDROM emulation on mass_storage (compatible with DriveDroid 0.10.18+)
Kernel include latest F2FS driver for 3.18.y with fixes for speed and stability.
Kernel include ZEN,NOOP,BFQ,DEADLINE,CFQ,FIOPS,SIO I/O govs tuned for SSD.
Kernel includes Elementalx, Blu_active, Interactive, Conservative, Ondemand, Performance CPU GOVS.
Kernel support FSYNC mode for FS. (Off by default)
Kernel includes ARM enhanced performance and battery patches
Kernel support Backlight Dimmer feature.
Kernel supports CPU OverClock/UnderClock for both clusters.
Kernel support thermal driver tuning, max heat for cores.
Kernel includes advanced crypto drivers and latest qseecom decryption driver.
Kernel includes updated EXFAT and FUSE + NTFS drivers.
Kernel support for not forcing encryption and verity checks.
Kernel includes support for CIFS driver.
Kernel includes fast finger print sensor mod when screen is off.
Kernel includes support for Haptic Feedback (vibrate) tuning (more/less)
Kernel includes massive code update for sound driver, and @flar2 sound/mic gain control interface.
Kernel include boost to I/O by mounting partitions with optimized flags, and updated MMC driver.
Kernel includes updated BT and NET/PPP/VPN/DATA drivers.
Kernel include mode to ignore home and touch keys when finger is pressed against the screen.
Kernel includes Aroma Installer for easy install with few simple changes that can be selected.
Kernel includes many patches to camera, GPU, and screen drivers.
Kernel has OTG enabled by default internally.
Kernel has Notification LED Control driver by @andip71
Kernel include usage of power efficient workqueues in many drivers by @franciscofranco
Added Support For INIT.D Scripts see /data/init.d folder
Kernel will switch to NOOP I/O Sched during screen Off time to save power. by @Sultanxda
Kernel will boost CPU frequency when screen wakeup to improve user experience, by @Sultanxda
Kernel will set max allowed apps in RAM to 60 from 32
Kernel will add advanced busybox binary in /sbin/busybox for advanced users and my scripts
Known BUGS!
Post reports, i will fix.
Standard disclaimer:
By installing this kernel YOU will take full responsibility for any damage to your device!
Hardware or software! no one forcing you to install it.
So please do not blame me if you read wrong! or didn't read at all the instructions that i have written for YOU.
But you can feel SAFE to use it, as I test every release on my phone!
Before I publish it for download.
Your warranty will be void by installing custom kernel as my.
Kernel Sources:
KERNEL GITHUB
TO DOWNLOAD GO DOWN!!! YES MORE DOWN...(do i need to repeat?)
How To Install:
You will need to have device with Latest Recovery installed! Please install the 3.1.1.x BUILD!
>>>Here is the Recovery you need!<<<
Old recovery can corrupt your DATA partition as my kernel using latest F2FS driver. new recovery has updated driver.
YOU MUST UNLOCK OEM BOOTLOADER!!! OR YOU WILL BE STUCK ON BOOT!
Refer to other threads for recovery install process and for oem bootloader unlock.
Download kernel, upload it to your SDCARD, anywhere.
Always have STOCK Kernel for your ROM!
Reboot to Recovery.
THINK AGAIN! did you made backup? NO!!!!??? DO IT NOW!
If you had any other Custom kernel, Install STOCK kernel or dirty flash your ROM,
to clean any trace from other kernel. then install ROOT/Magisk if you wish! then install my kernel ALWAYS THE LAST.
Do not clean any cache or dalvik (needed for ROM only!).
Reboot!
If you wish to UNINSTALL my kernel, there is a uninstaller ZIP for you.
it's will remove all ramdisk changes, and install last 4.1.6 stock kernel, preserving ROOT if was installed!
Have Fun and report.
Honored Fearless BETA Testers! without them i would be lost in dark kernel space:
dimberr
Diechel
misterepicwin
vampire36
RyperX
siggey
bipinbedi
Chris7
Leicxan
Radon94
Donation Board:
ME donated 150+ hours to update stock to now.
Dimberr HUGE Donation!
Betadr X2
Diechel
RyperX
misterepicwin
Cultofluna
Andrej666
Aagato86
Thread Rules:
This is a Kernel development thread ONLY.
Allowed:
1) Any kernel reports with LOGS in case of crash from /sys/fs/pstore/console file.
2)Any satisfaction reports with picks and suggestions about kernel.
3)Any questions related KERNEL.
4)Any important information that may improve this kernel.
5)Any issues you have with STOCK Stable ROM. this what i use and test, all the rest are BONUS.
6)Sound mods and root access. i think it's good information that can improve user experience with my kernel.
Not Allowed:
1) extreme off topic about some ROM mods, APPS, Magisk non ROOT modules,
2)Comparing kernels, other vs other, my vs other.
3)Trolling!, Spamming, hate toward other users, flaming, feeding trolls. posting not in English, NOOB calling other users.
4)Disrespect of any beta tester listed in OP.
All recognized developers Allowed to manage there own threads without bothering forum administrators.
I can, and I will, remove all not allowed posts without blinking.
Mirror #1 by willflint
Mirror #2 by GITHUB!
Info for Web Hackers,
in my mirrors, there is nothing to take!
My work is public and for the people!
Please let my mirrors work in peace.
Thanks.
Please consider supporting my work by tipping
Mirror #1
Mirror #2
Change logs:
26/6/19
Kernel 3.5 Stable
* Merged linux code update from 3.18.137 to 3.18.140.
* Merged mega patch for F2FS file system driver.
31/3/19
Kernel 3.4 Stable
*Merged all main line linux patches up to 3.18.137
*Merged latest updates to WIFI Driver LA.UM.5.5.r1-09000-8x96.0
16/4/18
Kernel 3.3 Stable
*Reverted some touch screen mods to fix few issues.
*Merged 3.18.85 to 90 from main line.
*Merged aosp updates.
*Merged F2FS Updates.
28/11/17
Kernel 3.2 Stable
*Merged patches 3.18.80+81+82+83+84!
Including: ARM64,BLOCK,I2C,FS,LIB,SECURITY,SOUND,TTY,USB,
*Merged latest F2FS driver updates from source.
*Merged many updates to BINDER code for CAF source.
*Merged mods to touch screen driver by sultanxda, great work for optimization and power save.
*Merged new updates from CM14 including: MDSS,VIDC,
DIAG,CRYPTO,NET,ADSPRPC,SCSI,SOUND,POWER,IPA,MMC,LOCKING core.
*Merged latest WIFI driver updates. ver 06300
08/11/17
Kernel 3.1 Stable
*Merged main stream patches 3.18.74 to 3.18.79
Including: BLOCK,CRYPTO,MMC,NET,TTY,USB,FS,BASE,SECURITY,HID,IOMMU,SOUND,KERNEL CORE,I2C,LIB,SCSI.
Tons of changes! it's 400 commits compressed to patches.
*Merged optimizations to BINDER code from CAF.
*Merged Camera,MMC,KGSL,SOUND,IPA,MDSS,DIAG,QCOM,USB,FS updates from CAF.
*Merged latest Qualcom WIFI driver v06100
06/10/17
Kernel 3.0 Stable
*Reverted changes to SDCARDFS to get rid of bug with folders in storage.
Beta team reporting that all good now.
*Merged patches 3.18.72+73 including:
BLOCK,NET,PCI,SCSI,TRACE,ARM64,FS,SECURITY fixes.
*Merged BINDER updates from CAF and Mainline kernel.
*Merged wakelocks shut when drivers shift operations, by franciscofranco
26/09/17
Kernel 2.9 Stable
*Merged AOSP and CAF updates including:
FS,BlueTooth,Trace,DIAG,Thermal,ASOC,CAMERA,MDSS,
QSEECOM,KGSL,IPA,SOUND,ARM64,TIME,BINDER,NET,
QCOM,SDHCI,USB.
*Merged patch 3.18.71 including:
SCSI,USB,FS,Kernel Core,MM.
*Merged OP3 Dev BETA OBT24+OBT15 color updates.
*Merged latest WIFI driver updates.
*Merged massive update to F2FS from 4.14.y kernel
*Merged latest updates to SDCARDFS from CAF and AOSP.
*Merged latest OEM OP3 4.5.0 kernel updates.
09/09/17
Kernel 2.8 Stable
*Merged OP3/T BETA branch OBT23+OBT14
It's updates to colors switch Srgb and nightmode.
*Merged main line update 3.18.68+69+70!
Many changes to: FS,Kernel Core,NET,BT,SOUND,ARM64,SCSI,LIB,MM
*Merged updates to BINDER CORE from Aosp and main line source.
*Merged updates to F2FS driver.
28/08/17
Kernel 2.7 Stable
*Added busybox mount function to help with working with /system folder.
*Merged latest patches from CAF and AOSP including:
CPUFREQ,DIAG,LOCKS,USB,CAMERA,SOC,NET,KGSL,SOUND,I PA,WIFI updates.
*Merged 3.18.67 patch including: NET,SCHED,Kernel CORE,MM,SOUND updates.
*Fixed selinux not enforced if Magisk installed on EXT4 Data partition!
23/08/17
Kernel 2.6 Stable
*Merged patches 3.18.64 to 3.18.66
Including many many updates to all core drivers and functions.
See GIT if you like to dig in too code changes.
*Merged many updates from CAF and AOSP branches for our device.
*Merged latest OEM OP3/T 4.1.7 update to kernel. (will work just fine with 4.1.6 and BETA too)
*Added new STOCK 4.1.7 kernel to mirror, and new uninstall zip including 4.1.7 stock kernel.
to install this build on 4.1.7 ROM! make sure you had 4.1.7 stock kernel to get all ramdisk updates by OP3!
06/08/17
Kernel 2.5 Stable
*Merged CAF updates including:
ISP,CAMERA,MDSS,IPA,MMC,USB,KGSL,ION,NET,SOUND,PERF,INPUT,REGULATORS
*Fixed ROM dev ram access to used RAM by apps, no longer show 0B
*Merged updates to F2FS driver from Android dev list.
*Merged OP3 Devs BETA 12 update that focused on color update for night mode.
*Updated Busybox from source.
31/07/17
Kernel 2.4 Stable
*Merged fix for low CPU frequency after deep sleep for short delay.
*Merged Patch 3.18.62 including: CRYPTO,TTY,FS,KERNEL CORE,MM,NET updates/fixes.
*Merged update for F2FS driver from source.
*Merged update to BINDER driver from CAF big improvement in code structure and functions.
Binder is directly responsible in running apps and services, memory allocator.
*Merged patch for android-verity mount check.
*Merged new code that will shrink and compact RAM each time screen goes off after 3sec.
And only once in 15min! This will help to have always fresh and fast device. For very long time of use 150hours+
*Merged fix for QCOM driver to prevent possible memory leak.
*Merged patch 3.18.63 including: POWER DOMAIN,OF,SPMI,PCI,USB,FS,KERNEL CORE,NET, BT+NFC,SOUND.
*Merged new update to WIFI driver LA.UM.5.5.r1-05400-8x96.0 open source perfect module!
*Merged massive fix by Awesome DEV @Sultanxda for debug fs code.
*Compiled new Linaro GCC 7.1.1 = new libs and Android Bionic Core, first time such thing was possible!
And compiled Kernel with this massive native android toolchain!
Noticeable speed and global stability feeling!
My BETA team is impressed! 3 days no words in our discord channel hehehe
*Updated Busybox 1.28.0 from source using GCC Linaro 7.1.1
Now it's possible to use OTA Kernel Update App by @Diechel
It's will auto download kernel, install it via TWRP, and show you the change log
Really cool thing! it's donation app. 1$ feel free to donate, or use the website as before
>>> https://play.google.com/store/apps/details?id=com.diechel.xda.dorimanxota3t.pro <<<
16/07/17
Kernel 2.3 Stable
*Merged latest update to F2FS driver from source. sync with 4.13.y tree.
*Merged fix for min sched windows when kernel using 300HZ.
*Merged CAF patch to fix bugs and security issues in:
CAMERA,MDSS,USB,ADSP,CHARGER,IPA,QCOM,NFC,QCDEV,SOUND
*Merged latest WIFI opensource update LA.UM.5.5.r1-05300-8x96.0
*Merged mods to WIFI driver to reduce battery usage.
*Merged mainline patch 3.18.61 including:
NET,USB,IPC,TRACE,SECURITY
*Merged mod to boost CPU freqs after suspend on wakeup.
*Added SeLinux mode changer in Aroma Installer.
You can set Enforce or Permissive. no apps/magisk modules needed!
*Updated Uninstaller to include selinux mods cleanup.
*Added mount command to be linked to busybox, so apps can remount system and root.
If they are allowed to use ROOT.
09/07/17
Kernel 2.2 Stable
*Merged kernel updates 3.18.59 + 3.18.60
Including USB,FS,Kernel Core,LIB,NET,IOMMU,MM
*Set to deny access from perfd ROM service that can brake CPU gov tuning.
*Tuned Interactive GOV on boot for both cluster,
To deliver great Performance and balanced battery save.
*Tuned Blue_Active Gov default tuning.
*Fixed init.d support from /data/init.d/
*Updated busybox to 1.28.0 made with Linaro gcc 7.1.1 64Bit
*Merged many updates from CAF source for our soc.
Including MDSS,CAMERA,IPA,VIDC,INPUT,QCOM,USB,DIAG,SCHED
*Updated WIFI driver to latest opensource LA.UM.5.5.r1-05100-8x96.0
*Fixed my boot script load on boot to allow better tuning of kernel.
*Fixed not working touch when screen is in half wake state. (liftup, wave gesture)
*Added new driver to allow to limit max freq on both clusters so no other app
or ROM service can set higher. for now not used! and not forced.
I will add controls for it in my app.
*Merged updates to F2FS driver from main source.
*Updated new GCC Linaro 7.1.1 kernel builder 64Bit and made kernel with it.
*Added new controls for CHARGING LIMIT in Aroma installer.
You can set max allowed charge back to 1500ma if you wish!
28/06/17
Kernel 2.1 Stable
*Merged 3.18.58 patch including RAM,USB,NET,FS updates.
*Added overclocking for OP3 Model, one step higher for both clusters, not used by default!
25/06/17
Kernel 2.0 MEGA BOMB Build
Kernel will work with BETA STOCK ROMS!
Including All the in WHAT INSIDE LIST
Tested for long time by fearless beta testers!
And crowned as STABLE.
=============================
XDA:DevDB Information
[KERNEL] Dorimanx V3.4 OP3+T Nougat 7.1.1 STOCK 4.5.1 Tree 3.18.137 [31 MAR] PWR CORE, Kernel for the OnePlus 3T
Contributors
dorimanx, dimberr, Diechel, misterepicwin, vampire36, RyperX, siggey, bipinbedi, Chris7, Leicxan, Radon94
Source Code: https://github.com/dorimanx/DORIMANX-OP3T-KERNEL/commits/master_7.x.x
Kernel Special Features: See What Inside list.
Version Information
Status: Stable
Current Stable Version: 3.4
Stable Release Date: 2019-03-31
Created 2017-06-25
Last Updated 2017-11-28
One for ME :silly:
Some INFO:
ONLY for OP3T!!! do not do this for OP3 model!
If you have Verity Alert on boot that says it's not enforced. and you like to fix it!
Here is how to by @RyperX and @Leicxan
Download modem + firmware 4.02 and the 4.1.6 here:
https://forum.xda-developers.com/oneplus-3t/how-to/firmware-modem-collection-flashable-zips-t3565535
Reboot to Recovery!
Connect your device to PC with USB cable.
1. Install modem 4.0.2
2. boot to fastboot/bootloader (from recovery menu)
3. apply the 2 commands in this order ("fastboot oem disable_dm_verity", then "fastboot oem enable_dm_verity") using fastboot exe file in your PC
C:\Users\admin>fastboot oem disable_dm_verity
...
OKAY [ 0.031s]
finished. total time: 0.032s
C:\Users\admin>fastboot oem enable_dm_verity
...
OKAY [ 0.032s]
finished. total time: 0.034s
C:\Users\admin>
Click to expand...
Click to collapse
4. reboot directly to recovery again using the volume keys and then power key to select recovery!
5. flash modem 4.1.6! or 4.1.7!
6. reboot
Warning of the verity not enforced is gone.
And one more for me
Great you are here
Lets get the OP3t the same lifetime as our LG G2 had
Let the game begin....
Hmm definitely interesting... Will check this kernel out! Nice work by the way...
Happy to see it public ?
Sent from my OnePlus 3T using XDA Labs
Seems amazing!
Just installed, will edit with small review after few days.
Boom Shakalaka
---------- Post added at 06:09 PM ---------- Previous post was at 06:07 PM ----------
RyperX said:
Great you are here
Lets get the OP3t the same lifetime as our LG G2 had
Click to expand...
Click to collapse
Should be exceptional until at least Q4 2020, bring people nicely to the OnePlus 8/8T
<Deleted>
Congratulations buddy [emoji111]
Congratulations man
Thank you so much.
Daym, how many kernels did you combine into this ? xDD
nice nice nice .... waiting long time for this
good job
want to try it....on my op3t
long long long time ago i had this awesome kernel on my Samsung S3.......Damn.....long time ago
Thanks Dori for the Nougat release
cheers
Can this be made for the op3?
Miksel12 said:
Can this be made for the op3?
Click to expand...
Click to collapse
It's a unified build working perfectly on the OP3.
@dorimanx just wow.
I have never encountered this kind of smoothness with my op3. I'm using Open Beta 18.
Not sure how this kind of level of buttery smoothness is even possible to achieve.
Hands down, this kernel is on whole another level of smoothness for op3.
Thank you so much! Any plans to support LineageOS?
Edit: CPU governor was set to performance by default but still very well performing kernel
First LG G2 with the Dorimanx power and finally with OP3, back to the heaven.
New thread is opened for rebooted kernel with Pie support
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
arter97 kernel for OnePlus 5/5T running OxygenOS
/* Details */
Latest CAF kernel fully merged
Various optimizations from Paranoid Android
Reduced touch latency
Permissive SELinux
Passes SafetyNet
Built with O2 speed optimizations
Built with latest GCC
Random driver backported from mainline Linux(12 times faster)
Westwood as default TCP network congestion control
Entropy hook on storage removed
f2fs support with GC fixes and optimized SQLite libraries
Default file-system mount option with noatime
CFQ I/O scheduler backported from mainline
Systemless installation
Wi-Fi configuration from Pixel 2 and Paranoid Android
/* Disclaimer */
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research if you have any concerns about features included in this kernel
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
/* Warning */
Redistribution, modifying files used within this project's file or integrating with other projects are prohibited with no exceptions other than my projects.
Making mirrors, re-uploading to another servers are also prohibited with no exceptions.
/* Thanks to */
TheCrazyLex
xboxfanj
Tim Murray
Sultan
/* Downloads and links */
arter97.com
XDA:DevDB Information
arter97 kernel for OnePlus 5, Kernel for the OnePlus 5
Contributors
arter97
Source Code: https://github.com/arter97/android_kernel_oneplus_msm8998
Kernel Special Features:
Version Information
Status: Stable
Created 2018-01-02
Last Updated 2019-04-09
/* Notice */
Support for other ROMs are not guaranteed and is not planned at the moment
Disabling data encryption is highly recommended for better performance and less headache
Magisk is not tested yet
Only Android Oreo is supported
/* Changelog */
2.3-rc1
Merged Linux 4.4.153
Merged LA.UM.6.4.r1-10300-8x98.0
Merged LA.UM.6.2.r2-10500-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.5 ramdisk (Older versions no longer supported)
Magisk updated to v17.1
Built with GCC 8.2
Merged f2fs from Linux 4.19
Massive performance gains for f2fs with optimal mount and SQLite configurations
Applied pinctrl/serial commits from Pixel for better Bluetooth handling
Disabled UFS clock scaling for better power consumption
2.2-rc2
Merged Linux 4.4.139
Merged LA.UM.6.4.r1-09000-8x98.0
Merged LA.UM.6.2.r2-09300-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.3 ramdisk
Merged f2fs from Linux 4.18 (sorry, rc1 was 4.17)
Merged several patches from Clear Linux
2.2-rc1
Merged Linux 4.4.138
Merged LA.UM.6.2.r2-03900-sdm660.0
Merged OnePlus 5T OxygenOS 5.1.2 ramdisk
Magisk updated to v16.4
Merged some patches from Pixel 2 to improve performance and efficiency
Reverted unnecessary UFS patch to improve power efficiency
Now built with GCC 8.1
Merged f2fs from Linux 4.18
Added f2fs GC optimizations for better performance and lifespan
2.1-rc1
Support for OxygenOS 8.1 added
Support for OxygenOS 8.0 dropped
Merged Linux 4.4.121
Merged LA.UM.6.4.r1-06900-8x98.0
Tweaked some kernel configurations to make it lighter
kswapd affinity removed for faster memory reclaimation
Faster resume from suspend (Thanks to Sultan)
Magisk updated to v16.0
2.0.1
Fixed a kernel panic occuring during Wi-Fi hotspot
2.0.1-rc1
Merged LA.UM.6.4.r1-06500-8x98.0
Backported several unicast and multicast commits from mainline for better wpa_supplicant compatibility
Fixed delayed notifications due to faulty Wi-Fi configuration (by joshuous)
Disabled several debugging features for lower overhead (breaks Android Studio app profiler)
Overrided 300 MHz as the minimum CPU frequency
Faster recovery time for panel reset
2.0
Kernel modules re-enabled for fixing Wi-Fi issues
Fixed custom SQLite libraries not working on f2fs
2.0-rc6
Merged Linux 4.4.115
Disabled kernel modules for lighter kernel
Merged OnePlus 5T OxygenOS 5.0.3 ramdisk
Removed multiple debug and dump stuffs from the ramdisk
Wi-Fi logging reduced
2.0-rc5
Wi-Fi configuration reworked
Enabled more power savings to the display panel
Merged Linux 4.4.114
2.0-rc4
Merged binder with Google Pixel 2
Fixed random reboots due to faulty Wi-Fi drivers
2.0-rc3
Linaro LSK merge reworked
Optimized for big.LITTLE
Toolchain updated to Linaro 7.2 2018.01 with hg-binutils-2.29.51.0.1
2.0-rc2
Merged latest Linaro LSK kernel
Fixed an issue causing camera to save corrupt images
Reverted Meltdown and Spectre patches
Merged latest binder patches from Google
2.0-rc1
Merged LA.UM.6.4.r1-06100-8x98.0
Optimized SQLite libraries only enabled to f2fs users
(f2fs users will need to use another dialer app)
Merged OnePlus 5T OB2
Magisk updated to v15.3
Merged various patches from Pixel 2 to improve Bluetooth, audio and other general performance
Merged Linux 4.4.113
Fixed support for encryption users
Various Wi-Fi issues fixed(including hotspot crashes)
1.0
Fixed slow boot with ext4 users
Fixed support for disabled encryption
Switched to LZ4 ramdisk compression
Reworked touch booster (by TheCrazyLex)
2-step touch booster implemented (by TheCrazyLex)
Merged more Paranoid Android tunables (by TheCrazyLex)
Added f2fs optimized SQLite libraries
Merged LA.UM.6.4.r1-05700-8x98.0 Wi-Fi stack
1.0-rc1
Initial release
/* Magisk */
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
Reserved 4
WELCOME arter97! Love your work from Galaxy S3 times! Nice to see you here! ???
edit: waiting for that PA now ?
Version 1.0-rc1 has been quietly re-uploaded after confirming SafetyNet breakage and fixing it.
Please re-download if you experience CTS check failures.
Having devs like arter97 developing for OP5 is a great privilege and pride for OnePlus 5 owners.
Thanks for this new year gift @arter97!
i tried to flash on op5 decrypted on xxx 9.2 oreo and just kept rebooting. tried to boot with and without no verity
i know im not officially supported, but im reporting just to share
Won't boot (OB3)
I confirmed boot with official Oreo on the OnePlus 5 and Open Beta 1 on OnePlus 5T.
I'm gonna need some more feedback..
I also tried on xxx and had the same problems as red. Also tried with and without no_verity zip. Tried with IBE's and codeworkx TWRP. Had to dirty flash Rom again because elementalX would stick/boot after trying.
Doesn't boot here on my 5T when trying to root with Magisk 15.0. It's fine if it's not rooted.
Dariusdd said:
Doesn't boot here on my 5T when trying to root with Magisk 15.0. It's fine if it's not rooted.
Click to expand...
Click to collapse
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Sent from my ONEPLUS A5000 using Tapatalk
fjsferreira said:
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Click to expand...
Click to collapse
It isn't. Running 15.2...... No boot
Yup can confirm with root (Magisk and SuperSU) it doesn't boot on my 5t. With blu kernel it's booting with or without root. Just to let you know. Really nice to have a Dev like you here. Thanks .
fjsferreira said:
Magisk is the issue. Try latest 15.2, it's supposed to fix issues on the op5 and 5t
Sent from my ONEPLUS A5000 using Tapatalk
Click to expand...
Click to collapse
Ehe! It's even worse with 15.2, it doesn't even bother getting to the oneplus logo. It stays with a black screen and the notification light on white, probably qualcomm mode.
With 15 it was at least getting to the logo, and it got stuck there. It wasn't tested anyway, so it's not unexpected.
SuperSU 2.82 SR5 is also not working. That's too bad, as the phone was flying when using the kernel.
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
arter97 said:
Magisk is not yet properly supported due to heavy modification to ramdisk.
Obviously, I'm not going to ask the Magisk developer to support my kernel.
I'll be looking into supporting both non-Magisk and Magisk user with the same boot.img.
Until then, Magisk users can use this : http://arter97.com/browse/op5/kernel/magisk
(Magisk-integrated boot.img)
Flashing Magisk ZIP file on top of my kernel will result in boot issues for now.
Click to expand...
Click to collapse
Flashed magisk integrated boot.img and i can't pass the oneplus logo, it boots into twrp directly.
The version modified with magisk is working fine for me on my 5T.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Introducton
Code:
/*
* Your Warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this kernel
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
In this kernel, I strive for balance battery / performance, as well as it contains the latest patches for Linux and CAF.
Kernel i make for AOSP Q with Q blobs. How each version on MIUI Q works, i don't know and me it not interesting (if you want use this kernel, you always can flash and test, pls don't report what something don't work on MIUI).
Features:
Base on last sdm845 Q CAF tag
Merge Google Common 4.9-q
Upstream last linux version
Compiled with Proton Clang and Full LTO, LLD links, Shadow Call Stack (SCS) and RELR enabled.
Enable support for NTFS r/w, sdFAT filesystem, F2FS and Implement rapid GC
Kcal Advances Color Control
Enable TTL target
Sound Control by flar2
Add Wireguard Driver
Enable support Sony Dualshock PS3/PS4 and Xbox Controller
Disable unused drivers
Scheduler/schedutile improved (WALT)
SchedTune Assist and CPUSet Assist
Enable select TCP algorithm, westwood by default
Network Signal Guru app compatible.
Simple LMK
Optimize for Android Q
Many tweaks/optimize for battery/performance
AnyKernel3 flashable zip by osm0sis
Installation:
Flash in TWRP recovery, then re-flash Magisk.
If another custom kernel (or my old version, up to 4.2 inclusive) is already installed, then you need to flash stock boot.img first, then magisk and my kernel.
Tuning apps:
FK Kernel Manager
EX Kernel Manager
Downloads:
SourceForge (new build 9.5+)
AndroidFileHost (old build)
My Telegram Group:
https://t.me/joinchat/DNw0ZFHSLa3ObU3noUhSwQ
If you like my work, you can buy me Сoffee
Credits:
Bruno Martins (bgcngm)
Nathan Chancellor (nathanchance)
Francisco Franco (franciscofranco)
Danny Lin (kdrag0n)
Park Ju Hyung (arter97)
All of developers contributions which i picked from.
XDA:DevDB Information
MiPa Kernel, Kernel for the Xiaomi Mi 8
Contributors
palaych
Source Code: https://github.com/palaych/mipa_kernel_xiaomi_sdm845
Version Information
Status: Stable
Changelog
V5.3:
Merge Linux version 4.9.171
Merge CAF tag 'LA.UM.7.3.r1-07400-sdm845.0'
Merge some CAF / Google patches
Merge some LineageOS repo commits
techpack: audio: checkout dipper-p-oos
Update code drivers by sultanxda
Add KLAPSE
Many other improves/fix
V5.2:
Removed a lot of useless and harmful patches
Crypto upstream bump
dipper: fix gps
Update cpu boost driver by sultanxda
Some other fix/changes
V5.1:
Merge Linux version 4.9.166
Merge many CAF patch
Upstream Google Common 4.9
Compile with Clang 9.0.2
Fix deepsleep with 898000.qcom,qup_uart wakelock
Add API to mark IRQs and kthreads as performance critical
V5.0:
Full re-write kernel tree, cleaner tree, removed many patch (useless and unnecessary), many other changes (patch's)
Merge Linux version 4.9.164
Compile with Clang 9.0.1
Updated Boost Drivers by sultanxda
V4.9:
Fix last merge caf/als
Updated fs/f2fs (support F2FS_FS_VERITY)
Compile with Clang 8.0.9
V4.8:
Upstream Linux version 4.9.161
Merge CAF tag 'LA.UM.7.3.r1-06900-sdm845.0'
V4.7:
Upstream Linux version 4.9.160
Update and clean cpu_input_boost / devfreq_boost drivers
Revert some tweaks
Some optimize in defconfig
Other tweaks/fix/etc..too lazy to write.
V4.6:
Upstream Linux version 4.9.155
Merge some last LOS commits
Revert: 'Dynamic SchedTune Boost v3'
Update cpu_input_boost driver
Some merge fix in wlan driver
Update camera drivers (cleaned patch)
Other tweaks/fix/etc..too lazy to write
V4.5:
Upstream Linux version 4.9.154
Merge last LOS commits
Add some tweaks/fix/etc..too lazy to write.
V4.4:
Merge tag 'LA.UM.7.3.r1-06700-sdm845.0'
Upstream Linux version 4.9.152
Tweaks tcp_westwood
Add Dynamic SchedTune Boost v3
merge some last los commits
revert gpu 180mhz
revert some sched tweaks
other changes/tweaks
V4.3:
Upstream Linux Version 4.9.151
Compile with Clang 8.0.7 and GNU GCC 8.2.1, add optimize for sdm845
GPU UC 180Mhz (test)
Enable LZ4 compression
Some update dts to dipper-p-oos
Fix Kcal
DTS: Adjust Energy Model to be inline with Pixel 3 (test)
Tweak's sched
Other changes
Updated drivers camera (maybe full fix portret mode in miui camera)
Full re-write boot scripts
V4.2:
fix freeze (don`t work) potrait mode in miui camera
some change/tweaks
disabled some debug in defconfig
block kernel wakelock 898000.qcom,qup_uart by default
add sound control by flar2
V4.1:
Update Linux version 4.9.148
drivers camera: checkout dipper-p-oos (fix OIS)
Enable support xbox controller
Some changes in anykernel2 script
V4.0:
Rebase on pie source (based on Bruno Martins commits)
Merge CAF tag 'LA.UM.7.3.r1-06600-sdm845.o'
Upstream Linux version 4.9.147
Compiled with Clang 8.0.6
Optimize defconfig
Add Boeffla Wakelock Blocker
Enable support for NTFS r/w
Enable support for sdFAT filesystem
Backlight Minimum Brightness Control
Kcal Advances Color Control
Enable ttl target
Vibration Control
Add Maple I/O Scheduler
Add Wireguard Driver
Enable support Sony Dualshock PS3/PS4
Boost Drivers by sultanxda
Fix Source Code
Some tweaks for battery/performance
Work only on Android Pie
V3.6:
upstream linux version 4.9.140
removed boost drivers by sultanxda and some others tweaks
enable support sony controller (usb)
compile with Linaro 7.3.1
V3.5:
compiled with GNU GCC 8.2
merge commits binder
merge commits sdcardfs
merge linux version 4.9.137
merged tag "LA.UM.6.3.r4-05800-sdm845.0"
boost drivers by sultanxda
merge los commits fs: sdfat
V3.4.2:
compiled with GNU GCC 8.2.1
add cortex-a75/a55 flags
some fix source code
merge latest los commits
V.3.3.1:
update camera driver (fix ir camera, miui face unlock now work)
V.3.3:
add i/o schedulers maple (by default)
Kcal Advances Color Control (experimental features)
Vibration Control (experimental features)
Backlight Minimum Brightness Control (experimental features)
schedutil tweaks
fix brightness led notification (polaris)
maybe something else...
Reserved
Welcome ! Great work
Thank you so much. Welcome aboard. Will try as soon as the bootloader unlock waiting time ends.
Great news!!! Thank you so much.
Can't wait to IR Camera on MIUI working to be a tester. That's really useful to me
chediak said:
Can't wait to IR Camera on MIUI working to be a tester. That's really useful to me
Click to expand...
Click to collapse
I see on github driver ir sensor, on next version add, maybe will work
thanks bro
Waiting for the bootloader unlock also.
excited that we are getting more devs interested in developing for the Mi8
im also waiting for bootloader unlock
can u add wireguard support also
thanks
saikoz said:
can u add wireguard support also
Click to expand...
Click to collapse
already add in next version, forgot to turn on immediately
MiPa Kernel update:V3.3:
add i/o schedulers maple (by default)
Kcal Advances Color Control (experimental features)
Vibration Control (experimental features)
Backlight Minimum Brightness Control (experimental features)
schedutil tweaks
maybe something else...
Downloads:
https://yadi.sk/d/z4ukZOA16UzE_A
https://androidfilehost.com/?fid=11410932744536988805
P.s. in next versions will update camera drivers based on stock source dipper and then ir camera will have to work fully
Me for coffee and buns for more productive work:
http://paypal.me/palaych
palaych said:
MiPa Kernel update:V3.3:
maybe something else...
Click to expand...
Click to collapse
lol. U didn`t know changes in own develop?
peppercute said:
lol. U didn`t know changes in own develop?
Click to expand...
Click to collapse
Well when you develop kernel you can easily forgot what you added etc
Or it's maybe a hidden surprise feature ?
Also you can check on GitHub what he changed ?
Is it possible to set charging speed with this kernel? I'd like to lock it at 1000mA, since I mainly charge with my powerbank and slower charge is better for battery
3lambda said:
Well when you develop kernel you can easily forgot what you added etc
Click to expand...
Click to collapse
yes, there are a couple of files in which I don’t remember what I was doing
and i not commits this files
MiPa Kernel v.3.3.1:
update camera driver (fix ir camera, miui face unlock now work)
Dowload:
https://yadi.sk/d/K5fTOFPng5_FSA
Me for coffee and buns for more productive work:
http://paypal.me/palaych
Any chance for ursa support ?
MiPa Kernel v.3.4.2:
compiled with GNU GCC 8.2.1
add cortex-a75/a55 flags
some fix source code
merge latest los commits
Dowload:
https://yadi.sk/d/h2K6fYo4k0CkKA
https://www.androidfilehost.com/?fid=11410932744536995923
Me for coffee and buns for more productive work:
http://paypal.me/palaych
Kernel Adiuto
Kernel Adiutor non save on reboot
Development has stopped - see my last post HERE.
Introduction
Hello everyone, this is my personal kernel for the OnePlus 9 Pro.
My philosophy on the kernel is pretty simple, intended to replace the stock kernel, but with a lot of under-the-hood tweaks.
Hopefully you will all enjoy!
Important thread information!
I refuse to acknowledge/respond to bug reports that do not include clear steps to reproduce, a logcat, and a console ramoops (if random rebooting) or a dmesg (any other issues). Follow this guide to do this.
Keep things civil, no flaming in the forums!
Features
Up to date with OxygenOS 11 source
Compiled with Google's Clang toolchain for maximum stability, with all warnings and errors fixed
Compiled with Clang's cortex-a55 optimizations
Many tweaks under the hood for smoother UX, lower battery drain, etc.
Westwood as the default congestion algorithm (BBR is also available)
Available to flash with AnyKernel3
Latest kernel release on GitHub
LINK
Source
Omega GitHub: https://github.com/kristofpetho/kernel_oneplus_sm8350
Omega originally sourced from: OnePlusOSS
Thanks where it's due
@pyry666 for all his help getting me logs after logs after logs. Without him this wouldn't have been possible!
@Burt Squirtz and @crashazz3 and @TheKnux for helping to test
Kerneltoast for his extreme patience and guidance
osm0sis (for AnyKernel3)
@eng.stk for finding a way to have proper hardware detection working
Releases
September 18 - download HERE
- Pulled in patch from Google to make cpufreq stat collection less CPU-hungry (smoothness)
- Pulled in 3 Clang/LLVM stability fixes from upstream Linux
- Pulled in a patch for better power consumption when vibrations are enabled (from arter's source)
August 14 - download HERE
- Merged in OOS 11.2.8.8 sources
August 7 - download HERE
- Build with Google's Clang 13.0.1, updated Binutils to 2.37
- Pulled in 5 code fixes from CAF for display driver
- Pulled in 2 logic fixes from CAF for display driver
- Pulled in 3 various CAF stability fixes
- Fixed a dmesg error message with a commit from upstream Linux
- Removed all android_fs tracing from the ext4 and f2fs filesystem drivers
July 30 - download HERE
- Various coding fixes
- 5 code fixes from CAF
- A codefix from upstream Linux
- Enabled support for TTL spoofing
July 12 - download HERE
- Using Clang to compile (stability reasons)
- Tweaked Clang's LTO for better performance
- Re-enabled Oneplus's TPD module (stability reasons)
- Pulled in 3 stability fixes from CAF
- Re-enabled watermark boosting - now that a fix for it is available in upstream
July 7 - download HERE
- Further tweaks to GCC's O3 optimization level
- Pulled in a number of stability fixes from CAF
- Pulled in a UFS system fix from CrDroid kernel
- Removed even more logging from the kernel when the phone is not connected to WiFi
- Reverted to Westwood as default TCP congestion - BBR is still there and can be enabled
- Disabled OnePlus's TPD module - this was responsible for limiting apps' CPU placement, as reported by multiple news outlets
June 24 - download HERE
- Using stable GCC toolchain again - with newest patches it simply performs better than any Clang build
- Added a few stability fixes from upstream
- Added a few compiler tweaks for better overall performance
June 13 - download HERE
- Fixed major network error where userspace was trying to modify network settings but the kernel wasn't allowing it
- Pulled in a fix from CAF to improve/lower battery drain
- Updated Wireguard module to latest version
- Built using Google's latest Clang (12.0.6)
- Enabled all Clang internal optimizations (reverted a crazy CAF patch disabling them), and fixed all subsequent code errors
- Fixed an IRQ saving issue found via lockdep (upstream)
June 2 - download HERE
- Disable watermark boosting for significantly lower CPU usage during day-to-day use
- Further tweaks to memory management
- Removed USB webcam drivers
- Updated with OOS 11.2.6.6 kernel sources
- Fixed hardware detection algorhythm (kernel should now work on both the 9 and 9 Pro)
May 29 - download HERE
- Compiled again with GCC, without LTO
- O3 optimization enabled for all warnings/errors fixed
- Fixed charge throttling as well as thermal throttling during charging
May 25 - download HERE
- Built using Google's Clang
- O3 optimization, ThinLTO, SCS, CFI all enabled (like stock)
- Uses modules from userspace for maximum stability
- Fixed thermal throttling issues
- Fixed Warp Wireless charging issues
May 18 - download HERE
- Reverted to using Clang + ThinLTO (this seems to fix camera issues people were seeing)
- Fixed a scheduler regression that was introduced in the 5/12 build
May 16 - download HERE
- GCC LTO implemented
- GCC O3 optimization (together with LTO results in significant improvement of hackbench scores)
- Wireguard added
- Anykernel 3 updated
- Critical and stability fixes from CAF
- More code fixes based on GCC's diagnostics
- Significant improvement to ZRAM speed
May 12 - download HERE
- Updated to latest OOS sources for 11.2.5.5
- Updated GCC toolchain to 11.1.0, and fixes all new code warnings
- Disabled some unnecessary tools in the kernel that are not needed for Android
- Remove all debugging from the WLAN driver
- Remove all debugging from the Camera driver
- Pull in 2 scheduler fixes from CAF for load balancing
- Disable hardware intergrity checking driver that polled the hardware every 5 seconds for errors
May 5 - download HERE
- Now built with GCC 10.3.0, since it's better. No other reason. Linux is also built with GCC, so there you have it.
- Fixed all code warnings and errors that GCC found (it found a LOT)
- Switched to BBR congenstion control. Much better throughput on bad quality networks.
- Removed a ton more debugging
May 2 - download HERE
- Initial release with Clang 12.0.5 from Google, all code warnings and errors fixed
- Tons of debugging removed from the kernel for a smoother experience
First custom kernel is ready for the 9 Pro!
IMPORTANT - this will NOT work on a standard Oneplus 9, only the 9 Pro!!!
Changelog:
- Initial release with Clang 12.0.5 from Google, all code warnings and errors fixed
- Tons of debugging removed from the kernel for a smoother experience
Enjoy!
Hi! Thanks for your contribution and kicking off custom development of the 9 pro!
I am very much new to the OnePlus device platform and I have no clue how to install this. Can you please provide some steps or guide as to how can I install this ?
oddlyspaced said:
Hi! Thanks for your contribution and kicking off custom development of the 9 pro!
I am very much new to the OnePlus device platform and I have no clue how to install this. Can you please provide some steps or guide as to how can I install this ?
Click to expand...
Click to collapse
Once you are bootloader unlocked and rooted on your 9 Pro, the easiest way to install is to flash the zip through a kernel manager, such as exkm/franco kernel manager. Take a backup of your stock boot.img as well.
Once flashed, reboot, profit!
Running 11.2.4.4 with Omega on my 9 Pro
Thanks Kristof!
Awesomely Smooth experience.... as usual.
Thanks Kristof!
LE2120 running 11.2.4.4 DA and OMEGA!
avid_droid said:
TCP congestion is on cubic.
Click to expand...
Click to collapse
Thanks. Fixed in next build.
Thanks.just flashed on le2123 with 11.2.2.4 ba.
Cheers dev
Flashed and all good on 9 pro 1.1.4.4 eu
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just use a flasher, right?
Thanks...
Flashing your kernel in my New op9 pro
Awesome, thank you; device is suppose to arrive this week. Thank you for sharing
Reddit3321 said:
Once you are bootloader unlocked and rooted on your 9 Pro, the easiest way to install is to flash the zip through a kernel manager, such as exkm/franco kernel manager. Take a backup of your stock boot.img as well.
Once flashed, reboot, profit!
Running 11.2.4.4 with Omega on my 9 Pro
Thanks Kristof!
Click to expand...
Click to collapse
Just to ad this few steps. Kernel is SAFE but take EFS and PERSIST back up also..Still have nightmares with oneplus 8 pro.. LoL
pyry666 said:
Just to ad this few steps. Kernel is SAFE but take EFS and PERSIST back up also..Still have nightmares with oneplus 8 pro.. LoL
Click to expand...
Click to collapse
How to safe persist and EFS?
Sconny said:
How to safe persist and EFS?
Click to expand...
Click to collapse
Not want to be rude or anything but just use search. You can do those back ups easilly. And please dont do things that can potentially brick your device. No pun intended. Read read read. You cant never be too smart. Sorry about the rant
Flashed, running smooth all day. Thanks for sharing your work.
And it will not work for the regular 9? for the 8 and 8pro they were unified
mattie_49 said:
And it will not work for the regular 9? for the 8 and 8pro they were unified
Click to expand...
Click to collapse
It will not. I had to hard code some hw info detection specific to the 9 Pro's display.
Great
kristofpetho said:
It will not. I had to hard code some hw info detection specific to the 9 Pro's display.
Click to expand...
Click to collapse
And this took a lot swet and tiers. Many reboots and cursing. LOL
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
arter97 kernel for OnePlus 9 series running OxygenOS
/* Features */
Supports OnePlus 9 series
Fully rebased kernel without unnecessary OnePlus code
Latest CAF msm-5.4 kernel fully merged
Latest Linux v5.4 subversion merged
Latest Google’s security fix merged
BBR as the default TCP network congestion control
Features the latest WireGuard
Modules support disabled for lighter kernel
Latest Wi-Fi drivers from Qualcomm with customized config
Built with Clang 13 and ThinLTO
Power optimizations
Memory management optimizations
Latest SELinux subsystem backported from mainline
Latest f2fs backported from mainline
Latest BFQ I/O scheduler backported from mainline
mmap/mremap backported from mainline for a major performance boost
Touchscreen optimizations for lower latency
Uses LRNG for better performance
/* Details */
- Fully rebased kernel without unnecessary OnePlus code -
This kernel is not based on the stock OxygenOS kernel source provided by OnePlus. Instead, it’s based on the latest and greatest Qualcomm has to offer. Only the necessary parts from the OnePlus kernel have been cherry-picked, such as OnePlus 9 specific device drivers.
This effectively kills all kernel modifications/optimizations from OnePlus, including the infamous app throttler.
Due to the completely different base, this kernel will behave drastically different from other kernels, in both good and bad ways.
- Power optimizations -
This kernel makes some conscious decisions for reducing power consumption.
First, the stock OnePlus configuration forces display-related processes to use the big cores exclusively.
This configuration brings a huge power regression since it makes every frame dispatch to wake up and use the power-hungry cores.
This kernel resets this profile to use the configuration Google recommends, which is to use the LITTLE cores exclusively instead. (Reverted in r2 as it seems like that little cores aren't enough to drive 120 Hz fluidly.)
This kernel allows these processes to use little and middle cores (0-6), depending on the load.
Second, this kernel disables wakelocks upon Wi-Fi’s RX unicast packet transmissions. qcom_rx_wakelock is one of the major culprits to increased idle power consumption. Although its total wakelock time is quite low, it's catched very frequently and prevents the system from entering suspend repeatedly.
As dropping unicast or local ARP packets doesn’t pose practical issues on Android, this kernel disables qcom_rx_wakelock.
Third, this kernel reduces the duration of the Bluetooth ISR wakelock from 2 seconds to 100ms. This was done from an observation that the average userspace response time from ISR is less than 10ms.
My kernels have been doing this for years and no Bluetooth-related issues were reported.
Fourth, the vibrator driver used in this kernel no longer controls the cpuidle driver. The stock kernel disables the cpuidle whenever the vibrator is used. This kernel disables it as the vibrator is not that sensitive to deadline misses.
There are other small improvements throughout the kernel tree as well.
- Memory management optimizations -
This kernel marks the first Linux v5.4 based Android kernel to have MGLRU backported.
MGLRU is a big deal in everything Linux related, especially for Android.
Esper have a great article on what is MGLRU in a nutshell: https://blog.esper.io/android-dessert-bites-22-linux-memory-management-38419756/
TL;DR:
According to Google’s fleetwide profiling, multi-generational LRU yields an “overall 40% decrease in kswapd [the kernel daemon that manages virtual memory] CPU usage,” an “85% decrease in the number of low-memory kills at the 75th percentile,” and an “18% decrease in app launch times at the 50th percentile.”
Click to expand...
Click to collapse
This kernel also disables LMKD and uses an in-kernel solution called SimpleLMK, made by kerneltoast. You can track how often SimpleLMK kicks in by monitoring:
Code:
/sys/module/lowmemorykiller/parameters/lmk_count
This kernel also changes a lot related to swap and zram.
The swap-related code has been backported from Linux v5.9 (link1, link2) to efficiently support fast swap device and allow swappiness over 100. This kernel currently sets swappiness to 160 on < 6GB of RAM, 120 on 8GB and 90 on 12GB.
zram has been also backported from mainline Linux and further tweaked to use block device writeback. This is equivalent to the recent “RAM Plus” feature that companies have been marketing that uses the internal storage to extend RAM.
This kernel uses zram writeback to offload idle pages (i.e., really, really unused RAM) to the internal storage. As it's extremely slow to bring pages back from UFS, writeback code works quite conservatively. It'll start to writeback pages that haven't been used for a day or two. It makes use of the hidden 2GB “last_parti” partition from the UFS storage.
Along with zram writeback, this kernel also enables deduplication with xxHash. Each page stored in zram is checked for deduplication to further save memory. With these 2 features combined, RAM reaching 1GB is additionally saved, but your mileage may vary.
zram writeback is temporarily disabled to avoid lags on long uptime with r20.
The post boot script used in the stock ROM is also overridden and it sets the readahead to 128KB. As I/O workload under Android is mostly random, high readahead doesn’t help and only increases memory thrashing.
This kernel also incorporates a lot of patches to reduce/optimize memory allocations used throughout the entire kernel.
mmap/mremap code was also backported from Linux v5.10 to optimize ART (see here for more info).
- Latest subsystems -
This kernel backports the SELinux subsystem from mainline Linux. This includes caching improvements that drastically reduces time spent on lookups. 10K lines of code has been changed.
This kernel also backports f2fs (Flash-Friendly File System) from mainline Linux. This includes bug fixes and performance improvements such as shorter discard latency, more optimized GC logic for Android, and checkpoint merging.
BFQ I/O scheduler has also been backported from mainline Linux for better I/O performance.
- LRNG -
This kernel ditches the traditional RNG driver from the Linux kernel in favor of LRNG. See here and here for more info.
A rudimentary throughput benchmark shows an improvement of 10.5% (keep in mind that this is only one aspect of an RNG metric).
- Battery charging management -
- Battery charging code has been backported from OxygenOS 12. There are numerous fixes there.
- A case where the charger negotiation doesn't go smoothly, the stock kernel will have the charging current limited for prolonged time instead of retrying. This kernel retries AICL right after re-negotiation, so the charging speed will be fixed for this particular case.
- Users can now unlock 27W (9V 3A) charging through USB-PD. From my testing, the battery charges 2% per minute.
Most decent USB-PD chargers should be capable of 27W (including all PD chargers that I personally own), but do note that this is dangerous if you connect to a non-27W capable charger (i.e., 3A unsupported on the 9V voltage profile) when this is enabled.
Write 0 to /sys/modules/oplus_chg/parameters/limit_pd enable this new behavior.
- OnePlus lowers the temperature limit when the screen is on for cooler user experience. Users can now also change this behavior and allow the device to get a little hotter by forcing the kernel to behave the same during screen-on and screen-off.
This is not dangerous but it'll obviously mean the device will be hotter when you use it and charge it simultaneously.
Write 1 to /sys/modules/oplus_chg/parameters/ignore_screen_state to do this.
- This build now disables surface temperature monitoring in the charging code for non-SuperWarp chargings. This mechanism is a separate one from what's described above, and I've personally ran into multiple charging annoyances due to this, resulting in a super slow 3W charging when I need to charge urgently.
OnePlus have set the threshold too low, resulting in real charging issues in practice. This behavior is somewhat lifted with OxygenOS 12, and my kernel takes it further and removes it entirely for non-SuperWarp charges as other perfectly fine safety mechanisms exist.
See the commit for more details:
oplus_chg: disable non-swarp strategy policies · arter97/[email protected]
This mechanism serves to limit the charging current (not input current) depending on the surface temperature, but it fails in practice for so many different reasons. First, the input current is st...
github.com
/* Notice */
OxygenOS 12 is unsupported.
Non-OxygenOS custom ROMs are supported, but your mileage may vary wildly. Most notably, gesture orientations on some ROMs may be inverted.
Custom ROMs that uses OxygenOS 12 kernel, including LineageOS 19.1, are not supported.
This kernel touches vendor_boot and dtbo partitions, meaning you'd need to restore said partitions whenever you're switching to another kernel or stock.
Please make a back-up of these partitions. The installer doesn’t do this automatically for you. Installing the stock ROM with a full OTA restores said partitions as well.
/* Disclaimer */
Your warranty is now void.
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research if you have any concerns about features included in this kernel
before flashing it! YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
/* Thanks to */
Vishalcj17
kristofpetho
kdrag0n
kerneltoast (SultanXDA)
/* Instructions */
1. Read the above. Please.
2. Flash the zip file from FK Kernel Manager. Any other installation methods are untested.
/* Downloads and links */
arter97.com
Kernel source
Telegram chat link
/* Changelog */
r27
Simple LMK fix merged (lesser app kills)
Built with LLVM 16.0.3 compiler
LA.UM.9.16.r1-13100-MANNAR.QSSI13.0 merged
Linux v5.4.242 merged
f2fs fixes merged from Linux v6.4
Wi-Fi drivers updated to 2.0.8.32U
r26
Switched to LLVM 16 compiler
Merged a few GPU improvement patches from Snapdragon 8 Gen 2 kernel
Removed unnecessary overhead from kmap_atomic() for better performance
Fixed a kernel panic from connecting USB peripherals
Merged latest memory-management fixes
LA.UM.9.16.r1-12900-MANNAR.QSSI13.0 merged
LA.UM.9.14.r1-21300-LAHAINA.QSSI12.0 merged
Linux v5.4.237 merged
Latest exFAT from Linux v6.3 merged
Latest f2fs from Linux v6.3 merged
Wi-Fi drivers updated to 2.0.8.32R
2023-03-05 security patch merged
r25
Applied memory-management patches from kerneltoast to improve responsiveness (ported by Kaz205)
Added a workaround to f2fs to perform GC better
Merged latest memory-management fixes
LA.UM.9.16.r1-12700-MANNAR.QSSI13.0 merged
Linux v5.4.228 merged
Latest exFAT from Linux v6.2 merged
Latest f2fs from Linux v6.2 merged
Wi-Fi drivers updated to 2.0.8.31V
2023-01-05 security patch merged
r24
Disabled DFS on AP mode to remove 60 seconds delay on hotspot activation
LA.UM.9.14.r1-20800-LAHAINA.QSSI13.0 merged
Linux v5.4.224 merged
Latest exFAT from Linux v6.1 merged
r23
Reverted a commit that can cause CPU temperature monitoring issues
Memory management fixes merged made from upstream
Latest MGLRU patches merged (1669 lines changed)
Battery percentage report fixed (from LineageOS)
Battery charging code backported from OxygenOS 12
Fixed a stock kernel bug where charging current is limited for a prolonged time
27W (9V 3A) USB-PD charging unlocked (should be manually enabled)
Added screen-state-aware charging toggle
Surface temperature monitoring disabled for better charging
Now built with the latest Clang 15.0.3
Some patches merged from Amazon AWS Linux fork
RTL8152/8153 drivers updated to v2.16.3
Some patches merged from a downstream fork, made by buzzcut_s
LA.UM.9.14.1.r1-07500-QCM6490.QSSI13.0 merged
Latest f2fs from Linux v6.1 merged
Linux v5.4.222 merged
Wi-Fi drivers updated to 2.0.8.31H
Latest exFAT from Linux v6.0 merged
2022-10-05 security patch merged
Latest WireGuard merged
r21
Proactive compaction backported for better long-term performance
Switched I/O scheduler from BFQ to Samsung's SSG for lower CPU overhead and better Android-specific optimizations
Wi-Fi drivers updated to 2.0.8.30E
RTL8152/8153 drivers updated to v2.16.1
Latest f2fs fixes from Linux v5.19 merged
Some patches merged from a downstream fork, made by buzzcut_s
Storage performance improved (fuse)
HL/HMARK netfilter modules enabled for TTL modifications (hotspot)
r20
Backported MGLRU (a major change)
Fixed full system crash on some custom ROMs (by LibXZR)
Added a few memory patches to improve responsiveness (by kerneltoast)
Fixed page allocation failures introduced from mainline
SimpleLMK re-enabled after fixing soft random reboots
Fixed excessive RMNET_DFC wakelock
Fixed OnePlus charging code to handle worker failure
Backported updated arm64 memory functions for better performance
Disabled REFCOUNT_FULL to optimize performance over security
Tuned swap/zram configurations
Disabled zram writeback to avoid lags on long uptime
Optimized pstore for better performance
Added haptic level adjustment by flar2
Reduced memory usage by matching CONFIG_CMA_AREAS to minimum required
Re-enabled arm64 erratum that was previously disabled by mistake
Fixed rare random reboots (zsmalloc patch by kerneltoast)
Backported more BFQ commits from mainline
Backported mm/mremap fix from mainline
Now built with the latest Clang 14.0.7
Device-tree updated to LA.UM.9.14.r1-19300-LAHAINA.QSSI13.0
LA.UM.10.9.1.r1-02800-QCS610.0 merged
LA.UM.9.16.r1-11000-MANNAR.0 merged
Latest f2fs from Linux v5.19 merged
Linux v5.4.197 merged
Wi-Fi drivers updated to 2.0.8.29W
Latest exFAT from Linux v5.19 merged
Latest LRNG v45 merged
2022-06-05 security patch merged
r12
Fingerprint code merged with latest the LineageOS
90 Hz timing removed for custom ROMs to avoid noticeable gamma shifts
Now built with the latest Clang 13.0.3
Linux v5.4.186 merged
Latest exFAT from Linux v5.18 merged
LA.UM.9.14.r1-19300-LAHAINA.QSSI13.0 merged
Wi-Fi drivers updated to 2.0.8.27T
r11
Added support for non-OxygenOS, custom ROMs (screen-off gesture orientations may be inverted)
Added a workaround to prevent soft random reboots due to memory management
Fixed a fingerprint-related memory-leak from OnePlus display source code
Merged a few f2fs patches to improve responsiveness
Backported more BFQ commits from mainline
Backported mm/mremap fix from mainline
Latest WireGuard merged
LA.UM.9.16.r2-03700-MANNAR.0 merged
Linux v5.4.184 merged
Wi-Fi drivers updated to 2.0.8.27S
2022-03-05 security patch merged
r10
Bug-fix, stable release
r8
Fixed r7's memory optimizations
Merged latest exFAT
r7
Fixed a SELinux memory leak that happened since r1a12 (thanks to @Kaz205 for reporting and testing)
Merged some memory operation optimizations
Further improved the workaround to fix unwanted doubles presses from the power button
r5
LA.UM.9.16.r2-03500-MANNAR.0 merged
Linux v5.4.179 merged
Wi-Fi drivers updated to 2.0.8.26Z
2022-02-05 security patch merged
Backported UNIX socket latency optimization from Linux v5.17
r4
Fixed lmkd not working, resulting in freezes
Minor performance and power optimizations
Linux v5.4.175 merged
r3
SimpleLMK disabled for now to fix random soft reboots
Fixed random app crashes and freezes due to op_cgroup
Bluetooth drivers re-worked to fix Bluetooth-related issues
USB malfunctions fixed (dwc3)
LA.UM.9.14.r1-18900-LAHAINA.0 merged
LA.UM.10.9.1.r1-00800-QCS610.0 merged
Linux v5.4.174 merged
Wi-Fi drivers updated to 2.0.8.26T
2022-01-05 security patch merged
Latest WireGuard merged
Latest f2fs from Linux v5.17 merged
Latest LRNG v43 merged
Read-write semaphore backported from Linux v5.16 to improve smoothness under heavy I/O
Now built with the latest Clang 13.0.2
Disabled SLUB per-CPU partial caches for better latency (by Sultan)
r2
Display-related processes are now allowed to use the middle cores as well for better smoothness
Enabled more mremap() performance improvement that was missing from r1
LA.UM.9.14.r1-18400-LAHAINA.0 merged
LA.UM.9.16.r1-08100-MANNAR.0 merged
LA.UM.10.9.1.r1-00300-QCS610.0 merged (contains a lot of new improvements including power optimizations)
Linux v5.4.159 merged
Wi-Fi drivers updated to 2.0.8.25M
2021-11-06 security patch merged
Watermark boosting disabled to fix aggressive app killings (by Sultan)
Workaround added to fix unwanted doubles presses from the power button
r1
First stable release
Reserved 2
Reserved 3
Holy **** this is exciting. This kernel is the one that I ran back on my OP7P and it's why I loved that phone so much. Is the 9 why you stopped development on that device?
Nice to see your kernel here in the 9 Pro forums! Kudos
Thanks for this!
Cheers!! Already running since r1a1.
Very Nice, this kernel will have agressive ram management like oppo?
Damn! Nice, arter.
Will work on android 11 right?
Mangtas_666 said:
Will work on android 11 right?
Click to expand...
Click to collapse
First post: Only OxygenOS on Android 11 is supported.
So awesome to see arter97 here.
Anyone running this yet? If so how is it? Thinking of flashing this on stock 11.2.9.9
Woa nice to see you here! Thank you
Does vendor _boot get altered after flashing kernel meaning flash back untouched backed up vendor boot to take next ota?
Mangtas_666 said:
Will work on android 11 right?
Click to expand...
Click to collapse
All OP9P phones run Android 11. This kernel is made for the OP9P. How can it not work on Android 11?
mattie_49 said:
Does vendor _boot get altered after flashing kernel meaning flash back untouched backed up vendor boot to take next ota?
Click to expand...
Click to collapse
Was using this kernel briefly, and just updated to 11.2.9.9 (Global), had to flash stock vendor_boot, dtbo, and boot to be able to upgrade.
lendawg said:
Anyone running this yet? If so how is it? Thinking of flashing this on stock 11.2.9.9
Click to expand...
Click to collapse
During my brief time using the kernel, had a minor issue whereby AUX (via USB-C) in my car wasn't working.
BTW thanks for the awesome kernel, planning to use it once wireguard support is added!
Another new alpha build is up with big changes yet again.
I still have quite a few TODOs left, but I ported many changes from my OnePlus 7 Pro kernel.
Wi-Fi will behave differently with this kernel, so please let me know if you encounter Wi-Fi issues.
r1a7
Wi-Fi configuration merged with the latest CAF
Wi-Fi's rx_wakelock disabled and removed
Support for WireGuard added
Bunch of memory optimizations
Bunch of optimizations for screen and the GPU driver
Does kernel support k-cal colors and additional wakelocks blocking than said in Op?