OSDN Git Service

DO NOT MERGE - Kill apps outright for API contract violations
authorChristopher Tate <ctate@google.com>
Tue, 4 Feb 2020 02:35:13 +0000 (18:35 -0800)
committerAnis Assi <anisassi@google.com>
Thu, 4 Jun 2020 18:25:47 +0000 (11:25 -0700)
commit5d151597b565e5a8bf7e95b0c12da9434b1e38c1
tree663d2172710d0decd89c83ff1c14942e7204cfa7
parent634fbe134e06d17f2b48507147acb48d19d95c05
DO NOT MERGE - Kill apps outright for API contract violations

...rather than relying on in-app code to perform the shutdown.

Backport of security fix.

Bug: 128649910
Bug: 140108616
Test: manual
Test: atest OsHostTests#testForegroundServiceBadNotification
Change-Id: I94d9de50bb03c33666471e3dbd9c721e9278f7cb
Merged-In: I94d9de50bb03c33666471e3dbd9c721e9278f7cb
(cherry picked from commit 874c974f73839da761177a4e0a53b7f4a7d29288)
core/java/android/app/IActivityManager.aidl
services/core/java/com/android/server/am/ActiveServices.java
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ActivityManagerShellCommand.java
services/core/java/com/android/server/am/AppErrors.java
services/core/java/com/android/server/am/ServiceRecord.java
services/core/java/com/android/server/notification/NotificationManagerService.java