[KERNEL][Affinity Kernel][OP5/5T][OOS/Custom][4.4.178][6 Apr]

Drop EAS?

  • Yes

    Votes: 6 35.3%
  • No

    Votes: 11 64.7%

  • Total voters
    17
  • Poll closed .
Status
Not open for further replies.
Search This thread

KaszasM

Senior Member
This issue has occoured for me on LOS multiple times even on a stock kernel. Seems to be a ROM-side problem on LOS based ROMs but who knows.
hi my experience is :

oos even stock kernel
on encrypted phone:

u will see phone starting msg always if u got your sd 30gb+
without screenlock is always there ,with any lock its "shorter". time is the same - lock appears.
it gets longer if i add to my sd card 40gb movie, i believed its the mediascan, or any parallel bgtask wich runs under boot.

Something is wrong on kernel side,

(first boot is fine)
but then
boot takes forever, wifiscan takes forever,
and my phone gets connected always to a 2.4ghz , not to the 5ghz.basicl it grabs the first 2.4 and stops scanning.
compared to stock kernel:
wifiscan very slow (always),
on boot wifi turning on "much later"

isnt that just because the cpu freq is set from boot 19xx or i cant get stick any higher freq at boot

thanks
 
Last edited:

KaszasM

Senior Member
Affinity Kernel r24 is up! :)

Here's the changelog:
  • Upstreamed to Linux 4.4.178
  • IRQ framework improvements
  • Fixed the a800000.ssusb wakelock
  • KLAPSE updated
  • Fixed panel modes on OOS
  • Potential mdss buffer overflow fixed
  • Limited the CPU clock-rate to 10ms instead of 50usec
  • Hopefully fixed the 5GHz WLAN connecting delay
anyone else boot problems on OOS Stable OP5?
i can dirty flash oem rom every other kernel boots up , r24 pushes to Fastboot menü, boots only if i change/push other boot img to system (tryd r23/oos/ smartpack /exkernel) all imgs boots (so bug is in img ) or in my phone but ...
can someone confim thanks
 
Last edited:

flatratte82

Senior Member
Dec 15, 2010
164
56
anyone else boot problems on OOS Stable OP5?
i can dirty flash oem rom every other kernel boots up , r24 pushes to Fastboot menü, boots only if i change/push other boot img to system (tryd r23/oos/ smartpack /exkernel) all imgs boots (so bug is in img ) or in my phone but ...
can someone confim thanks

R24 runs fine on my OP5 with OOS 9.0.4. At least until now.

Edit:
The 1st boot was fine and everything worked perfect.
But I just did a reboot and the pone boots to fast boot mode :(
 
Last edited:
  • Like
Reactions: KaszasM

KaszasM

Senior Member
My Battery setup with exkernel.
I use 60sec delay to use the full cpu on boot

Screenshot_20190414-150539.jpegScreenshot_20190414-150527.jpegScreenshot_20190414-150511.jpegScreenshot_20190414-150723.jpeg
 
Last edited:

archz2

Senior Member
Jan 25, 2013
273
31
New Delhi
On my OnePlus 5T, I'm running stock Oxygen OS 5.1.7 running Oreo 8.1.0. I have rooted it via Magisk. Currently running Magisk 20.1 with Magisk Manager 7.4.0. I have also flashed xposed on it via Magisk.

I have never flashed a kernel before. So, after backing up the boot, I should follow the following steps.

Please correct me if I'm wrong.

1. Disable xposed framework via the switch in the xposed app itself.
2. Reboot to system.
3. Reboot to TWRP, then flash the affinity kernel zip, (EAS variant).
4. Clear cache and dalvic.
5. Flash latest stable Magisk zip that I downloaded before starting this entire process.
6. Clear cache and dalvic. Boot to system.
7. Done.
 

Z-Blade

Senior Member
Jan 29, 2012
556
245
Perth
On my OnePlus 5T, I'm running stock Oxygen OS 5.1.7 running Oreo 8.1.0. I have rooted it via Magisk. Currently running Magisk 20.1 with Magisk Manager 7.4.0. I have also flashed xposed on it via Magisk.

I have never flashed a kernel before. So, after backing up the boot, I should follow the following steps.

Please correct me if I'm wrong.

1. Disable xposed framework via the switch in the xposed app itself.
2. Reboot to system.
3. Reboot to TWRP, then flash the affinity kernel zip, (EAS variant).
4. Clear cache and dalvic.
5. Flash latest stable Magisk zip that I downloaded before starting this entire process.
6. Clear cache and dalvic. Boot to system.
7. Done.

With kernels, 99% of the time you can just simply flash and that is all you need to do. You don't need to worry about everything else you mentioned, just do step 3 and step 4 is optional but not needed.
 

Oswald Boelcke

Forum Moderator / Recognized Translator
Staff member
  • THREAD CLOSED as non-compliant with GPLv2! Download link removed.

    @khaos227 Please advise the moderators' team (best via the report function) to re-open the thread when ready to provide a workable link to kernel source.
    And please check the inbox of your private messages.
     
    Last edited:
    • Like
    Reactions: ngshixuan
    Status
    Not open for further replies.

    Top Liked Posts

    • There are no posts matching your filters.
    • 33
      Introduction:

      Affinity Kernel is a custom kernel based on the latest Stable Linux 4.4 release from kernel.org.
      This kernel is developed with performance and great battery life in mind offering some goodies cherry-picked from other popular kernels such as Flash Kernel, ElementalX, blu_spark, Boeffla Kernel, Sultan Kernel and Franco Kernel.
      The kernel is always up to date with mainline linux kernel and is regulary updated with the latest fixes.


      The goal is to provide a butter smooth experience, simmilar to what you get with the latest Pixel devices.
      Affinity Kernel is based on the official kernel source released by OnePlus.


      Code:
      /*
       * Your warranty is not void (Thank you OnePlus!).
       *
       * 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.
       */

      Features:

      • Upstreamed to the latest Linux Stable 4.4.x
      • Upstreamed to the latest CAF tag LA.UM.6.4.r1-11500-8x98.0 & LA.UM.7.4.r1-04800-8x98.0
      • Tunable with Kernel Adiutor and others
      • Additional CPU gorvernors
      • Sound Control
      • Adreno Idler by @arter97
      • Full WireGuard implementation
      • Sweep2Sleep gesture
      • Fast charging on USB
      • FS fsync toggle (enabled by default)
      • Additional IO schedulers (Maple, FIOPS, SIO, ZEN)
      • Qualcomm MDSS v2 (sRGB + KCAL)
      • dm(avb)-verity disabled
      • Faster app cold-launch
      • IO Tuning
      • Optimized with oFast and O3
      • Westwood TCP algorithm as default
      • Full Treble compatibility with Treble related fixes
      • Individual Input Boost frequency for each cluster
      • Disabled the BCL battery driver
      • Backlight Dimmer by @flar2
      • Boeffla Wakelock blocker v1.1.0
      • CDROM emulation
      • init.d support
      • ARM target optimizations
      • Passes SafetyNet check
      • Crypto Routines optimizations
      • High Brightness mode
      • Adreno driver improvements
      • EAS
      • Dynamic SchedTune Boost v3
      • KLAPSE Driver
      • Decreased swappiness

      Installation:
      Before you install the kernel, make sure you have
      a backup of boot partition in case something goes wrong!


      If you are coming from stock kernel:
      1. Reboot into TWRP
      2. Flash the Affinity Kernel.zip
      3. Reboot

      If you are coming from another custom kernel:
      1. Reboot into TWRP
      2. Dirty flash your rom or restore boot backup if you have any
      3. Reboot recovery
      4. Flash the Affinity Kernel.zip
      5. Reboot

      Updating:

      Just flash the latest Affinity Kernel build over the previous one :)

      Downloads:
      {Mod edit}
      On ROMs like Dirty Unicorns, WLAN won't work because the wlan module is required
      to load on device initcall rather than late initcall like other ROMs do. There's a workaround for it but
      it breaks WLAN on all ROMs that have the module built inline or the CAF way


      {Mod edit}

      Thanks to:

      @joshuous for his EAS commits and Dynamic Sched Boost
      @osm0sis for his AnyKernel2 installer
      @nathanchance for his android-linux-stable project and helping me
      @Lord Boeffla for Boeffla Wakelock Blocker and LED control
      @Sultanxda for his fixes and other stuff
      @eng.stk for his tweaks
      @flar2 for his Sweep2Sleep gesture driver
      @tanish2k09 for KLAPSE Driver
      And all those folks contributing to Linux Kernel :)

      XDA:DevDB Information
      Affinity Kernel, Kernel for the OnePlus 5

      Contributors
      LinuxUser0227
      Source Code: https://github.com/hejsekvojtech/Affinity-OnePlus5

      Kernel Special Features: Fast, Battery friendly, Stable, Up to date

      Version Information
      Status: Stable
      Current Stable Version: r24
      Stable Release Date: 2018-09-27

      Created 2018-09-27
      Last Updated 2019-04-06
      24
      Affinity Kernel r23 is up! :)

      Here's the changelog:
      • Upstreamed to Linux 4.4.177
      • Merged changes from OOS kernel beta branch
      • Fixed PS4 Controller support
      • RCU upstreams
      • Reverted LMK to the msm common kernel state
      • Minor Klapse fix
      • Fixed HBM on OmniROM
      • Deoneplusified devfreq driver
      • More arm64 related optimizations
      • Other stuff
      23
      Affinity Kernel r22 is up! :)

      This build brings compatibility for OmniROM and TreskMod, I've spent hours flashing different ROMs to ensure everything is working as it should be.
      Tested on LineageOS, OmniROM, PixelExperience, DirtyUnicorns, Bootleggers and OOS.
      Some commits that were considered as a bloat were removed or reverted. In favor of custom ROMs I had to remove Boeffla LED control (I doubt any of you used this feature)

      Here's the changelog:
      • Compiled out temperature polling
      • Support for Omni based ROMs
      • Other touchups for init script
      • Fixed WiFi stability issues on custom ROMs
      • Fixed slow loading of the Settings app while WiFi is active
      • Added KLAPSE Driver (Think of it like LiveDisplay for any ROM implemented directly to the kernel)
      • Some sched improvements
      • Decreased swappiness down to 10
      • CPU boost improvements for better battery life
      22
      Affinity Kernel r20 is up! :)

      This is an EAS build, do not expect HMP anymore because it just doesn't make sense to me to maintain those two branches since they both
      have the same feature set except EAS specific stuff and they both deliver pretty much the same battery life.

      Here's the changelog:
      • Upstreamed to Linux 4.4.175
      • EAS-ed the kernel
      • Got rid of Pixel2WiFi mod as suggested by @Pho3nX
      • Added oFast optimalization
      • Slimbus clock bump
      • Removed PM QOS changes made by OnePlus
      • Disabled some debugging stuff
      • Power Efficient Workqueues enabled for some key modules
      • Disabled auditing (it's broken and unstable in Linux stable kernel)
      • Decreased ZRAM swappiness so the system has to rely more on physical RAM which OP5/5T has plenty of
      • Crypto improvements
      • Re-implemented Dynamic SchedTune Boost v3
      22
      Affinity Kernel r13 is up! :)

      Happy New Year 2019! Another update is here!

      Here's the changelog:
      • Upstreamed ZRAM
      • Compress ZRAM with ZSTD by default
      • tcp_westwood improvements
      • Auto toggle OTG based on charging status (Dash or regular)
      • Merged latest OnePlus changes from OOS stable and open beta kernel
      • Adjusted CPU boost values
      • Nuked some OP's changes to QoS drivers
      • Improved load computing
      • Upstreamed LZ4 compression module
      • Merged latest changes for AnyKernel2 and cleaned up the whole thing
      • Another FS improvements
      • Adjusted CPU boost values
    Our Apps
    Get our official app!
    The best way to access XDA on your phone
    Nav Gestures
    Add swipe gestures to any Android
    One Handed Mode
    Eases uses one hand with your phone