Android Binder clearing caller identity
问题 Recently I read Android source codes and find that a pair of methods are always called when doing some Binder IPC call. I read the comment, but I can't clearly know the root reason. The pair of method is as follow: final long origId = Binder.clearCallingIdentity(); //other local method. Binder.restoreCallingIdentity(origId); Does anyone know what's the function of that pair of method? It seems to relate to permission. 回答1: I don't think I can answer better than the description in the official