Advanced Notification Manager

The Advanced Notification Manager enables you to print notifications and set notification parameters. It provides the notification debugging and testing capabilities, for example, printing published notification details, setting the number of notification caches, and enabling the notification functionality.

NOTE

Before using this tool, you must obtain the hdc tool and run the hdc shell command.

help

  • Function

    Prints help information.

  • Method

    anm help
    

dump

  • Function

    Prints information about notifications.

  • Method

    anm dump [<options>]
    

    The table below describes the available options.

Name Description
-A/--active Information about all active notifications.
-R/--recent Information about recent notifications.
-D/--distributed Information about distributed notifications from other devices.
-b/--bundle Bundle name. Optional.
-u/--user-id User ID. Optional.
-h/--help Help information.
  • Example: Print information about active notifications.

    anm dump -A
    

    anm-dump-A

Setting

NOTE

The Advanced Notification Manager has two editions: eng and user. The setting command can be used only in the eng edition. If it is used in the user edition, the message error: user version cannot use setting is reported.

  • Function

    Sets notification parameters.

  • Method

    anm setting [<options>]
    

    The table below describes the available options.

Name Description
-c/--recent-count Maximum number of recent notifications stored in the memory.
-e/--enable-notification Whether to enable the notification capability.
-h/--help Help information.
  • Example: Set the maximum number of recent notifications stored in the memory to 100.

    anm setting -c 100