1、在com.android.systemui.statusbar.phone.PhoneStatusBar.java中
在方法
private void updateNotificationIcons() {
// Filter out notifications with low scores.
for (int i = 0; i < N; i++) {
Entry ent = activeNotifications.get(i);
// Log.d(TAG, "ent.notification.getPackageName()="+ent.notification.getPackageName());
if("com.****.aa".equals(ent.notification.getPackageName())){//可以在这里修改
continue;
}
if (ent.notification.getScore() < HIDE_ICONS_BELOW_SCORE &&
!NotificationData.showNotificationEvenIfUnprovisioned(ent.notification)) {
continue;
}
toShow.add(ent.icon);
}
}