OSDN Git Service

Check target api version before crashing apps.
authorJulia Reynolds <juliacr@google.com>
Wed, 11 Oct 2017 12:44:46 +0000 (08:44 -0400)
committerJulia Reynolds <juliacr@google.com>
Wed, 11 Oct 2017 18:11:26 +0000 (18:11 +0000)
commit5a4399a34cd73d80041348463fd6e9d5954f77ef
tree4649ff89cd402b2f974a58f0c0766f25bc00f8bf
parent2d7a4a3f674d62adfb2825b738f2e87ec246194d
Check target api version before crashing apps.

All foreground service notifications need to be posted to a valid
notification channel, but only crash apps that don't provide a
valid notification if they target O_MR1+.

Fixes: 66905243
Test: manual, open apps with invalid notifications that do and don't
target O_MR1.

Change-Id: I60897302bf9806cba0e0be365e65c5e8c4ef4806
services/core/java/com/android/server/am/ServiceRecord.java