diff options
author | Dan Sandler <dsandler@android.com> | 2020-04-20 23:31:40 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2020-04-29 17:37:31 +0000 |
commit | 2501c602e227dac2536d85bce9ad67f6944eae5e (patch) | |
tree | f4206f34c157282003e9c6285e1e51938108046b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 6e9ee1c78f0767cd61fa4db7fdae3ed420d54e10 (diff) |
Limit use of `cmd notification` to root and shell users only.
Only the shell and system can use notification manager shell
commands now. (Apps have APIs for that.)
Also add a few new notification shell commands:
list -> lists keys of active notifications
get <key> -> dumps the NotificationRecord
snoozed -> lists snoozed notifications
snooze (--for <ms> | --context <contextstring>) <key>
unsnooze <key>
Bug: 150629389
Test: the shell commands themselves
Test: atest com.android.server.notification.NotificationShellCmdTest
Change-Id: Ie949821fcf1192efe8b6b3e95c9daca71347b11e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions