[KERNEL][Dispossible]A kernel for EMUI8.2 or ROMs based on EMUI8.2

Dispossible

Member
Dec 17, 2018
39
11
18
Beijing
I just made few changes on the official open source kernel of 8.

Some features:
This kernel is based on the official open source kernel.
This kernel allows users to use "setenforce 0" or "setenforce 1" to change the status of selinux.
:p:p:p

======FBI Warning======
It was only tested on my phone...
The phone is COR-AL10 and the system is offcial EMUI8.2 151.
I know it will not work on EMUI9 or other 9 systems.
I don't konw whether it could cause hardware damage to your phone.
=====================

Introducions:

1. Maybe we can backup the kernel first.(If you are brave, you can skip this step.)
I used the mt manager 2.0 (free editon) to copy the /dev/block/by-name/kernel_a to somewhere interesting.
Then we reboot the phone and hold the vol- to enter the bootloader mode.
2. We can use this command to flash the kernel.
Code:
fastboot flash kernel xxx.img
3. We can use this command to reboot.
Code:
fastboot reboot
4. If there are any problems after flashing this kernel, you could flash the official kernel or your backup kernel.

ps. Flashing kernel could not cause losing data. But I suggest you do a backup.

pps. Why we flash the kernel to change the selinux status? Because the official kernel don't allow user use the command "setenforce" to change the status. It means that the status must be "enforcing". Now you can use the command "setenforce 0" to make the SELinux interesting.


Source code:
https://github.com/kindle4jerry/honor-play-kernel-8.1-kindle4jerry
Download: maybe you can download it from my github
https://github.com/kindle4jerry/honor-play-kernel-8.1-kindle4jerry/releases/tag/0.2
 
  • Like
Reactions: manis99