Ubuntu 16.04(18.04) 编译安卓4.4.4_r1系统源码

编译安卓系统源码

编译环境: Nexus5 + Ubuntu16.04 64bit

在新安装的ubuntu 18.04 64bit下编译通过

一、下载安卓系统源码

国内可以通过清华镜像站 https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/ 来下载

sudo apt-get install curl python git -y
git config --global user.email xxx #xxx是github邮箱
git config --global user.mame xxx  #xxx是github用户名
mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
PATH=~/bin:$PATH
chmod a+x ~/bin/repo
#如果使用清华网址下载, 则修改repo文件, 将url改为:https://mirrors.tuna.tsinghua.edu.cn/git/git-repo
mkdir android-4.4.4_r1 #创建工作目录
cd android-4.4.4_r1
repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-4.4.4_r1  #清华网址
#repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.4_r1  #谷歌网址
repo sync -j4 #或使用如下的脚本文件来持续下载
​
#!/bin/bash  
echo "======start repo sync======"  
        repo sync -j4
        while [ $? != 0 ]; do
        echo "======sync failed, re-sync again======"  
        sleep 2
        repo sync -j4
        done

 

二、获取驱动文件

1). 获取镜像文件编号 https://source.android.com/setup/build-numbers

2). 下载对应的硬件驱动文件

  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值