OSDN Git Service

Add a whitelist to control packages that can use Bugreporting API
authorNikita Ioffe <ioffe@google.com>
Thu, 28 Feb 2019 21:35:02 +0000 (21:35 +0000)
committerNikita Ioffe <ioffe@google.com>
Wed, 13 Mar 2019 17:01:56 +0000 (17:01 +0000)
commitee4d7be21948307a0fedc6ab75a21d41660aa0c5
treeb4e56124c3ae516b0d8a7bdf8646a0ca959ff7c7
parenta018254b452a04e0f4822b38c15b47df9c0a230d
Add a whitelist to control packages that can use Bugreporting API

Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
Merged-In: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
(cherry picked from commit 07964b49ac81b9955d9ecf5cf60c0bb1fc32c501)
core/java/com/android/server/SystemConfig.java
services/core/java/com/android/server/os/BugreportManagerServiceImpl.java