sudo apt-get update
https://github.com/MiCode/Xiaomi_Kernel_OpenSource
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/lineageOS/LineageOS/android.git -b cm-14.1 --repo-url=https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
14.1 可以
https://www.freesion.com/article/8090972857/
https://www.lineageos.org.cn/thread-147-1-1.html
https://www.jianshu.com/p/df849f5f5726
http://www.oneplusbbs.com/thread-3334576-1-mobile-2.html
build/envsetup.sh
breakfast sagit
执行这两句
devices 下面会出现 小米
repo sync -f --force-sync–no-clone-bundle
外网搜索关于lineageos的编译视频
build lineageos from source
youtube