查看原文
其他

Android9一键安全手机

云天实验室 哆啦安全 2022-07-23

1.Ubuntu18.04.4环境配置

export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin:$PATHexport 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-r21export PATH=$NDKROOT:$PATHexport 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_191export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/libexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"


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 ~/bincurl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repochmod a+x ~/bin/repo


cd Android9.0repo init -u https://github.com/LineageOS/android.git -b lineage-16.0repo sync


Android9.0git 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.0git 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


2.修改Android9.0系统源码


3.编译Android9.0系统源码

source build/envsetup.shbreakfast x2crootbrunch 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

您可能也对以下帖子感兴趣

文章有问题?点此查看未经处理的缓存