20240616-01
About this kernel & repo / 关于本内核及repo
This repo is forked from https://github.com/UtsavBalar1231/kernel_xiaomi_sm8250. Thanks to @UtsavBalar1231!
The main purpose is fix this battery stuck at 1% problem, and some small changes and optimizations of defconfig. Also provide KernelSU integrated pre-built image(flashable anykernel3 zip), and a more intuitive and easy-to-use build script and build guide that allow you to try to build by yourself.
This focked branch and the pre-built kernel image/zip is based on the android12-stable
branch of the original repo. It should works on both stock MIUI and third-party AOSP based Android 12 ROMs. Android 13 also should be works, but I don't have device to test it. As I only have a lmi
with stock latest MIUI 14.0.4 with Android 12, I only tested on that. If you have a Android 13 based system, or other models you are welcomed to test it and feedback :)
Note: The zip does not include the dtbo.img
and it will not replace your dtbo
partition. It is recommanded to keep the stock dtbo
or the dtbo
from your third-party rom (If the builder comfirmed it works well). Since there are some problems with the dtbo.img
which built from this source, one of them is the screen will suddently goes to the highest brightness when shut try to shut off the screen in the lock screen. If you had flashed any other third-party kernels, and you got some weird problem, you should keep an eye to check your dtbo
has been replaced or not.
该repo fork自 https://github.com/UtsavBalar1231/kernel_xiaomi_sm8250 ,感谢 @UtsavBalar1231!
主要目的是想修复电量卡在1%的问题,以及defconfig有一些小的改动和优化,以及提供带KernelSU的预编译好的内核(原作的没提供有KernelSU,而且原作release里的lmi内核在我的K30Pro上无法启动,所以就想着自己编译了)。以及再提供一个更直观和易用的编译脚本和README,方便大家自己折腾和修改,编译自己的内核。
该focked分支以及release里的编译好的内核成品基于原repo的android12-stable
分支,应当能在原版MIUI和第三方的基于AOSP的各种Android12的ROM上使用。Android13理论上也许应该也行,但我没有测试。同样我手上只有lmi(K30Pro),所以我只在lmi上的最新版官方MIUI 14.0.4(Android12)上测试了。如果你有Android13,或者其它型号的机器,欢迎测试并反馈:)
注意:该内核的zip包不包含dtbo.img
,并且不会刷你的dtbo分区。推荐使用原厂的dtbo
,或者来自第三方系统包自带的dtbo(如果原作者确认那好用的话)。因为该源码build出来的dtbo.img
有些小问题,比如在锁屏界面上尝试熄屏时,屏幕会突然闪一下到最高亮度。如果你刷过其它第三方内核,或者遇到一些奇怪的问题,建议检查一下你的dtbo
是否被替换过。