• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][i9500][TW] KudKernel [DISCONTINUED]

Not open for further replies.
Search This thread


Senior Member
May 18, 2014
No. However, my beta build is ready [emoji14]

v5.0_b1 - Beta Release
Warning: TouchWiz ROMs only.

This isn't a final release, since I need to test things out with global users [emoji14]

For changes, track my new repo.

There's many more to-do lists before final build.

Edit: Now compiled with Linaro GCC 6.1.1 instead of Hyper 6.1.x SMxU which I used from v1.0 to v4.1.

Sent from my ASUS_Z00AD using XDA Labs
Booted, but not usable. When it got to "Optimizing apps" process, every after 30-40 apps, it's freezing and restarted. However, the process was completed just fine. Same thing happen after boot. It just freezing and restart continously.
Btw, I'm using EthanROM v4 (PG1 based).

Sent from my Galaxy S4


Recognized Contributor
Apr 13, 2015
Xiaomi Mi 9 SE
Booted, but not usable. When it got to "Optimizing apps" process, every after 30-40 apps, it's freezing and restarted. However, the process was completed just fine. Same thing happen after boot. It just freezing and restart continously.
Btw, I'm using EthanROM v4 (PG1 based).
Current status would be updated. I feel some strange things while I test things myself this morning.

Edit: My test build 7 (v5.0_b1 minus several changes) booted fine on both my device and my tester.

Sent from my ASUS_Z00AD using XDA Labs
Last edited:


Recognized Contributor
Apr 13, 2015
Xiaomi Mi 9 SE
Current news:
Seems like my source is messed up a bit, so I would restart some of my changes then.

Seems that unstability has been fixed (DVFS related).

Edit #2:
And I couldn't test any further... :(

Sent from my ASUS_Z00AD using XDA Labs
Last edited:
  • Like
Reactions: The Joker


Senior Member
Sep 26, 2015
v5.0 would be EOL version for i9500. After v5.0 is released and stable enough, I'll end my development on i9500 unless state is changed.

What's being fixed?
1. Once-per-day reboot during idle on random occasions.
2. Hm...

Sent from my ASUS_Z00A using XDA Labs

and we ussers wanna fast charge ,can you do to your kernel fast charge option ? or that already on kernel


Recognized Contributor
Apr 13, 2015
Xiaomi Mi 9 SE
Unfortunately, I have to discontinue my kernel development on i9500 from now.

My development (also main) notebook was stolen more than a week ago, leave me forced to use my old, slower netbook. Also, it's useless for me to keep developing on i9500 as if I do it, it would relatively same as others.

I now have a Xiaomi Redmi 3 Pro as my backup and development device, which I'm about to develop a CM-based kernel on it (if my netbook could compile arm64 kernel and if I get permission from the maintainer :p ).

See you in Redmi 3, and probably, other device's development. ;)

As the final stuff, I modified some parts of OP as per v5.0_b2 condition and KA.

Sent from my ASUS_Z00A using XDA Labs
Last edited:
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 22

    Join KudKernel's Hangouts group for tests builds and previews before every new release.
    Click here to join.

    NOTE: Thread as per v4.1 and may or may not available on last build.

     * 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 your finger at me for messing up your device, I will laugh at you.

    Main features
    • Built using I9500XXUHPB3 kernel source
    • [TW] Built using modified I9500UBUHPG1 ramdisk
    • [CM] Using AnyKernel2 template for unified support
    • Compiled using Hyper Toolchain 6.1.x, SaberMod with Uber dependencies
    • Using -Ofast flag for speed
    • Full ARM and VFPv4 optimizations
    • Updated OSRC to version 3.4.5 (proper implementation)
    • XZ kernel compression
    • [TW] GZIP ramdisk compression
    • Included Stericson's latest BusyBox 1.24.2
    • [TW] SELinux is forced permissive
    • [CM] SELinux disabled
    • A7 frequencies unlocked
    • Kernel debloated from useless features
    • Optimized and patched kernel source

    Key features
    • Ultra Kernel Samepage Merging (UKSM) support (default: Disabled)
    • mDNIe screen, CPU voltage, and Wolfson sound control support
    • Synapse support for screen and audio
    • Using ARM-optimized SHA-1 and AES crypto routines
    • HTC's Asynchronous File Sync (Async Fsync)
    • Init.d support
    • USB-OTG support
    • CIFS, NFS support
    • [CM] F2FS support
    • L2TP, PPP support
    • Selectable CPU governors:
      ondemand (default), interactive, conservative, performance, alucard, darkness, intelliactive, lionheart, zzmoove
    • Selectable I/O schedulers:
      noop (default), row, cfq, deadline, bfq, fiops, sioplus, tripndroid, zen
    • Selectable TCP congestion algorithms:
      westwood (default), cubic, bic, reno, htcp, highspeed, hybla, vegas, scalable, lp, veno, yeah, illinois


    Installation instructions
    1. Make sure you've the latest version of TWRP or GearCM Recovery.
    2. Reboot to Recovery mode by combination of Power+Home+Vol(+) buttons.
    3. Select Install from TWRP screen.
    4. Select KudKernel .zip file.
    5. Swipe Flash button.
    6. Finally wipe cache and dalvik. (optional)
    7. Reboot to system.

    Known issues
    Don't report issues that are already listed here.
    • Kernel status changed from beta to experimental due to some unexpected behavior (continuous FCs, random reboots, etc.). Testers required to test every changes into kernel.
    • Sometimes, CPU will only bump itself up to 1200-1400 MHz. A normal reboot would fix this.
    • This kernel will negate any benchmarking app, since most debugging features have been disabled for best user experience.

    More to know...
    • Bug reports without good explanation or logs are ignored.
    • Request for feature(s) that could break stability aren't accepted.
    • You're not allowed to include my kernel as your work's default kernel. Instead, please include KudKernel Lite. (coming soon)

    Special thanks
    • Samsung OSRC Team
    • UBER TOOLCHAINS, SaberMod Team
    • Linaro Team
    • CodeAurora Team
    • @frap129 - Hyper Toolchains
    • @osm0sis - AnyKernel2 template
    • @VoLTaqe - Some help
    • @AndreiLux
    • @maxfu
    • @Alberto96
    • @asad007

    XDA:DevDB Information
    KudKernel [i9500], Kernel for the Samsung Galaxy S4

    krasCGQ, asad007
    Source Code: https://github.com/krasCGQ/KudKernel-universal5410

    Kernel Special Features: See above.

    Version Information
    Status: No Longer Updated
    Current Stable Version: v3.3
    Stable Release Date: 2016-07-07
    Current Beta Version: v5.0_b2
    Beta Release Date: 2016-10-11

    Created 2016-06-03
    Last Updated 2016-11-07
    Status & known issues
    • Totally rebased from a clean source.
    • Compiled using Linaro GCC 6.1.1 instead of Hyper 6.1.x SMxU which I used before on my v1.0-v4.1 kernel releases.
    • Synapse support is removed from the kernel. Use this script by @vishal thakar from now and so on. All bugs and issues regarding Synapse (except for errors due to unimplemented features) should be reported on that thread.
    • Negative Toggle seems do nothing when triggered. (probably won't be fixed)
    • [SRTIKE]Kernel booted, but would freeze in a minute or so, probably something went wrong with my new commits...[/STRIKE] | Fixed in v5.0_b2

    Update logs
    Last release:
    v5.0_b2 (see some latest pages)

    Older releases:
    v4.1 [29-08-2016]
    • Would be written later. (couldn't remember...)

    v4.0 [25-08-2016]
    • Rebased using I9500XXUHPB3 kernel sources
    • Using full ARM, VFPv4, and NEON optimizations
    • Included Stericson's latest BusyBox 1.24.2
    • Reverted kernel version to 3.4.5
    • Added new CPU governors: darkness, lionheart, zzmoove
    • Added new I/O schedulers: bfq, row
    • Added I/O read ahead and swappiness tweaks (might be overridden by kernel tuning app)
    • Added Wolfson sound control
    • Fixed init.d again
    • (Finally) Fixed Private Mode again
    • Disabled Android Logger
    • Disabled WiFi scanning on boot
    • Disabled UKSM by default
    • Disabled useless stuffs
    • Disabled some more debugging stuffs
    • Removed sio I/O scheduler
    • Tweaked UKSM to be more quiet
    • Optimized kernel, check GitHub repo for changes.

    v3.3 [07-07-2016]
    • Re-enable all TCP congestion algorhythms

    v3.2 [07-07-2016]
    • Patch again the kernel to 3.4.10
    • Compiled with NEON optimization
    • Added tripndroid I/O scheduler (a bit unstable)
    • Added Async Fsync from HTC

    v3.1 [06-07-2016]
    • Reverted kernel patch to 3.4.5
    • Added sioplus I/O scheduler
    • Set noop as default I/O scheduler
    • Some ramdisk tweaks:
      - Threw away Knox related commands
      - Deleted 'force-set' cfq as default I/O scheduler
      - Put KudScripts execution command into init.rc instead of init.extra.rc (but KudScripts.sh itself is on /sbin)

    v3.0 [05-07-2016]
    • Added mDNIe screen control support
    • Added CPU Voltage control support
    • Fixed ext4 issues
    • Fixed init.d support (it was broken on all versions before)
    • Disabled "Add Random" and "I/O Stats"
    • Disabled almost all debugging stuffs to improve performance
    • Disabled powersave and userspace CPU governors (useless)
    • Tweaked UKSM (using init script inside ramdisk) to use lower CPU resources (20%)
    • Changed ramdisk compression to LZO

    v2.1m [27-06-2016]
    • Kernel compiled using Hyper Toolchain 6.1.x, SaberMod with Uber dependencies
    • Enforce the permissive SELinux (unchangeable anymore!)
    • Removed -fgraphite flag (it's useless I think)

    v2.0 [19-06-2016]
    • Unlocked all lower A7 frequencies
    • Added UKSM support (using version
    • Added alucard and intelliactive CPU governors
    • Added fiops, sio, and zen I/O schedulers

    v1.1 [05-06-2016]
    • Fixed Private Mode
    • Enabled USB-OTG support

    v1.0 [03-06-2016]
    • Initial release.
    Hi everyone...
    I've read all suggestions and here's the currently workmap for the next version:
    Note: It would be potential for me to jump over to v2.0 due to upcoming major changes I've done.
    • Implemented UKSM v0.1.2.3
    • Unlocked all A7 frequencies
    • Set A7 frequency limit between 250-1200 MHz and A15 frequency limit between 1300-1600 MHz.
    • Porting Samsung codes to fully support GCC 6.0 (WIP; approx. 40% done); also need to tweak Makefile so it would skip some warnings because nothing could be done...

    It's all done on my very own PC now. It would be signed with a new RSA 4096 bit key and will available only on a .zip file based on download counts.

    And yet, I need to take a rest. It's late night here.
    If you need a spoiler about what word is this:
    Oyasumi is a Japanese word that means good night.
    A bit off-topic, is it?

    Sent from my ASUS_Z00A using XDA Labs
    Change init.container.rc from my ramdisk and it will fix your private mode problem. About default governor do not change from default governor parameter .defconfig change with .sh and it will set some needed parameter with ondemand and change with interactive. Good luck
    I'm trying to implement Synapse support into the kernel, plus Indonesian localization :D

    Hope it's going well guys!

    A spoiler attached :p

    Sent from my ASUS_Z00A using XDA Labs