Merge "Crash apps when they provide bad notifications instead of crashing the system process." into gingerbread
This commit is contained in:
@@ -347,7 +347,9 @@ class ServiceRecord extends Binder {
|
|||||||
// If it gave us a garbage notification, it doesn't
|
// If it gave us a garbage notification, it doesn't
|
||||||
// get to be foreground.
|
// get to be foreground.
|
||||||
ams.setServiceForeground(name, ServiceRecord.this,
|
ams.setServiceForeground(name, ServiceRecord.this,
|
||||||
localForegroundId, null, true);
|
0, null, true);
|
||||||
|
ams.crashApplication(appUid, appPid, localPackageName,
|
||||||
|
"Bad notification for startForeground: " + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user