所有的android的app启动都有三种深入启动的方式:
①app——runtime service——lib
这种启动方式是:
Ⅰapp程序中启动application framework 层中runtime service
Ⅱruntime service通过jni调用libray层中的native binding
Ⅲnative binding通过动态加载的方式来调用hal library层的东西
Ⅳhal library再调用linux kernel的东西 相应示意图如下:

②app——runtime service——native service——lib
Ⅰapp调用application frame work 中的runtime service
Ⅱruntime service 通过jni机制来调用natvie service binding
Ⅲnative service binding 通过远程的ipc机制来调用native service
Ⅳnative service通过动态加载的方式来调用hal library层的东西
Ⅴhal library再调用linux kernel的东西 相应的示意图如下:
③app——runtime service——native deamon——lib
Ⅲnative service binding 通过socket机制调用native deamon 进程
Ⅳnative deamon 进程通过动态加载的方式来调用hal library层的东西
这就是app在android各层中调用理解三种形式。