ipc - android AIDL without Remote service -


is possible implement aidl without implementation of remote service? after investigation of google play services notice aidl calls executed following way

  1. obtain remote context following way

    context c = context.createpackagecontext("com.google.android.gms", 3)     
  2. get class loader , load class implements ibinder

     classloader localclassloader = c.getclassloader();  ibinder localibinder = (ibinder)localclass.newinstance();  iinterface localiinterface = paramibinder.querylocalinterface("com.google.android.gms.plus.internal.iplusonebuttoncreator"); 

and can communicate it!

i wonder why allowed , why there no service on other side? whole data lives? call starts new process?


Comments