Recently I read
final long origId = Binder.clearCallingIdentity();
//other local method.
I don't think I can answer better than the description in the official APIs: http://developer.android.com/reference/android/os/Binder.html
public static final long clearCallingIdentity ()
Reset the identity of the incoming IPC on the current thread. This can be useful if, while handling an incoming call, you will be calling on interfaces of other objects that may be local to your process and need to do permission checks on the calls coming into them (so they will check the permission of your own local process, and not whatever process originally called you).