Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>(Rewritten as the author is asking about the number of local binders listed using <code>adb shell dumpsys meminfo</code>). I can't answer the question about whether this is normal, as I'd never spotted that command before!</p> <p>But here is a bit of information about the scenarios which could cause it.</p> <p>A local binder is any object which the Android 'Binder' kernel IPC driver believes can receive function calls from another process.</p> <p>Such things could include:</p> <ul> <li>Any objects you've declared within your code that derive from <code>IBinder</code>. There are always such objects when you're declaring an Android service. Very often you'll also create such objects (as listeners) when you're using someone else's service.</li> <li>Equivalent Java <code>IBinder</code>-derived objects within the Android framework. In some cases this might be obvious, such as when you provide some sort of listener to some system service. But other Android framework classes often have Binders involved too. For example, I have a feeling that an Android Bitmap contains an <code>IBinder</code> somewhere within it, in order to arrange for different processes to share the bitmap data without needing to copy it. I'm not sure about that, though.</li> <li>Parts of the Android framework which are in C++ are also Binders. For example, I think each Android application process has a connection to the graphics composition engine (surface flinger) called <code>ISurfaceComposer</code>.</li> </ul> <p>So, to work out why you have so many Binders, think about these things:</p> <ul> <li>Are you in any way expecting notification of any system event from some other process? For example a Broadcast Receiver, or any sort of listener you've passed to a system service, etc.</li> <li>Do you yourself use <code>Service</code>s and AIDL?</li> <li>Are you passing complex Android framework classes into system APIs?</li> </ul> <p>My gut feeling is that 100 is unusual; probably nothing actually to <em>worry</em> about, but I'd still be curious to know if you work out what the cause was.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload