Resource icon

Asset Linux kernel-5.18.0-android-x86_64 5.18.0

Source
https://github.com/maurossi/linux
Compatible With
for use in Android 11 distros
Kernel 5.18 compiled with zram, esdfs, and ntfs3.
Intended for Android 11/12 x86 distros.
  • CONFIG_ZRAM=y and default compression algorithm set to zstd.
  • Added rtl8821ce driver from tomaspinho repo
Installation:

If you have gearlock installed, just install this .gxp from gearlock > Install/Uninstall [GXPM]
https://drive.google.com/file/d/1IELODs9DDZnhzsr7g9_5GDS4bF42IHP8/view?usp=sharing

Without gearlock (complicated)
Make sure you have system.sfs extracted to system.img - extract .sfs with 7-zip zstd and delete .sfs
From android
1 - Download the .zip (download button above right corner) and place in internal storage or /sdcard and rename to kernel-5.18.zip
2 - Reboot to debug mode - press e while in grub and add DEBUG=2 to kernel cmdline (the line that starts with linux)
3 - Run commands:
exit
cd /tmp; unzip /android/data/media/0/kernel-5.18.zip
mount -o remount,rw /android
cp -r ./lib /android/system/
cp ./kernel-su /src/kernel
sync && reboot -f

Troubleshooting - If you get no space left on device error then delete old kernel modules first:
rm -r /android/system/lib/modules/*

Notes:

- zram also requires initialization in userspace
Code:
echo 4G > /sys/block/zram0/disksize
mkswap -L zram0 /dev/block/zram0
swapon -p 100 /dev/block/zram0

- A separate kernel boot image named kernel-su - includes kernel superuser module from WSA-community. Can be useful to root some Android x86 distros that are not rooted, such as Prime OS 2.1.3 or Bliss OS 14.10.

- kernelSU can be used in combination with gearlock (even on android 11/12).

- When running gearlock use command /system/bin/sh /gearlock/bin/g for kernelSU or workaround below

- In case some apps dont detect root with kernelSU, create a file /system/xbin/su with following contents:
Code:
#!/system/bin/sh
exec /system/bin/su "$@"
  • Like
Reactions: supertc
Author
Xtr
Downloads
692
Views
3,391
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Xtr

Top