当前位置:   article > 正文

Android SystemUI相关定制(九)_5fd.buzz

5fd.buzz

签名

Android-apk系统签名_王涛的博客-CSDN博客_apk系统签名  

https://jingyan.baidu.com/article/e4d08ffd9430260fd3f60d69.html

———————————————————————————————————————————

通知相关

    1、屏蔽系统通知弹框

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java

     private void addEntry(Entry shadeEntry) {

-        boolean isHeadsUped = shouldPeek(shadeEntry);

+        boolean isHeadsUped = false;

         if (isHeadsUped) {

             mHeadsUpManager.showNotification(shadeEntry);

             // Mark as seen immediately

             setNotificationShown(shadeEntry.notification);

framework/base/services/usb/java/com/android/server/usb/UsbDeviceManager.java下屏蔽  
updateUsbNotification(false);
updateAdbNotification(false);

2、屏蔽第三方应用通知

frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java

注释如下代码

mHandler.post(new EnqueueNotificationRunnable(userId, r))

3、通知栏不显示应用通知

packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java

shouldFilterOut()查询return true导致拦截通知的原因
WBT518遇到 mEnvironment.isDeviceProvisioned()showNotificationEvenIfUnprovisioned(sbn)都为false导致

4、通知栏发出通知,但下拉框布局不显示

屏蔽SystemUI下拉的通知布局显示,屏蔽屏幕顶部通知布局显示

packages/SystemUI/res/value/Config.xml

 

packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java

 

packages/SystemUI/src/com/android/systemui/statusbar/notification/RowInflaterTask.java

 

5、屏蔽通知发出声音、震动、LED显示

frameworks/base/services/core/java/com/android/server/notification/NotificationManagerService.java中的buzzBeepBlinkLocked()方法

 

updateLightsLocked()方法

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/162792
推荐阅读
相关标签
  

闽ICP备14008679号