OSDN Git Service

Shuffle around shell protected broadcast checks.
authorJeff Sharkey <jsharkey@android.com>
Wed, 11 Jan 2017 02:42:43 +0000 (19:42 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 11 Jan 2017 02:42:45 +0000 (19:42 -0700)
commit90da5a7c5072bbf97a52c05539c1ac5662b47fbc
treeb0b4105db9a7d0da4d6e2c5c11808adc9f199354
parentbd439dcef072fd9a853a6bc9055cfa347ad7c969
Shuffle around shell protected broadcast checks.

If a shell is running as root, they should be able to send protected
broadcasts, but we still want to suppress Log.wtf() when sending
broadcasts from the shell.

Test: builds, boots
Bug: 34107119
Change-Id: Id475b2c9d98ca6a675ee1545ed324736f0587caf
services/core/java/com/android/server/am/ActivityManagerService.java