解决方案: 使用service,intentService 等,让服务运行于pid中,程序的其他部分通过这些个服务来间接使用这些pid的功能。 或者使用aidl,就像ITelephony 和 PhoneInterfaceManager。