当前位置:   article > 正文

Android9一键安全手机_一键新机自己编译

一键新机自己编译

1.Ubuntu18.04.4环境配置

  1. export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin:$PATH
  2. export GCC_COLORS=auto
  3. #NDKROOT=/usr/local/Android/android-ndk-r16b
  4. #export PATH=$NDKROOT:$PATH
  5. #export NDKBIN=/usr/local/Android/android-ndk-r16b/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
  6. #NDKROOT=/usr/local/Android/android-ndk-r19c
  7. #export PATH=$NDKROOT:$PATH
  8. #export NDKBIN=/usr/local/Android/android-ndk-r19c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
  9. NDKROOT=/usr/local/Android/android-ndk-r21
  10. export PATH=$NDKROOT:$PATH
  11. export NDKBIN=/usr/local/Android/android-ndk-r21/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/bin
  12. export JAVA_HOME=/usr/local/Android/jdk1.8.0_191
  13. export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
  14. export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
  15. export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"

2.修改Android9.0系统源码

https://wiki.lineageos.org/devices/x2/build

  1. 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
  1. mkdir -p ~/bin
  2. curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
  3. chmod a+x ~/bin/repo
  1. cd Android9.0
  2. repo init -u https://github.com/LineageOS/android.git -b lineage-16.0
  3. repo sync
  1. Android9.0
  2. git clone https://github.com/MoKee/android_device_leeco_x2.git -b mkp
  3. git clone https://github.com/LineageOS/android_device_leeco_x2.git -b lineage-16.0
  4. git clone https://github.com/LineageOS/android_device_leeco_msm8996-common.git -b lineage-16.0
  5. git clone https://github.com/MoKee/android_vendor_leeco_x2.git -b mkp
  6. git clone https://github.com/MoKee/android_vendor_leeco_msm8996-common.git -b mkp
  7. git clone https://github.com/LineageOS/android_kernel_leeco_msm8996.git -b lineage-16.0
  8. git clone https://github.com/MoKee/android_kernel_leeco_msm8996.git -b mkp
  1. Android10.0
  2. git clone https://github.com/MoKee/android_device_leeco_x2.git -b mkq-mr1
  3. git clone https://github.com/LineageOS/android_device_leeco_x2.git -b lineage-17.1
  4. git clone https://github.com/LineageOS/android_device_leeco_msm8996-common.git -b lineage-17.1
  5. git clone https://github.com/MoKee/android_vendor_leeco_x2.git -b mkq-mr1
  6. git clone https://github.com/MoKee/android_vendor_leeco_msm8996-common.git -b mkq-mr1
  7. git clone https://github.com/LineageOS/android_kernel_leeco_msm8996.git -b lineage-17.1
  8. git clone https://github.com/MoKee/android_kernel_leeco_msm8996.git -b mkq-mr1

3.编译Android9.0系统源码

  1. source build/envsetup.sh
  2. breakfast x2
  3. croot
  4. brunch x2

图片

图片

4.Android9.0系统源码(编译成功)

图片

5.一键新机(安全手机-刷机成功)

图片

图片

APP安全浅析

APP隐私合规

移动APP安全合规

鸿蒙系统(HarmonyOS)应用开发入门篇

Ubuntu20.04.2.0环境的安装与配置过程

Android10系统源码的下载与编译方法(完美编译)

Android11系统源码的下载与编译方法(解决内存、磁盘不足问题)

Ubuntu虚拟机环境搭建Android系统源码编译环境及问题解决方法

Ubuntu18.04/20.04虚拟机编译Android4/5/6/7/8/9/10/11系统源码的问题解决

Ubuntu环境Python3版本的更新升级使用方法

Ubuntu安装配置切换Python3版本的解决方法

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

图片

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/447208
推荐阅读
相关标签
  

闽ICP备14008679号