[KERNEL][CFW][10.0] DemonSlayer Kernel [begonia/begoniain][AOSP][MIUI]

TheMalachite

Senior Member
Dec 9, 2018
159
310
83

Introduction:
DemonSlayer kernel is a v4.14 Linux stable based, trying to be upstreamed with AOSP Kernel Common , aiming to give a balance of performance to battery life.

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.
 */
Supports:
- Any custom CFW AOSP custom ROMs on Android 10 for AOSP build
- Android 10 MIUI 11/12 for MIUI build

Reporting bugs:
- If you want to report any bugs, please post a logcat and kernel log - I recommend syslog to give all the logs I need.
If this information is not provided, I cannot - and will not - help.

AOSP Features:
Might not be up to date - check GitHub for more details.

- WireGuard
- Unwanted file blocker
- LiveDisplay support (need a rom who support LiveDisplay also)
- vDSO32 support
- DTC upstreamed
- RAM, performance and power consumption improvement
- Google TCP BBRv1
- CPU Tune + -O3 for Clang
- MTK Hybrid scheduler disabled and EAS scheduler enabled

MIUI Features:
- WIP, actually it's just stock kernel with Clang 9.0.4

Downloads:
GitHub Releases
All releases go under this format: DemonSlayer-[type]-[revision]_[codename]-[date]

Telegram Chat:
DemonSlayer kernel chat

AOSP Flashing Instructions:
- Just simply flash the kernel in recovery! Make sure you flash Magisk after!

- If your getting no ramdisk found to unpack, flash magisk before this kernel


MIUI Flashing Instructions:
- Be sure to be rooted before flashing this kernel
- Reboot to LR TWRP, flash this kernel and reboot

Credits and thanks:
@Star_king12 for his unwanted magisk module blocker (FDE.AI, MAGNETAR, etc)
@arter97 for his exFAT repo
@Agent_fabulous for his kernel base

And everyone else that helped me and worked with me on the kernel! PM me if I missed anyone :)


Contributors:
TheMalachite
Source Code:
DemonSlayer Kernel github


Version Information:
Kernel version Linux 4.14.194 for AOSP and Linux 4.14.141 for MIUI
DemonSlayer Version Nezuko (Release 2)
Kernel Compiler Google Clang 9.0.4
Based On AOSP Kernel Common

ROM Firmware Required: Any CFW AOSP rom based for AOSP build and Android 10 MIUI 11/12 for MIUI build
Status: Stable (AOSP) and Beta (MIUI)

Created 2020-04-08
Last Updated 2020-08-24
 
Last edited:

Bryceicle1971

Senior Member
Feb 10, 2016
332
31
28
Christchurch
What the hell???

I just followed the instructions for this kernel an now my cell is hard bricked.

I just got havoc gsi working on it.

This kernel instantly hard bricked my RN8P?

What the hell is the point of making a kernel that does that??

Seriously dude??

---------- Post added at 10:25 AM ---------- Previous post was at 10:15 AM ----------

There is no working android 10 for this phone? I flashed android 9 HavocOS 2.9.

Why would you release a kernel for a rom that is not yet working properly.

Are you trying to hard brick peoples RN8P's.

Please let everyone know who trys it that if they are running any form of android 9 an try this Kernel they will get an instant hard brick.

PLEASE.

I should be able to unbrick it with SPflash tools once I figure out how to use them.

This Kernel is very dangerous an needs to used with extreme care.
 
Last edited:

sw8butdeadly09

Senior Member
Jul 31, 2014
119
14
0
I just followed the instructions for this kernel an now my cell is hard bricked.

I just got havoc gsi working on it.

This kernel instantly hard bricked my RN8P?

What the hell is the point of making a kernel that does that??

Seriously dude??

---------- Post added at 10:25 AM ---------- Previous post was at 10:15 AM ----------

There is no working android 10 for this phone? I flashed android 9 HavocOS 2.9.

Why would you release a kernel for a rom that is not yet working properly.

Are you trying to hard brick peoples RN8P's.

Please let everyone know who trys it that if they are running any form of android 9 an try this Kernel they will get an instant hard brick.

PLEASE.

I should be able to unbrick it with SPflash tools once I figure out how to use them.

This Kernel is very dangerous an needs to used with extreme care.

Did you follow the instruction?

---------- Post added at 12:43 PM ---------- Previous post was at 12:42 PM ----------

I just followed the instructions for this kernel an now my cell is hard bricked.

I just got havoc gsi working on it.

This kernel instantly hard bricked my RN8P?

What the hell is the point of making a kernel that does that??

Seriously dude??

---------- Post added at 10:25 AM ---------- Previous post was at 10:15 AM ----------

There is no working android 10 for this phone? I flashed android 9 HavocOS 2.9.

Why would you release a kernel for a rom that is not yet working properly.

Are you trying to hard brick peoples RN8P's.

Please let everyone know who trys it that if they are running any form of android 9 an try this Kernel they will get an instant hard brick.

PLEASE.

I should be able to unbrick it with SPflash tools once I figure out how to use them.

This Kernel is very dangerous an needs to used with extreme care.[/QUO



SUPPORT ONLY AOSP CUSTOM ROM.
 

Bryceicle1971

Senior Member
Feb 10, 2016
332
31
28
Christchurch
Yes Havoc is AOSP. However even though this cellphone (RN8P) has miui 11. its android 9. There is no working android 10 for RN8P.

So why did you write this kernel for an android version that does not yet work/exist with this cellphone?

I am unable to unbrick my unit with miflashpro or SP flash tools?
 

polfrank

Senior Member
Jul 5, 2012
686
300
93
Göteborg
Yes Havoc is AOSP. However even though this cellphone (RN8P) has miui 11. its android 9. There is no working android 10 for RN8P.

So why did you write this kernel for an android version that does not yet work/exist with this cellphone?

I am unable to unbrick my unit with miflashpro or SP flash tools?
-Non-compatible ROMs with icecream kernel:
Stock Android 9 miui 10
Stock Android 9 miui 11
Stock Android 10 miui 11

-Compatible ROMs with icecream kernel:
AOSP based Android 10 custom ROMs (Los, posp, etc.)


All the aforementioned ROMs exist. This kernel was written though only for AOSP based Android 10 custom roms, as of today.
 
Last edited:

Bryceicle1971

Senior Member
Feb 10, 2016
332
31
28
Christchurch
-Non-compatible ROMs with icecream kernel:
Stock Android 9 miui 10
Stock Android 9 miui 11
Stock Android 10 miui 11

-Compatible ROMs with icecream kernel:
AOSP based Android 10 custom ROMs (Los, posp, etc.)


All the aforementioned ROMs exist. This kernel was written though only for AOSP based Android 10 custom roms, as of today.
Android 10 is virtually impossible to flash on RN8P. So I dissagree, Whenever I flash supposedly android 10 roms on it they turn out to be android 9.

all miui 11 for this cellphone is android 9.

The point is.

Anyone using yout kernel on a RN8P has a 99% chance of a hard brick like I now have as almost every rom version MIUI or AOSP is android 9.

That is not made very clear in your instructions which I misread
 

polfrank

Senior Member
Jul 5, 2012
686
300
93
Göteborg
Android 10 is virtually impossible to flash on RN8P. So I dissagree, Whenever I flash supposedly android 10 roms on it they turn out to be android 9.

all miui 11 for this cellphone is android 9.

The point is.

Anyone using yout kernel on a RN8P has a 99% chance of a hard brick like I now have as almost every rom version MIUI or AOSP is android 9.

That is not made very clear in your instructions which I misread
I personally have been using Android 10 MIUI 11 a long time now. Without problems or bricks.

Right now I am using the Android 10 based LOS17.1.

I think you should reconsider regarding Android 10 on RN8P. Anyway, we're getting off topic. If you need help flashing Android 10, you can gladly pm me. :)
 

TheMalachite

Senior Member
Dec 9, 2018
159
310
83
I just followed the instructions for this kernel an now my cell is hard bricked.

I just got havoc gsi working on it.

This kernel instantly hard bricked my RN8P?

What the hell is the point of making a kernel that does that??

Seriously dude??

---------- Post added at 10:25 AM ---------- Previous post was at 10:15 AM ----------

There is no working android 10 for this phone? I flashed android 9 HavocOS 2.9.

Why would you release a kernel for a rom that is not yet working properly.

Are you trying to hard brick peoples RN8P's.

Please let everyone know who trys it that if they are running any form of android 9 an try this Kernel they will get an instant hard brick.

PLEASE.

I should be able to unbrick it with SPflash tools once I figure out how to use them.

This Kernel is very dangerous an needs to used with extreme care.
First, their Android 10 aosp roms for this phone and read op also, this kernel is only compatible with AOSP Android 10 roms so before say it's my fault you should read op first ;__;

And did I say this kernel is compatible with GSI ? I think no ;__;

So don't try to boycott my work because YOU didn't read carefully op ;__;
 
Last edited:

Agent_fabulous

Recognized Developer
Apr 24, 2014
495
5,136
133
Bangalore
Yes Havoc is AOSP. However even though this cellphone (RN8P) has miui 11. its android 9. There is no working android 10 for RN8P.

So why did you write this kernel for an android version that does not yet work/exist with this cellphone?

I am unable to unbrick my unit with miflashpro or SP flash tools?
A GSI will not work with a custom kernel, unless you install a compatible dtbo image. This is because a GSI has not modified your boot and dtbo partition. All AOSP based ROMs (again, not GSIs) have the same kernel dtb and dtbo image at this point. If you try to run the compiled kernel against newer MIUI dtbo images, you will hard brick.
The only MIUI dtbo images I've found working with the compiled kernel are from the initial MIUI 10 Android 9 builds. Consider using the factory preloader, and reading the thread properly.
 

Bryceicle1971

Senior Member
Feb 10, 2016
332
31
28
Christchurch
MTK not for me

I personally have been using Android 10 MIUI 11 a long time now. Without problems or bricks.

Right now I am using the Android 10 based LOS17.1.

I think you should reconsider regarding Android 10 on RN8P. Anyway, we're getting off topic. If you need help flashing Android 10, you can gladly pm me. :)
Thanks I might do that. But Im pretty sure the cell is unfixable now without either a service center or ERP surgery. Its not following any of the rules for hard bricks.

The only way the computer seems to respond to it is if I hold all 3 buttons down. Then I get an error an a chain of numbers an letters an an 'error' message.

Ill apologise to the developer. I misread the instructions an it was late at night. I kind of went off at him lol.

I definitely think if I can fix it Ill give it away or sell it. The MTK processor is a funny beast. Ive never had a processor that needs an authorised account to fix?

I'm going back to snapdragon I think. Its more predictable an more forgiving when you make errors

---------- Post added at 11:24 PM ---------- Previous post was at 11:19 PM ----------

A GSI will not work with a custom kernel, unless you install a compatible dtbo image. This is because a GSI has not modified your boot and dtbo partition. All AOSP based ROMs (again, not GSIs) have the same kernel dtb and dtbo image at this point. If you try to run the compiled kernel against newer MIUI dtbo images, you will hard brick.
The only MIUI dtbo images I've found working with the compiled kernel are from the initial MIUI 10 Android 9 builds. Consider using the factory preloader, and reading the thread properly.
Hey just wanted to apologise for losing my temper at you. It was late at night an was the last thing I expeted would happen.

I think ill give it away if I can get it fixed.

MTK is not for me. Too unforgiving an wierd behaviour when it bricks if you make a simple mistake.

I still doubt the existence of android 10 for RN8P mate :) every time I think I installed it turned out to be android 9.

There are tons of youtubers seeking click bate over it. Promising android 10 wen it says in version 11.0.6.0 global that its android 9 in the version info.

This was my %$#@ up not yours ok.

Just frustrating :-|
 

Agent_fabulous

Recognized Developer
Apr 24, 2014
495
5,136
133
Bangalore
Hey just wanted to apologise for losing my temper at you. It was late at night an was the last thing I expeted would happen.

I think ill give it away if I can get it fixed.

MTK is not for me. Too unforgiving an wierd behaviour when it bricks if you make a simple mistake.

I still doubt the existence of android 10 for RN8P mate :) every time I think I installed it turned out to be android 9.

There are tons of youtubers seeking click bate over it. Promising android 10 wen it says in version 11.0.6.0 global that its android 9 in the version info.

This was my %$#@ up not yours ok.

Just frustrating :-|
No worries :) and, yes there is Android 10 MIUI 11 for the device. Here are the archives we're using as reference for development:
Global
Indonesian
Indian
EEA (EU)
Russian
For more information and support of flashing these, you might wanna join the Telegram groups, or ask in relevant threads :) Let's not bloat this thread any further regarding A10 firmware.
 

Helhound0

Senior Member
Nov 2, 2012
393
123
43
New South Wales
Yes Havoc is AOSP. However even though this cellphone (RN8P) has miui 11. its android 9. There is no working android 10 for RN8P.

So why did you write this kernel for an android version that does not yet work/exist with this cellphone?

I am unable to unbrick my unit with miflashpro or SP flash tools?
Not going to lie, but all this sounds like you've been living under a rock for at least 3 months.

All jokes aside, please see the ROM section of this forum. There's five working Android 10 AOSP ROMs out for this device since about 2 months. Which is why this Kernel was released. You DID NOT have to flash GSI at all.

I've tried this kernel on the previous build of EvolutionX and LineageOS. The current version of EvoX also comes with IceCream Kernel by default.

Good luck on unbricking your phone. And hopefully you flash a REAL ROM on it next time ?
 
Last edited:

Bryceicle1971

Senior Member
Feb 10, 2016
332
31
28
Christchurch
Not going to lie, but all this sounds like you've been living under a rock for at least 3 months.

All jokes aside, please see the ROM section of this forum. There's five working Android 10 AOSP ROMs out for this device since about 2 months. Which is why this Kernel was released. You DID NOT have to flash GSI at all.

I've tried this kernel on the previous build of EvolutionX and LineageOS. The current version of EvoX also comes with IceCream Kernel by default.

Good luck on unbricking your phone. And hopefully you flash a REAL ROM on it next time ?
Hard brick was unresolvable. EDL reset points had no success. Its in the rubbish bin now. I dont get MTk mediatek has different rules an I'm used to snapdragon. I am thinking of stepping down to Redmi note 8 as it is snapdragon an has a number of roms that are bugless an work very well. Even finger print unlock an faceunlock.

I made mistakes yes. But am not used to mediatek.

And yes I failed once again to understand that Miui releases numbers are not sequential.

11.0.6.0 = android 9
11.0.2.0 = android 10

Miui releases are not released sequentially. Fools me every time. That was the rock I was under 3 months lol.

I have never to my knowlwdge tried a mediatek cellphone before. Too hard for me.
 
Last edited:

Lgazver

Member
Jun 2, 2013
6
0
0
I personally have been using Android 10 MIUI 11 a long time now. Without problems or bricks.

Right now I am using the Android 10 based LOS17.1.

I think you should reconsider regarding Android 10 on RN8P. Anyway, we're getting off topic. If you need help flashing Android 10, you can gladly pm me. :)
can i get your help?
i want to flash twrp on my begonia, currently unlocked bootloader, Android 10 Indonesia.
please help. :highfive: