通过进程间通信将原始对象引用转移到另一个程序后,我们可以触摸它吗?

Can we touch the original object reference after transfer it to another program via Interprocess Communication?

案例是: 在server中,我有一个对象A​​,然后通过Interprocess Communication将它传递给client中的另一个程序(例如 AIDL)。

通过AIDL,服务器中的对象A会在客户端被分解-->传输-->回收。假设它在 client 的程序中作为对象 A​​' 恢复。

我的问题是: 对象 A​​A​​' 有什么联系吗? 也就是说,通过IPC将对象A​​传递给另一个程序后,是否可以在客户端 ?

Is there something connect with object A and A' ?

否,对于大多数数据类型。 A 和 A' 完全独立 — 有效地按值传递。

例外情况是 A 的类型本身是通过 AIDL 定义的,例如回调。然后,如果带有 A' 的应用在其上调用方法,则这些方法实际上是在 A 上调用的。

after transferring the object A to another program via IPC, can we obtain the reference of original object A in the program in the client ?

这是不可能的,因为 A 和 A' 属于不同的进程。