1. AOSP Import Local Manifest
1.1. 創(chuàng)建 local_manifests 文件夾
在 AOSP 源碼.repo 目錄中創(chuàng)建local_manifests 文件夾
1.2. 創(chuàng)建 manifest.xml
在 local_manifests 文件夾中 創(chuàng)建 manifest.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="origin" fetch="ssh://xxxx@xx.xx.xx.xx:xxxx/" />
<remove-project name="platform/frameworks/base" />
<project path="frameworks/base" name="sample/frameworks/base" remote="origin" revision="sample"/>
</manifest>
注:
remote 標簽:name 要和aosp 區(qū)分,現(xiàn)在固定origin,fetch 為gerrit 地址
remove-project標簽: 表示刪除 aosp 原有的代碼倉代碼,不使用這個倉的代碼
project標簽:path 表示代碼在本地存放的路徑, name 表示服務器上倉的地址,這個地址加上fetch地址就是你的倉的完整地址,remote 表示這個倉的地址依賴于那個remote服務器,不寫默認是aosp , revision: 需要下載的分支名稱。