Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2501c602 authored by Dan Sandler's avatar Dan Sandler Committed by Daniel Sandler
Browse files

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
parent 6e9ee1c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment