NotificationManager.setInterruptionFilter不适用于某些电话

val notificationManager:NotificationManager = context.getSystemService( Context.NOTIFICATION_SERVICE ) as NotificationManager notificationManager.setInterruptionFilter( NotificationManager.INTERRUPTION_FILTER_ALL ) 

代码很简单,只需更改InterruptionFilter,我已经获得了DoNotDisturb权限,它可以在模拟器上运行。

但是,当我在一个真实的设备(OnePlus3)上进行测试时,它与模拟器(安装了Google服务的Android 7.1.1 API25)具有相同的系统,但不起作用。 代码执行,没有错误,没有改变,这意味着它不会将当前过滤器从INTERRUPTION_FILTER_NONE更改为INTERRUPTION_FILTER_ALL

什么发生,如何解决?