Merge change 3726 into donut
* changes: ActivityManager: Ensure that we clear the calling process identity around calls to Process.setProcessGroup().
This commit is contained in:
@@ -12190,11 +12190,15 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
|||||||
"Setting process group of " + app.processName
|
"Setting process group of " + app.processName
|
||||||
+ " to " + app.curSchedGroup);
|
+ " to " + app.curSchedGroup);
|
||||||
if (true) {
|
if (true) {
|
||||||
|
long oldId = Binder.clearCallingIdentity();
|
||||||
try {
|
try {
|
||||||
Process.setProcessGroup(app.pid, app.curSchedGroup);
|
Process.setProcessGroup(app.pid, app.curSchedGroup);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.w(TAG, "Failed setting process group of " + app.pid
|
Log.w(TAG, "Failed setting process group of " + app.pid
|
||||||
+ " to " + app.curSchedGroup);
|
+ " to " + app.curSchedGroup);
|
||||||
|
e.printStackTrace();
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(oldId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user