diff options
| author | Marco Nelissen <marcone@google.com> | 2009-07-17 07:59:17 -0700 |
|---|---|---|
| committer | Marco Nelissen <marcone@google.com> | 2009-07-17 10:48:09 -0700 |
| commit | e1babd45e1f849522b63c80d4602ec50eac74cff (patch) | |
| tree | 1a50bf35f5867b7c2950d8a886c8dd13b95a70a9 /libs/binder | |
| parent | 3720cf2de9a86b4fb5583f190b183498f0ad3fc0 (diff) | |
| download | frameworks_base-e1babd45e1f849522b63c80d4602ec50eac74cff.zip frameworks_base-e1babd45e1f849522b63c80d4602ec50eac74cff.tar.gz frameworks_base-e1babd45e1f849522b63c80d4602ec50eac74cff.tar.bz2 | |
Instead of using -1 for pid and uid in the simulator, and then having
to special-case the simulator case all over the framework, just use
getuid and getpid, and intercept those in the simulator wrapper.
Diffstat (limited to 'libs/binder')
| -rw-r--r-- | libs/binder/IPCThreadState.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index c3889e9..c371a23 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -366,13 +366,8 @@ void IPCThreadState::restoreCallingIdentity(int64_t token) void IPCThreadState::clearCaller() { - if (mProcess->supportsProcesses()) { - mCallingPid = getpid(); - mCallingUid = getuid(); - } else { - mCallingPid = -1; - mCallingUid = -1; - } + mCallingPid = getpid(); + mCallingUid = getuid(); } void IPCThreadState::flushCommands() |
