diff --git a/.gitignore b/.gitignore index 485dee6..090a1f0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea +.DS_Store diff --git a/Compile7.1.2OnUbuntu18.04.md b/Compile7.1.2OnUbuntu18.04.md new file mode 100644 index 0000000..732b135 --- /dev/null +++ b/Compile7.1.2OnUbuntu18.04.md @@ -0,0 +1,26 @@ +# 在Ubuntu18.04中编译Android 7.1.2 + +## 1 安装依赖项 + +```shell +sudo apt install openjdk-8-jdk git m4 make g++-multilib gcc-multilib lib32ncurses5-dev lib32z1-dev +``` + +## 2 配置 repo + +请参考: [https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/](https://mirrors.tuna.tsinghua.edu.cn/help/AOSP/) + +## 3 同步源码 + +```shell +repo init -u https://aosp.tuna.tsinghua.edu.cn/platform/manifest -b android-7.1.2_r39 +``` + + +## 4 编译 + +```shell +source build/envsetup.sh +lunch aosp_arm-eng +m +``` \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b853e07 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM ubuntu:18.04 + +ENV REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo' + +RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak +COPY sources.list /etc/apt/ + +RUN apt-get update +RUN apt-get install -y curl openjdk-8-jdk python git gpg +RUN mkdir /root/bin \ + &&curl https://storage.googleapis.com/git-repo-downloads/repo> /root/bin/repo \ + &&chmod a+x /root/bin/repo + +ENV PATH=/root/bin:$PATH diff --git a/README.md b/README.md index dca57a8..f159e3c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # 编译Android源码 +## 相关视频教程 +[https://www.bilibili.com/video/BV1BJ411t7Ry](https://www.bilibili.com/video/BV1BJ411t7Ry) + ## 说明 本教程演示如何编译 Android 源码,目的是教会你如何基于aosp(Android open source project)定制Android系统。教程演示所使用的手机是Nexus6,但本教程是通用教程,并不局限于Nexus6,只要你有合适的驱动包,你就可以面向任意机型做定制。 diff --git "a/docs/344円270円213円350円275円2751円.pdf" "b/docs/344円270円213円350円275円2751円.pdf" new file mode 100644 index 0000000..8358078 Binary files /dev/null and "b/docs/344円270円213円350円275円2751円.pdf" differ diff --git "a/docs/344円270円213円350円275円2752円.pdf" "b/docs/344円270円213円350円275円2752円.pdf" new file mode 100644 index 0000000..792263f Binary files /dev/null and "b/docs/344円270円213円350円275円2752円.pdf" differ diff --git "a/docs/347円274円226円350円257円2211円.pdf" "b/docs/347円274円226円350円257円2211円.pdf" new file mode 100644 index 0000000..a5bfaeb Binary files /dev/null and "b/docs/347円274円226円350円257円2211円.pdf" differ diff --git "a/docs/347円274円226円350円257円2212円.pdf" "b/docs/347円274円226円350円257円2212円.pdf" new file mode 100644 index 0000000..3909f8c Binary files /dev/null and "b/docs/347円274円226円350円257円2212円.pdf" differ diff --git "a/docs/347円274円226円350円257円2213円.pdf" "b/docs/347円274円226円350円257円2213円.pdf" new file mode 100644 index 0000000..20a4818 Binary files /dev/null and "b/docs/347円274円226円350円257円2213円.pdf" differ diff --git "a/docs/347円274円226円350円257円2214円.pdf" "b/docs/347円274円226円350円257円2214円.pdf" new file mode 100644 index 0000000..1f03639 Binary files /dev/null and "b/docs/347円274円226円350円257円2214円.pdf" differ diff --git "a/docs/347円274円226円350円257円2215円.pdf" "b/docs/347円274円226円350円257円2215円.pdf" new file mode 100644 index 0000000..44b5d14 Binary files /dev/null and "b/docs/347円274円226円350円257円2215円.pdf" differ diff --git "a/docs/347円274円226円350円257円2216円.pdf" "b/docs/347円274円226円350円257円2216円.pdf" new file mode 100644 index 0000000..c9a59cf Binary files /dev/null and "b/docs/347円274円226円350円257円2216円.pdf" differ diff --git a/sources.list b/sources.list new file mode 100644 index 0000000..08d3cb2 --- /dev/null +++ b/sources.list @@ -0,0 +1,8 @@ +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse +# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse +# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse +# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse +deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse +# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse \ No newline at end of file

AltStyle によって変換されたページ (->オリジナル) /