android 11.0 SystemUI 屏蔽通知栏通知

在11.0的定制化SystemUI开发中,所有的通知显示都是由Notication.java负责的,所以我们来先看
Notification 的监听加载流程,回到 statusBar 的start()中注册 NotificationListenerWithPlugins 作为系统service监听通知消息

try {
   
    
    
mNotificationListener.registerAsSystemService(mContext,
new ComponentName(mContext.getPackageName(), getClass().getCanonicalName()),
UserHandle.USER_ALL);
} catch (RemoteException e) 

猜你喜欢

转载自blog.csdn.net/baidu_41666295/article/details/124908303