FORUMS
Remove All Ads from XDA

 View Poll Results: What you want from next releases?

Battery saving
 
40 Vote(s)
40.82%
Performance enhacements
 
36 Vote(s)
36.73%
Bugfixes
 
11 Vote(s)
11.22%
New features
 
6 Vote(s)
6.12%
New addons
 
5 Vote(s)
5.10%

[EOL][KERNEL][7.X][i9300] Koffee

213 posts
Thanks Meter: 481
 
By A$teroid, Senior Member on 1st January 2018, 09:33 AM
Post Reply Email Thread
Koffee is the first kernel which has fixes and backports, allowing Magisk running properly.
Only for Nougat(Android 7.x) ROM's!
Based on latest Boeffla, tweaked and extended by patches & backports.
Main idea of kernel is stability, extra features and compatibility with recent apps.
Configurable via Boeffla Config V2, Synapse or Kernel Adiutor
Recomended to use Magisk with this kernel, but other SU implementations also compatible.
This kernel is good choice for ResurrectionRemix N.

Code:
/* #include <xda/disclaimer.h>
*
*  Your phone's warranty is now void.
*  This is a custom kernel developed by me, A$teroid
*  You are flashing this on your S3 at your own peril.
*  I am not responsible for hard bricks, damages to SD Cards, thermonuclear war, 
*  or you getting fired because the alarm app failed.
*  I would definitely help you out if you are stuck somewhere, provided that you give 
*  me clear details of the mishap.
*  Don't ask for ETA's cause there is a thing called "LIFE" outside XDA.
*/
Please check for few times that your trouble caused by Koffee and nothing else.
I do NOT accept ANY bugreports if you're:
1. do overclock or undervolt
2. use non-default kernel settings
3. doesn't provide me kernel / system logs if it crashed
4. doesn't provide me info about installed ROM, mods, root-utilizing apps
5. have installed Xposed
6. have installed tweaks

Features:
  • Boeffla Kernel features
  • Backported Mount Namespace from 3.8, allows hiding root via Magisk and pass SafetyNet
  • Fix (v3) for sleep issues when Magisk installed
  • SDCardFS
  • @forkbomb444's HWC out-of-the-box
  • Allowed much lower display brightness(with addon)
  • Compatibility with experimental LineageOS
  • Doze Helper - turn on Doze immediatelly after screen off
  • Pyramid - new cpufreq and hotplug governor
  • zCache
  • FRandom - fast pseudorandom number generator
  • FQ_Codel network packet scheduler backported from 3.5
  • TCP Fast Open (client-side, ported from Linux 3.6), enabled by default
  • TTL mangling support
  • SECCOMP - Secure computation for untrusted bytecode (used, ex., by mediaserver, Google Chrome)
  • Support for I/O accounting (for iotop)
  • Sparse Memory model
  • Enabled ThumbEE CPU extension
----

Read also:
  • Tweaked page-writeback for better responsiveness. You cannot change vm.dirty{ratio/bytes} values.
  • zRam configuration is disabled for stability reasons but zRam is present
  • /system is write protected! Use system-rw-access.zip Magisk module to disable protection if you really need this!
  • More additional fixes which not exist in other kernels
  • Various kernel tweaks, config changes & internal improvements
  • Reduced wakelocks
  • Reduced debugging code
  • Boeffla Sound enabled by default
----

Pyramid
tunables:
mc_pseudocluster, mc_pseudocluster_freq:
allow to work on max frequency up to 2 cores and limit it to mc_pseudocluster_freq value when > 2 cores online
Enabled by default.

mc_eco_auto, mc_auto_factor:
when enabled and pseudocluster are disabled, relative maximal frequency will be calculated usind number online cores and mc_auto_factor.
Greater factor values will reduce max frequency.
Disabled by default.


mc_eco_step{1-3}:
when pseudocluster and eco_auto is disabled, old pyramid's behavior will be enabled.
Using this three tunables you can define frecuency at each next cpu core.

screenoff_limit, screenoff_freq, screenoff_max_cpus_online:
when screenoff_limit is enabled, maximal frequency will be reduced to screenoff_freq value and maximal allowed cpu cores will be limited to screenoff_max_cpus_online.
Disabled by default.

min_cpus_online:
you can set minimum of cpu cores allowed to be enabled when screen is on

max_cpus_online:
you can set maximum of cpu cores allowed to be enabled
----
TCP Fast Open
you can use TFO in Chrome browser, just turn it on via chrome://flags. Also Chrome can be used as system WebView provider via Developer settings.
----

Addons:
1. Svelte(low-ram, Magisk)
Enables Project Svelte to increase performance on low ram devices. Also tweaked for responsiveness.
2. Lower Brightness - use, if you prefer darker screen or want to save battery (Magisk) Only for Koffee 78+!
3. SDCardFS (Magisk) - use sdcardfs instead of slower fuse emulating. Reduces overhead on internal and external storage access
4. I9300XXUGOK1 modem (zip for TWRP)
5. I9300XXUGPE1 bootloader (for Odin)
6. System Read-Write access. Install this if you really need write access to the /system.

Credits:
@Lord Boeffla (Boeffla Kernel)
@arter97 (Intelli-Plug)
@forkbomb444 (experimental HWC)
@rINanDO (SECCOMP)
@NoN1979 (for low ram tweaks)
@pascua28 (compatibility with Experimental LOS, updates fron N7100)
@Oebbler1 (for lower brightness values)
@curiousrom (for i9300XXUGPE1 bootloader)

Homepage(in russian): https://4pda.ru/forum/index.php?s=&s...ost&p=64299445

Latest build & addons: https://drive.google.com/open?id=1my...cumEADrLfRnIUP

Beta previews and discussion for i9300 and n7100 users: https://t.me/koffeebetatest

XDA:DevDB Information
Koffee, Kernel for the Samsung Galaxy S III I9300

Contributors
A$teroid
Source Code: https://github.com/acroreiser/Koffee

Version Information

Koffee 104 "Ultramarine" [FINAL]
for i9300 and n7100

Changelog:

1. Added "min_cpus_online" tunable to Pyramid.
When screen is on, these number of cpus will always be online.
Tested with two cpus online and screen off limiting to two cores - better responsivity with well battery saving when device idle.

2. Fixed random reboots due to invoked OOM killer

3. Some fixes in scripts

----

My device now broken. I cannot continue work on Koffee.
Final builds for i9300 and n7100 now on my Google Drive.

Good luck!

----

Status: End of life
Created 2017-08-22
Last Updated 2018-09-05
The Following 53 Users Say Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
1st January 2018, 03:15 PM |#2  
RΞ:D¥'s Avatar
Junior Member
Thanks Meter: 4
 
More
How i can update this kernel?
1st January 2018, 03:19 PM |#3  
A$teroid's Avatar
OP Senior Member
Thanks Meter: 481
 
Donate to Me
More
Quote:
Originally Posted by RΞ:D¥

How i can update this kernel?

just download latest zip & flash via twrp
The Following 3 Users Say Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
2nd January 2018, 05:40 PM |#4  
Senior Member
Flag Johannesburg
Thanks Meter: 329
 
More
Nice, will give it a go, the only downside about my giving this a try is that I'm using SuperSU. Otherwise I am on RR N
Thanks
6th January 2018, 07:39 AM |#5  
Junior Member
Thanks Meter: 0
 
More
Spectre
Does Spectre need to be mitigated by the kernel or the ROM?
6th January 2018, 12:01 PM |#6  
Junior Member
Thanks Meter: 3
 
More
can I dirty flash it over the elite-boeffla-kernel-6.0.0.2 or do I have to install RR N again and then flash Koffee-kernel?
6th January 2018, 01:57 PM |#7  
A$teroid's Avatar
OP Senior Member
Thanks Meter: 481
 
Donate to Me
More
Quote:
Originally Posted by ThommyIV

can I dirty flash it over the elite-boeffla-kernel-6.0.0.2 or do I have to install RR N again and then flash Koffee-kernel?

Just flash latest zip
The Following 2 Users Say Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
6th January 2018, 02:01 PM |#8  
A$teroid's Avatar
OP Senior Member
Thanks Meter: 481
 
Donate to Me
More
Koffee build 34 (06.01.2018)

Changelog:
  • LCD: allow much lower display brightness
  • mm: refix for shmem_swp_set crash
  • mm: (U)KSM removed due to conflict with camera driver
The Following User Says Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
6th January 2018, 02:07 PM |#9  
A$teroid's Avatar
OP Senior Member
Thanks Meter: 481
 
Donate to Me
More
Quote:
Originally Posted by xappre

Does Spectre need to be mitigated by the kernel or the ROM?

According to this table, our cortex-a9 cores is variant 3 and unaffected
https://developer.arm.com/support/security-update
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20180106-160528.png
Views:	1666
Size:	91.6 KB
ID:	4381360  
The Following User Says Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
6th January 2018, 04:32 PM |#10  
Member
Thanks Meter: 11
 
More
Kind of a long shot but will this kernel work with the experimental lineage nougat ROM for i9300??
6th January 2018, 05:00 PM |#11  
A$teroid's Avatar
OP Senior Member
Thanks Meter: 481
 
Donate to Me
More
Quote:
Originally Posted by anarchist1017

Kind of a long shot but will this kernel work with the experimental lineage nougat ROM for i9300??

No: kernel based on boeffla and on old smdk4412 base.

Kernel in experimental lineage 14.1 based on n7100 kernel sources and has experimental HWC implementation. I'll rebase Koffee to the new codebase in future, but now this code is not enough stable.

And all other custom kernels is NOT suitable with experimental Lineage.
The Following User Says Thank You to A$teroid For This Useful Post: [ View ] Gift A$teroid Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes