Crash apps when they provide bad notifications instead of crashing the system process.

Bug: 2958415
Change-Id: I9cbef340fb20a64eca8493950b814399c26ce197
This commit is contained in:
Joe Onorato
2010-09-23 16:49:20 -07:00
parent f9ec03c0f5
commit eaa0718780

View File

@@ -347,7 +347,9 @@ class ServiceRecord extends Binder {
// If it gave us a garbage notification, it doesn't
// get to be foreground.
ams.setServiceForeground(name, ServiceRecord.this,
localForegroundId, null, true);
0, null, true);
ams.crashApplication(appUid, appPid, localPackageName,
"Bad notification for startForeground: " + e);
}
}
});