Skip to content

Persistent foreground service notification causes SystemUI ANR on Samsung One UI #696

@plonky

Description

@plonky

Checklist

  • I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • This issue contains only one bug.
  • I have read and understood the contribution guidelines.

Affected version

1.7.1

Steps to reproduce the bug

  1. Install app
  2. Leave foreground service running in background without actively using the app
  3. Ensure notifications are enabled
  4. SystemUI becomes unresponsive

Expected behavior

App runs in background without affecting system stability

Actual behavior

SystemUI repeatedly ANRs. Logcat shows bitchat's foreground service notification repeatedly triggering onAttachedToWindow calls on SystemUI's main thread, coinciding with ANR events

Screenshots/Screen recordings

Image

Affected Android/Custom ROM version

Android 15

Affected device model

Samsung Galaxy S21

Additional information

04-17 20:31:39.069 19887 19887 D InterruptionStateProvider:  no Heads up : edgelighting enabled app. 0|com.bitchat.droid|10001|null|10818
04-17 20:31:41.180 19887 19887 D HeaderPrivacyIconsController: Do executeDelayed  [PrivacyItem(privacyType=TYPE_LOCATION, application=PrivacyApplication(packageName=com.bitchat.droid, uid=10818), timeStampElapsed=541435268, paused=false, timeStampRemoved=541440278), PrivacyItem(privacyType=TYPE_LOCATION, application=PrivacyApplication(packageName=com.samsung.android.mcfds, uid=10089), timeStampElapsed=541439399, paused=false, timeStampRemoved=541444440)]
04-17 20:31:42.635 23676 26224 I NotificationManager: com.bitchat.droid: notify(10001, null, Notification(channel=bitchat_mesh_service shortcut=null contentView=null vibrate=null sound=null defaults=0 flags=ONGOING_EVENT|ONLY_ALERT_ONCE color=0x00000000 category=service actions=1 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
04-17 20:31:42.882  3985  7572 I HoneySpace.NotificationListener: onNotificationPosted com.bitchat.droid: 0|com.bitchat.droid|10001|null|10818: 0
04-17 20:31:42.882  3985  7572 I HoneySpace.NotificationListener: invalid notification: com.bitchat.droid UserHandle{0}: canShowBadge is false
04-17 20:31:42.884  3985 27529 I HoneySpace.PackageEventOperator: [ApplistViewModel] badge count is updated. com.bitchat.droid/com.bitchat.android.MainActivity#UserHandle{0}|85886 : 0
04-17 20:31:42.888 19887 19887 D Bubbles : onEntryUpdated : shouldBubbleUp=false ,key=0|com.bitchat.droid|10001|null|10818
04-17 20:31:42.889 19887 19887 D InterruptionStateProvider:  no Heads up : edgelighting enabled app. 0|com.bitchat.droid|10001|null|10818
04-17 20:31:42.889 19887 19887 D InterruptionStateProvider:  no Heads up : edgelighting enabled app. 0|com.bitchat.droid|10001|null|10818
04-17 20:31:42.911 19887 19887 I View    : setRequestedFrameRate frameRate=-2.0, this=StatusBarIconView(slot='com.bitchat.droid/0x2711' alpha=1.0 icon=StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.bitchat.droid id=0x7f0c0000) visible user=0 ) visibleState=ICON iconColor=#ff888888 staticDrawableColor=#ff1b6cf7 decorColor=#ff1b6cf7 animationStartColor=#0 currentSetColor=#ff888888 notification=StatusBarNotification(pkg=com.bitchat.droid user=UserHandle{0} id=10001 tag=null key=0|com.bitchat.droid|10001|null|10818: Notification(channel=bitchat_mesh_service shortcut=null contentView=null vibrate=null sound=null defaults=0 flags=ONGOING_EVENT|ONLY_ALERT_ONCE|NO_CLEAR|FOREGROUND_SERVICE color=0x00000000 category=service actions=1 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0))), caller=com.android.systemui.statusbar.StatusBarIconView.onAttachedToWindow:6 android.view.View.dispatchAttachedToWindow:24133 android.view.ViewGroup.addViewInner:5556 android.view.ViewGroup.addView:5332 android.view.ViewGroup.addView:5272 
04-17 20:31:42.936 19887 19887 I AppIconSolution: getThemeIconWithBG called with public API, pkg = com.bitchat.droid, mode = 48
04-17 20:31:42.937 19887 19887 I LauncherActivityInfo: packageName: com.bitchat.droid, useThemeIcon: false, height: 216, width: 216, density: 480
04-17 20:31:42.960 19887 19887 I AppIconSolution: getThemeIconWithBG called with public API, pkg = com.bitchat.droid, mode = 48
04-17 20:31:42.961 19887 19887 I LauncherActivityInfo: packageName: com.bitchat.droid, useThemeIcon: false, height: 216, width: 216, density: 480
04-17 20:31:43.244  1716  1804 D RenderEngine: [SEC_SF_EFFECTS] drawLayersInternal,1299, Rendering layer Application Not Responding: com.android.systemui#56280 at index 6
04-17 20:31:47.649 23676 25898 I NotificationManager: com.bitchat.droid: notify(10001, null, Notification(channel=bitchat_mesh_service shortcut=null contentView=null vibrate=null sound=null defaults=0 flags=ONGOING_EVENT|ONLY_ALERT_ONCE color=0x00000000 category=service actions=1 vis=PRIVATE semFlags=0x0 semPriority=0 semMissedCount=0)) as user
04-17 20:31:47.872  3985  7572 I HoneySpace.NotificationListener: onNotificationPosted com.bitchat.droid: 0|com.bitchat.droid|10001|null|10818: 0
04-17 20:31:47.872  3985  7572 I HoneySpace.NotificationListener: invalid notification: com.bitchat.droid UserHandle{0}: canShowBadge is false
04-17 20:31:47.873  3985 32501 I HoneySpace.PackageEventOperator: [ApplistViewModel] badge count is updated. com.bitchat.droid/com.bitchat.android.MainActivity#UserHandle{0}|85886 : 0
04-17 20:31:47.882 19887 19887 D Bubbles : onEntryUpdated : shouldBubbleUp=false ,key=0|com.bitchat.droid|10001|null|10818
04-17 20:31:47.883 19887 19887 D InterruptionStateProvider:  no Heads up : edgelighting enabled app. 0|com.bitchat.droid|10001|null|10818
04-17 20:31:47.883 19887 19887 D InterruptionStateProvider:  no Heads up : edgelighting enabled app. 0|com.bitchat.droid|10001|null|10818
04-17 20:31:47.919 19887 19887 I AppIconSolution: getThemeIconWithBG called with public API, pkg = com.bitchat.droid, mode = 48
04-17 20:31:47.920 19887 19887 I LauncherActivityInfo: packageName: com.bitchat.droid, useThemeIcon: false, height: 216, width: 216, density: 480
04-17 20:31:47.935 19887 19887 I AppIconSolution: getThemeIconWithBG called with public API, pkg = com.bitchat.droid, mode = 48
04-17 20:31:47.935 19887 19887 I LauncherActivityInfo: packageName: com.bitchat.droid, useThemeIcon: false, height: 216, width: 216, density: 480

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions