Android ipc LocalSocket vs Binder (AIDL)
Are there any downsides when using LocalSocket
There is no security at the framework level for
LocalSocket
. While you may "want every app to be able to send data to my service", the user may not, which is why standard IPC can be protected by permissions.startService()
andbindService()
will cause an instance of your service to be created, even starting a process for you, if needed to handle the request. Your service will not be running all of the time. So, you needstartService()
orbindService()
anyway.