当前位置: 首页 > news >正文

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 $Dgit clone -b v2.50.1 https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
#file /OP3TLos14Build/git-repo/.git/config
#file  /OP3TLos14Build/git-repo/repoexport GitRepoD=/OP3TLos14Build/git-repo
export PATH_BASE=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export PATH=$PATH_BASE:$GitRepoDwhich 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-lfsexport 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-lfsrepo 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.
http://www.lryc.cn/news/522902.html

相关文章:

  • 存储过程(SQL)
  • 【I/O编程】UNIX文件基础
  • 完美解决phpstudy安装后mysql无法启动
  • 自己造轮子-基于Ceres的GNSS-INS松耦合组合导航算法
  • 「实战应用」如何为DHTMLX JavaScript 甘特图添加进度线
  • MySQL面试题2025 每日20道
  • HTML学习笔记(4)
  • 解决 MySQL 服务无法启动:failed to restart mysql.service unit not found
  • 在 Ubuntu 上安装 Nginx 的详细指南
  • 58,【8】BUUCTF [PwnThyBytes 2019]Baby_SQL1
  • 2.1 三个世界”与“图灵测试”:人工智能与人类智能的深度探索
  • 基于微信小程序的优购电商系统设计与实现(LW+源码+讲解)
  • JS宏进阶: 工厂函数与构造函数
  • 【Linux】线程全解:概念、操作、互斥与同步机制、线程池实现
  • 关于ubuntu命令行连接github失败解决办法
  • # [游戏开发] [Unity游戏开发]3D滚球游戏设计与实现教程
  • 强推未发表!3D图!Transformer-LSTM+NSGAII工艺参数优化、工程设计优化!
  • Flutter中的事件冒泡处理
  • 昇腾环境ppstreuct部署问题记录
  • 基于 Python 的财经数据接口库:AKShare
  • 电力场景红外测温图像绝缘套管分割数据集labelme格式2436张1类别
  • 数字艺术类专业人才供需数据获取和分析研究
  • Java中json的一点理解
  • Vue项目搭建教程超详细
  • 2025年01月蓝桥杯Scratch1月stema选拔赛真题—美丽的图形
  • 【React】插槽渲染机制
  • 计算机网络 | 什么是公网、私网、NAT?
  • 如何解决Outlook无法连接到服务器的问题
  • vue2 web 多标签输入框 elinput是否当前焦点
  • 32单片机综合应用案例——物联网(IoT)环境监测站(四)(内附详细代码讲解!!!)