赞
踩
1.Ubuntu18.04.4环境配置
- export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin:$PATH
- export GCC_COLORS=auto
-
- #NDKROOT=/usr/local/Android/android-ndk-r16b
- #export PATH=$NDKROOT:$PATH
- #export NDKBIN=/usr/local/Android/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
-
- #NDKROOT=/usr/local/Android/android-ndk-r19c
- #export PATH=$NDKROOT:$PATH
- #export NDKBIN=/usr/local/Android/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
-
- NDKROOT=/usr/local/Android/android-ndk-r21
- export PATH=$NDKROOT:$PATH
- export NDKBIN=/usr/local/Android/android-ndk-r21/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
-
- export JAVA_HOME=/usr/local/Android/jdk1.8.0_191
- export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
- export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
-
- export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
2.修改Android9.0系统源码
https://wiki.lineageos.org/devices/x2/build
-
- sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev
-
- mkdir -p ~/bin
- curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- chmod a+x ~/bin/repo
-
- cd Android9.0
- repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
- repo sync
- Android9.0
- git clone https://github.com/MoKee/android_device_leeco_x2.git -b mkp
-
- git clone https://github.com/LineageOS/android_device_leeco_x2.git -b lineage-16.0
-
- git clone https://github.com/LineageOS/android_device_leeco_msm8996-common.git -b lineage-16.0
-
- git clone https://github.com/MoKee/android_vendor_leeco_x2.git -b mkp
-
- git clone https://github.com/MoKee/android_vendor_leeco_msm8996-common.git -b mkp
-
- git clone https://github.com/LineageOS/android_kernel_leeco_msm8996.git -b lineage-16.0
-
- git clone https://github.com/MoKee/android_kernel_leeco_msm8996.git -b mkp
- Android10.0
- git clone https://github.com/MoKee/android_device_leeco_x2.git -b mkq-mr1
-
- git clone https://github.com/LineageOS/android_device_leeco_x2.git -b lineage-17.1
-
- git clone https://github.com/LineageOS/android_device_leeco_msm8996-common.git -b lineage-17.1
-
- git clone https://github.com/MoKee/android_vendor_leeco_x2.git -b mkq-mr1
-
- git clone https://github.com/MoKee/android_vendor_leeco_msm8996-common.git -b mkq-mr1
-
- git clone https://github.com/LineageOS/android_kernel_leeco_msm8996.git -b lineage-17.1
-
- git clone https://github.com/MoKee/android_kernel_leeco_msm8996.git -b mkq-mr1
3.编译Android9.0系统源码
- source build/envsetup.sh
- breakfast x2
- croot
- brunch x2
4.Android9.0系统源码(编译成功)
5.一键新机(安全手机-刷机成功)
Android11系统源码的下载与编译方法(解决内存、磁盘不足问题)
Ubuntu虚拟机环境搭建Android系统源码编译环境及问题解决方法
Ubuntu18.04/20.04虚拟机编译Android4/5/6/7/8/9/10/11系统源码的问题解决
Android系统在线源码
http://androidxref.com
http://aospxref.com/
Android系统所有版本
https://www.androidos.net.cn/sourcecode
Android Kernel系统所有版本
https://www.androidos.net.cn/sourcecode
Android系统核心服务
https://www.androidos.net.cn/androidservice
https://download.mokeedev.com/
https://wiki.lineageos.org/devices/
https://github.com/MoKee
https://github.com/LineageOS
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。