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>
Fri, 1 Mar 2019 16:26:03 +0000 (16:26 +0000)
commit07964b49ac81b9955d9ecf5cf60c0bb1fc32c501
treeebf9a83498a5e25d4f0638289e31e3195145fd50
parentea5e754c37fd4f1252d9d7722485b8df66abe54f
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
core/java/com/android/server/SystemConfig.java
services/core/java/com/android/server/os/BugreportManagerServiceImpl.java