[KERNEL][P-S] riseKernel for A5|A7 2017

Search This thread
rise-Kernel.png


Dear folks, today I'm presenting my very own custom kernel for the Galaxy A5 and A7 2017!
This kernel provides many features and a lot of customization.


*To change settings, it's recommended to use HkTweaks by @corsicanu
because it is made especially for Exynos7880 devices. Other apps like kernel adiutor or Mtweaks
do work too, but they may miss some settings.[/CODE]

DISCLAIMER
Code:
*Im NOT responsible for bricked devices, dead SD cards or any damage done to your device.

Compatibility
This kernel is compatible to all variations of A5 2017 and A7 2017.
Only A520F is well tested as I have this device.

Features
  • Latest A720SKSU5CTL2 kernel release
  • Linux 3.18.140
  • Support for AOSP 11.0, AOSP 10.0, Treble 11.0, Treble 10.0 and Rise-Q
  • CRC control
  • Frandom
  • UKSM (Ultra kernel samepage merging)
  • ARCH power
  • USB charging default changed to 900mA
  • CPU and GPU voltage control
  • DevFreq voltage control
  • CPU overclock to 2002 Mhz
  • GPU overclock to 1034 Mhz
  • Configurable wakelocks
  • Boeffla wakelock blocker
  • Wireguard
  • Dynamic Fsync
  • Lots of CPU governors
  • Lots of I/O schedulers
  • Powersuspend
  • and more

Installation
  • Make sure to have the latest version of TWRP/SHRP/Orangefox installed
  • Boot to recovery
  • Make a backup of your current boot partition in case something goes wrong
  • Flash the installer zip
  • The installer will detect your phone variant and which ROM you have installed
  • Optionally, flash Magisk or any other mod right after.
  • Reboot

Downloads
  • Moved to post #2

Donations
  • If you like my work feel free to send me a donation.

Credits
  • Thanks to @Option58 for the work on the official lineage sources for our device. Custom-kernels wouldn't be possible without him!
  • Also thanks to @corsicanu because I integrated some of hadesKernel's features into this kernel.
  • Thanks to everyone who worked on the features that this kernel contains.
  • All testers


Contributors
Simon1511
Source Code: GitHub
 
Last edited:
Downloads

v1.10: Google Drive | Androidfilehost | Github release with single-images

Old versions: Google Drive folder | Androidfilehost folder


Which version do I have to download?
  • For any AOSP 12.0 ROM use the latest version
  • For any recent AOSP 11.0 ROM (atm only LineageOS 18.1) use the latest version
  • For any recent AOSP 10.0 ROM (like LineageOS 17.1, crDroid 6.X, RessurectionRemix 8,...) use the latest version
  • For older AOSP 10.0 ROMs (like PixelExperience, EvolutionX,...) use v1.4
  • For 11.0 and 10.0 GSIs (riseTreble Q and R) use the latest version
  • For Rise-Q use the latest version
  • For any AOSP 9.0 ROM (LineageOS 16, crDroid 5.X, ....) use v1.4-1

The installer zip contains all versions of this kernel and will automatically choose which kernel version to install depending on your device and installed ROM. Contact me if you face any problems with the installer.
 
Last edited:
Changelogs

Latest: v1.10

  • Corrected voltage ranges for GPU and CPU voltage control
  • Reverted lineage's kernel changes and A720SKSU5CUJ2 merge as they broke deep sleep
  • Added a survival script for the kernel to stay installed after lineage's OTA updates


riseKernel combined zips
v1.9
  • AOSP 12 support (Lineage 19)
  • Switched to AOSP GCC
  • Abort installation if ROM's Android version is newer than the kernel's

v1.8
  • Merged latest A720SKSU5CUJ2
  • Merged latest kernel changes from LineageOS and Google kernel/common

v1.7
  • Set Enforcing for Lineage 18.1 since SePolicy has been written for some time already
  • Merged latest kernel changes from LineageOS (including ones for Xbox One and PS4 controllers)
  • Added a missing error message for users running a non-treble ROM while still having treble files in their /vendor partition
  • Picked a missing patch for FB notifier callback and enabled it globally
  • Small misc stuff

v1.6
  • Added AOSP 11 and Treble 11 support
  • Enabled power efficient workqeue
  • Improved installation script
  • Added input boost and fingerprint boost
  • Added devfreq voltage control

v1.5
  • Updated to latest A720SKSU5CTL2 kernel release
  • Updated to Linux 3.18.140 (thanks to @Option58)
  • Combined source of AOSP, Treble and OneUI kernel
  • Added a version with support for OneUI 2.X
  • Removed support for AOSP Pie, use v1.4.1 if you need it
  • Made zSwap use only LZ4 as compression method
  • Added a workaround that prevents Magisk mount leakage (Not my own workaround)
  • Updated UKSM and disabled it by default
  • Enabled CPU bandwidth control (CFS_BANDWIDTH) for OneUI as it's expected to be enabled

v1.4-1 / v4
  • Updated to latest A720S kernel (NOTE: Only use v1.4-1 on LineageOS and crDroid. For PixelExperience, etc use v1.4)
  • Enabled LZ4 ZRAM compression
  • Included Lineage's FB notifier fix (Will allow to disable the touchscreen in e.g. Phone calls)

riseKernel Android 10.0
v1.4 / v4
  • Fixed CPU overclock
  • Fully re-made under the hood
  • Removed broken stuff
  • Combined Pie, Q and Q-treble kernel in one zip instead of one per kernel

v1.3
  • Enabled zSwap/zRAM
  • Changed to SeLinux Enforcing as default

v1.2
  • Disabled Knox, Tima, Verity
  • Updated to work on latest LineageOS and crDroid

v1.1
  • Added some fixes which slightly improve phone call audio (This will also be merged into the stock lineage/crDroid kernel)
  • Updated wireguard
  • Faster booting
  • Disabled low memory killer because we use memcg
  • Other minor improvements

v1.0
  • Initial support for Android 10.0
  • Early mount EFS


riseKernel treble
v1.3
  • Updated to A720S kernel with Linux 3.18.91
  • Forced SeLinux Permissive
  • Enabled zSwap/zRAM
  • Removed Wireguard due to incompatibility


riseKernel Android 9.0
v3
  • Updated wireguard
  • Added early system mount
  • Underclocked GPU to 160Mhz
  • Increased charging levels
  • General power and performance improvement
  • Removed broken/buggy governors

v2
  • Disabled optimize for size
  • Re-enabled CPU hotplug
  • Overclocked OSCCLK
  • Added charging controls
  • Better UI performance
  • Disabled CRC check
  • General performance improvements

v1
  • Initial release
 
Last edited:
  • Like
Reactions: matkali

MattJaO3D

Senior Member
Oct 26, 2012
721
181
Cardiff
Working Great with pixel experience ROM, I've upped the voltage on GPU and CPUs , Played COD mobile default all is good , used GLtools to get max graphics , and again all is good :)
 
  • Like
Reactions: Simon1511

MitchiePitchie

Senior Member
Apr 28, 2019
189
65
Just flashed it. Already encountered a bug, hk keeps on loading. Looking forward on your developments. Good luck
And unlocking the phone through fingerprint seems slower now for some reason. Opening apps is also slower now. Btw im using Google pixel Pie Plus
 

Attachments

  • Screenshot_20191023-093401.jpg
    Screenshot_20191023-093401.jpg
    90.5 KB · Views: 2,309
Last edited:
  • Like
Reactions: Simon1511

SnowFuhrer

Senior Member
Apr 5, 2018
1,622
471
Spirit River
Flashed it and working good so far. I think you're the first to make a custom AOSP kernel for this phone. ;)
Magisk 20 is working for me, it just takes a few tries to boot sometimes.

---------- Post added at 07:26 AM ---------- Previous post was at 07:25 AM ----------

Just flashed it. Already encountered a bug, hk keeps on loading. Looking forward on your developments. Good luck
And unlocking the phone through fingerprint seems slower now for some reason. Opening apps is also slower now. Btw im using Google pixel Pie Plus
Idk, it's all working good for me. Hk is working good too. I am on PE.
 
Last edited:
  • Like
Reactions: Simon1511
Just flashed it. Already encountered a bug, hk keeps on loading. Looking forward on your developments. Good luck
And unlocking the phone through fingerprint seems slower now for some reason. Opening apps is also slower now. Btw im using Google pixel Pie Plus
Unlocking the phone takes longer because the CPU clocks down on all cores when the screen is off. Therefore it needs longer to unlock. At least this is the explanation that makes the most sense.
That apps are opening slowly sometimes is also a bug I encountered, forgot to mention it in my OP thread. This can be fixed by simply reinstalling/updating the app or doing a clean flash (install ROM, then kernel right after)
 

moozer

Retired Forum Moderator
Jan 5, 2014
2,702
1,318
North West England
OPPO Reno 10x Zoom
Simon

So far so good. Been trying some settings I had on my Xperia SP about 4 years ago and they seem to be working well for a balance of performance and battery.

Simply put:

CPU governor - Interactive (max and min frequencies set at maximum and minimum accordingly)
I/O scheduler - Fiops with Internal Storage read ahead set to 1024KB
I/O scheduler - bfq with External storage read ahead set to 1024KB

No CPU hotplug (really only useful for stock Sammy kernel)

That's it

Feel free to try and report back with your own findings.

I'm finding little lag now (was getting some really big lags and micro freezes) and battery draining slower
 
  • Like
Reactions: Simon1511

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    rise-Kernel.png


    Dear folks, today I'm presenting my very own custom kernel for the Galaxy A5 and A7 2017!
    This kernel provides many features and a lot of customization.


    *To change settings, it's recommended to use HkTweaks by @corsicanu
    because it is made especially for Exynos7880 devices. Other apps like kernel adiutor or Mtweaks
    do work too, but they may miss some settings.[/CODE]

    DISCLAIMER
    Code:
    *Im NOT responsible for bricked devices, dead SD cards or any damage done to your device.

    Compatibility
    This kernel is compatible to all variations of A5 2017 and A7 2017.
    Only A520F is well tested as I have this device.

    Features
    • Latest A720SKSU5CTL2 kernel release
    • Linux 3.18.140
    • Support for AOSP 11.0, AOSP 10.0, Treble 11.0, Treble 10.0 and Rise-Q
    • CRC control
    • Frandom
    • UKSM (Ultra kernel samepage merging)
    • ARCH power
    • USB charging default changed to 900mA
    • CPU and GPU voltage control
    • DevFreq voltage control
    • CPU overclock to 2002 Mhz
    • GPU overclock to 1034 Mhz
    • Configurable wakelocks
    • Boeffla wakelock blocker
    • Wireguard
    • Dynamic Fsync
    • Lots of CPU governors
    • Lots of I/O schedulers
    • Powersuspend
    • and more

    Installation
    • Make sure to have the latest version of TWRP/SHRP/Orangefox installed
    • Boot to recovery
    • Make a backup of your current boot partition in case something goes wrong
    • Flash the installer zip
    • The installer will detect your phone variant and which ROM you have installed
    • Optionally, flash Magisk or any other mod right after.
    • Reboot

    Downloads
    • Moved to post #2

    Donations
    • If you like my work feel free to send me a donation.

    Credits
    • Thanks to @Option58 for the work on the official lineage sources for our device. Custom-kernels wouldn't be possible without him!
    • Also thanks to @corsicanu because I integrated some of hadesKernel's features into this kernel.
    • Thanks to everyone who worked on the features that this kernel contains.
    • All testers


    Contributors
    Simon1511
    Source Code: GitHub
    9
    UPDATE

    Downloads

    v1.10: Google Drive | Androidfilehost | Github release with single-images

    Changelog
    • Corrected voltage ranges for GPU and CPU voltage control
    • Reverted lineage's kernel changes and A720SKSU5CUJ2 merge as they broke deep sleep
    • Added a survival script for the kernel to stay installed after lineage's OTA updates
    8
    Downloads

    v1.10: Google Drive | Androidfilehost | Github release with single-images

    Old versions: Google Drive folder | Androidfilehost folder


    Which version do I have to download?
    • For any AOSP 12.0 ROM use the latest version
    • For any recent AOSP 11.0 ROM (atm only LineageOS 18.1) use the latest version
    • For any recent AOSP 10.0 ROM (like LineageOS 17.1, crDroid 6.X, RessurectionRemix 8,...) use the latest version
    • For older AOSP 10.0 ROMs (like PixelExperience, EvolutionX,...) use v1.4
    • For 11.0 and 10.0 GSIs (riseTreble Q and R) use the latest version
    • For Rise-Q use the latest version
    • For any AOSP 9.0 ROM (LineageOS 16, crDroid 5.X, ....) use v1.4-1

    The installer zip contains all versions of this kernel and will automatically choose which kernel version to install depending on your device and installed ROM. Contact me if you face any problems with the installer.
    5
    Updated to v1.9 with support for LineageOS 19!

    As always, find download links in post #2
    5
    the Custom rom isn't stable enough for daily use, maybe a MILESTONE / RELEASE will do, but nighlty NO.
    Im using Hades ported ROM, i've fixed the issue within it and it's all smooth now and bug free. If you want to try it then i give you a hint to fix the issue there, it's in the floating_feature.xml, the settings he used isn't for our device so we need to change it or see the Korea ROM floating_feature settings for reference :). Framework, SystemUI need to be adjusted.
    All roms I've tried on this device are stable enough for me to use every day ?*♂️