Android のフレームワークの処理を確認したい時に必要な環境

  • Android エミューレータ
  • Source for Android
  • Google Apis * System image [Google play * System image ではない]

上記の環境を Android SDK よりダウンロードして、エミュレーターを起動

Android Studio の [Attach Debugger to Android Process] をクリック

[Show all processes] をチェック

[Create New] を選択、[system_process] を選択して [OK] をクリック

後は、普通のデバックと同様に、フレームワークのソースを参照出来るしブレイクポイントを設定出来ます。

※重要なのは「Google Apis * System image」を使用する事です。

Google play * System image を使用すると、[Show all processes]  チェックしても[system_process] は表示されません。

 

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha