Merge "Do not allow elevating system_server priority for remote anim" into pi-dev

This commit is contained in:
TreeHugger Robot
2018-04-23 18:03:07 +00:00
committed by Android (Google) Code Review

View File

@@ -14542,6 +14542,10 @@ public class ActivityManagerService extends IActivityManager.Stub
} }
void setRunningRemoteAnimation(int pid, boolean runningRemoteAnimation) { void setRunningRemoteAnimation(int pid, boolean runningRemoteAnimation) {
if (pid == Process.myPid()) {
Slog.wtf(TAG, "system can't run remote animation");
return;
}
synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) {
final ProcessRecord pr; final ProcessRecord pr;
synchronized (mPidsSelfLocked) { synchronized (mPidsSelfLocked) {