本文以点击桌面快捷方式启动app来看源码
Launcher process -> Binder -> System process -> Binder -> Target process LauncherActivity -> ActivityManagerProxy ->AMS -> ApplicationThreadProxy -> Instrumentation.newActivity1、先看LaunchActivity源码
public abstract class LauncherActivity extends ListActivity {
//如果通过component、schema启动一个app,那么这个mIntent中会有数据
Intent mIntent;
...
private class ActivityAdapter extends BaseAdapter implements Filterable {
...
public ActivityAdapter(IconResizer resizer) {
...
mActivitiesList = makeListItems();
}
public Intent intentForP