android - Tracing From Activity.java to ActivityManagerServices -


i'm trying trace registerreceiver() activity class understand process flow.

i'll believe call end in activitymanagerservice.registerreceiver().

from understanding, should involve request systemservice, since activitymanagerservice live in systemservice. problem, cannot trace code execution flow activity.java activitymanagerservice.

from developer.android.com:

java.lang.object     ↳    android.content.context         ↳    android.content.contextwrapper             ↳    android.view.contextthemewrapper                 ↳    android.app.activity 

i've been looking class above trace implementation of registerreceiver(), can not locate code request systemservice of activitymanagerservice.

hope can explain how activitymanagerservice triggered.

thank you.

found answer google groups.

since activity , contextthemewrapper not implement registerreceiver(), reach contextwrapper:

contextwrapper.registerreceiver() [mbase in contextwrapper contextimpl]     contextimpl.registerreceiver()         activitymanagernative.registerreceiver()              >> go through binder               activitymanagerservice.registerreceiver() 

Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -