However, if a process wants to offer some useful service(s) to other processes, it needs to provide some mechanism that allows other processes to discover and interact with those services. This is usually a good thing, both for stability and security reasons: multiple processes modifying the same memory can be catastrophic, and you don’t want a potentially rogue process that was started by another user to dump your email by accessing your mail client’s memory.
#Binfer app android#
Processes in Android have separate address spaces and a process cannot directly access another process’s memory (this is called process isolation). Before getting into detail about how Binder works, let’s briefly review IPC.
![binfer app binfer app](http://mail.globalsoftlink.com/wp-content/uploads/2019/02/binfer-cloud-graphic-3.png)
Inter-Process Communicationīinder is an inter-process communication (IPC) mechanism. Now we have good enough reasons to know about the binder so let’s dive into it. In the Android platform, the binder is used for everything that happens across processes in the core platform. The answer to all of these question is very simple: T he Binder. Photo by Jonathan Kemper on Unsplash Introductionįirst of all, why do we even need to know about binder? Have you ever thought what prevents us from tricking the system into hiding the soft- input keyboard which is being used by some other application, or releasing a wake lock acquired by another application, or from hiding another application’s windows from the screen? Basically, how do Android’s core system services respond to requests made by third-party applications in a way that is secure?