源码基于:Android R 在之前的几篇博文中,对Android binder 的通信原理进行的深入的剖析,这些博文包括:binder 简介、servicemanager启动、service注册、service获取、Java 端的service 注册和获取。 在前一文中,通过实例,详细地说明了native 下 的C-S 通信原理。 本文在之前的基础上,以实例的形式进一步的分析 java 下的 C-S 通信。 App 中使用 binder 进行通信时都会使用 aidl,这样的使用 framework 也很常见,而系统在编译的时候都会根据 aidl 的接口定义,自动编译出对应的 Java 文件。 最新的版本中 aidl 不但能够保证 Java 端的 C - S通信,也能保证 Java client - native service 的通信。 这里以PMS 的install 为例,PMS 在进行APK 安装时,会进行dex 的翻译,依赖守护进程installd 完成。...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile