Help Center/ Cloud Phone Host/ User Guide/ Using AOSP/ Disabling the Notification System
Updated on 2023-10-11 GMT+08:00

Disabling the Notification System

Disabling Notifications from All Applications

Function

The notification system (including the message notification and toast displayed on the top of the screen) will be disabled. The notifications of all applications will be disabled.

How to Use

Call the Updating Cloud Phone Attributes API and set ro.com.cph.notification_disable to 1. As a result, the notification system will be disabled. To enable Toast only, set ro.com.cph.toast_enable to 1.

Constraints

  • For attribute ro.com.cph.notification_disable, value 0 indicates that the notification is allowed, and value 1 indicates that the notification is not allowed.
  • For attribute ro.com.cph.toast_enable, value 0 indicates that the toast function is disabled, and value 1 indicates that the toast function is enabled.
  • The setting takes effect immediately.

Disabling Notifications from Specified Applications

Function

Notification blacklist can be applied. Applications in the blacklist will be forbidden to send notifications.

How to Use

Push the configuration file to the /data/local/config/NotificationAPP path.

Constraints

  • The configuration format is as follows: ${package_name}

    Examples:

    com.aaa.bbb

    com.aaa.ccc

    com.aaa.ddd

  • Set the file permissions to 644.
  • The configuration file uses the Unix line feed (\n).
  • The setting takes effect immediately.