oneplus3t-lineage-14编译-android7
lineageOS-14(android7)的开发者模式/usb调试(adb)有root功能, 而lineageOS-16(android9)无
oneplus3t-lineage-14编译-android7
1
清华linageos镜像
x
lineage-14.1-20180223-nightly-oneplus3-signed.zip
ntfs分区挂载为普通用户目录 , ext4分区挂载为普通用户目录
bfsu/lineageOS镜像
ts/lingeageOS镜像
oneplus3/lineage-build-simple-manual.md, manifest-parser/git-repo#6_build, LineageOS16_oneplus3t_gitRepoLs_clone_desc.pdf
LineageOS/android.git/cm-14.1 : 改为bfsu镜像
高通私有驱动 TheMuppets/proprietary_vendor_oneplus.git/cm-14.1/oneplus3 == TheMuppets/proprietary_vendor_oneplus/.git/8b8001
1. 仓库群下载工具准备
D=/OP3TLos14Build
cd $D
git clone -b v2.50.1 https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
#file /OP3TLos14Build/git-repo/.git/config
#file /OP3TLos14Build/git-repo/repo
export GitRepoD=/OP3TLos14Build/git-repo
export PATH_BASE=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PATH=$PATH_BASE:$GitRepoD
which repo # == /OP3TLos14Build/git-repo/repo
2. 仓库群下载
LosVer=cm-14.1
#repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/lineageOS/LineageOS/android.git -b cm-14.1 --git-lfs
export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo'
#manifest_repo=https://mirrors.tuna.tsinghua.edu.cn/git/lineageOS/LineageOS/android.git
#manifest_repo=https://mirrors.bfsu.edu.cn/git/lineageOS/LineageOS/android.git
manifest_repo=https://gitlab.com/cm-14/android.git #已修改AOSP为国内镜像
repo init --manifest-url $manifest_repo --manifest-branch $LosVer --git-lfs
repo sync
循环显示所有仓库 : repo forall -c 'echo $PWD; echo $(git remote get-url $(git remote)) ; git reset --hard'
2b 我修改的代码
修改/OP3Los14Build/frameworks/base/.git/config
origin url为: https://gitlab.com/lineage14_1_oneplus3t/android_frameworks_base.git
3. 下载oneplus3相关仓库
packages/resources/devicesettings
git clone -b $LosVer https://github.com/LineageOS/android_packages_resources_devicesettings.git $D/packages/resources/devicesettings
#若路径写错为 $D/packages/resources , mak bacon收到如下报错(在日志中距离很远):
# ERROR: resource directory 'device/oppo/common/configpanel/../../../../packages/resources/devicesettings/res' does not exist
# 其中 device/oppo/common/configpanel/../../../../packages/resources/devicesettings/res == packages/resources/devicesettings/res
# 提示 了 android_packages_resources_devicesettings.git 的正确路径是 packages/resources/devicesettings
oneplus3高通私有驱动(vendor)下载 方法1: 不用此法
下载 git仓库,但仓库有将近10个GB,因此不用此方法
注意: 目录TheMuppets-proprietary_vendor_oneplus
不要放在 /OP3TLos14Build
下, 否则 会被 mka showcommands bacon
认为和 软链接/OP3TLos14Build/vendor/oneplus/oneplus3
重复了。 这可能是cm-14.1的问题, 貌似 LinageOS-16无此问题.
#命令目标: 构造软链接: $D/vendor/oneplus/oneplus3 --> /app/TheMuppets-proprietary_vendor_oneplus/oneplus3
#D=/OP3TLos14Build
#LosVer=cm-14.1
proprD=/app
proprietary_vendor_oneplus=$proprD/TheMuppets-proprietary_vendor_oneplus
git clone https://githubfast.com/TheMuppets/proprietary_vendor_oneplus.git -b $LosVer $proprietary_vendor_oneplus
#命令展开: git clone https://githubfast.com/TheMuppets/proprietary_vendor_oneplus.git -b cm-14.1 /app/TheMuppets-proprietary_vendor_oneplus
ln -s