どんな Intent 受け取ってくれるのかとか知りたい。
けどわからん。
そんなときはソースコード見ればいい。
OSS バンザイ。
手っ取り早く進みたい人はこちらをどうぞ。
http://source.android.com/source/downloading.html
Install Repo
バージョン管理に git と repo というのを使っているらしいので repo をとりあえずインストールする。※ Git は入ってる前提。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/bin | |
# PATH に ~/bin 追加する | |
vim ~/.bashrc | |
export PATH=~/bin:$PATH | |
source ~/.bashrc | |
# repo インストール | |
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo | |
chmod a+x ~/bin/repo |
作業ディレクトリに移動
ソースコードをダウンロードするためのディレクトリ作成する。これで ~/Documents/android_source にリポジトリができた。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/Documents/android_source | |
cd ~/Documents/android_source | |
repo init -u https://android.googlesource.com/platform/manifest |
ファイルを取得
このままだとファイルが無いので、リモートリポジトリから取得してきます。で、因みに結構時間掛かる。このコマンド流しながらこの記事書いてるくらい。
しかもまだ終わらない。
気長に待ちましょう・・・・・・(´・ω・`)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
repo sync |
あとは・・・・
煮るなり焼くなり。Gmail のソースはどこだろう・・・。
ダウンロードが終わったらいろいろ見てみたいと思います。