Android メモ

新しいリリースや、リリース間の違いを確認するために特定リリースの manifest を確認したい

manifest.git の clone を作る

git clone https://android.googlesource.com/platform/manifest.git # 初回
git pull # 更新
git branch -a # manifest のブランチ状況
git checkout origin/android-4.0.3_r1 # 特定のリリースの manifest の取得

複数のリリースのソースコードを効率的に取得したい

Mirror を作って、cron 等で repo sync しておく。新しい repo をする場合は --reference=mirror をつける。

cd mirror
repo init -u https://android.googlesource.com/mirror/manifest --mirror