# 内核源码获取 ### 使用官方源码 如果你的设备的厂商没有出现在此处,或没有所需要的机型,则你需要自己想办法获取源码 - [小米](https://github.com/MiCode/Xiaomi_Kernel_OpenSource/) - [OPPO](https://github.com/oppo-source) - [真我](https://github.com/realme-kernel-opensource) - [一加](https://github.com/OnePlusOSS) - [moto](https://github.com/MotorolaMobilityLLC/kernel-msm) - [华为](https://consumer.huawei.com/en/opensource/) - ~~[索尼](https://github.com/sonyxperiadev)(备注:存疑)~~ ### 使用第三方源码 可能需要搭配第三方系统使用,可能会无法开机,请谨慎使用。 这里列举了一些第三方系统的源码 - [lineageOS](https://github.com/lineageos) - [PixelExperience](https://github.com/PixelExperience-Devices) - [ArrowOS](https://github.com/ArrowOS-Devices) ### 使用github搜索 首先需要知道你的机型代号和soc,可以通过devcheck知道。 然后进入[github搜索页面](https://github.com/search) 一般地,内核源码的名称一般为: - android_kernel_厂家_机型代号 - android_kernel_厂家_soc代号 当然也有把android省略的。 当然也有例外 例如android_kernel_oppo_mtk_4.19 ### 备注 oppo内核源码请使用wget下载而不是git oppo内核源码编译需要克隆附加内核源码