am b81645c8: Merge change 3726 into donut

Merge commit 'b81645c868b3d596b5ac56822959feb629a8651e'

* commit 'b81645c868b3d596b5ac56822959feb629a8651e':
  ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().
This commit is contained in:
Android (Google) Code Review
2009-06-10 11:09:13 -07:00
committed by The Android Open Source Project

View File

@@ -12190,11 +12190,15 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
"Setting process group of " + app.processName
+ " to " + app.curSchedGroup);
if (true) {
long oldId = Binder.clearCallingIdentity();
try {
Process.setProcessGroup(app.pid, app.curSchedGroup);
} catch (Exception e) {
Log.w(TAG, "Failed setting process group of " + app.pid
+ " to " + app.curSchedGroup);
e.printStackTrace();
} finally {
Binder.restoreCallingIdentity(oldId);
}
}
if (false) {