配置开发环境

  1. 下载AOSP android-11.0.0_r48代码到android-11.0.0_r48文件夹。

    1
    2
    3
    4
    cd android-11.0.0_r48
    repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r48
    repo sync -j8
    repo start android-11.0.0_r48 --all
    

  2. 编译AOSP。

    1
    2
    3
    4
    cd android-11.0.0_r48
    source build/envsetup.sh
    lunch aosp_arm64-eng
    make
    

  3. 在AOSP的目录下建一个目录存放需编译的代码。

    1
    2
    cd android-11.0.0_r48
    mkdir code