android: App Stops Reporting to Home Assistant, but app appears to be running
Home Assistant Android version: 2022.6.0-full
Android version: 12
Phone model: Pixel 3 XL
Home Assistant version: 2022.7.3
Last working Home Assistant release (if known): ?
Description of problem: The app stops reporting back to Home Assistant and the WebSocket notifications disappears, but the app appears to keep running, because if I swipe a notification (for example) I see the notification saying “Updating Sensors…” and if I send a message I receive it. If I open the app again, the websocket notification appears again and the app resumes reporting the sensors. Stopping again some time after some time, this makes the reports very unreliable.
Traceback (if applicable, to get the logs you may refer to: https://companion.home-assistant.io/docs/troubleshooting/faqs/#android-crash-logs):
Please note around time stamp “19:59:13.665”
[08-18 19:19:58.715 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:19:58.715 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660846798546
[08-18 19:23:01.053 1857:4327 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660846798546
[08-18 19:25:19.616 1857:4180 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660846798546
[08-18 19:27:05.109 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:27:05.110 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847224984
[08-18 19:27:34.667 1857:4330 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847224984
[08-18 19:29:49.761 1857:3612 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847224984
[08-18 19:33:04.832 1857:4327 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847224984
[08-18 19:33:59.606 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:33:59.606 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847639351
[08-18 19:39:57.708 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:39:57.708 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847997478
[08-18 19:39:58.470 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:39:58.470 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660847998347
[08-18 19:39:58.521 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|42|null|10226
[08-18 19:39:58.530 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|42|null|10226
[08-18 19:48:59.556 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:48:59.556 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660848539299
[08-18 19:55:59.701 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:55:59.701 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660848959384
[08-18 19:59:13.557 1857:1939 I/ActivityManager]
Killing 3773:io.homeassistant.companion.android/u0a226 (adj 100): stop com.google.android.webview due to update lib
[08-18 19:59:13.637 1857:1857 V/NotificationListeners]
0 notification listener connection lost: ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager}
[08-18 19:59:13.637 1857:1857 W/NotificationListeners]
0 notification listener binding died: ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager}
[08-18 19:59:13.664 1857:1857 E/NotificationListeners]
unable to notify listener (removed): ManagedServiceInfo[component=ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager},userid=0,isSystem=false,targetSdkVersion=31,connection=<connection>,service=android.service.notification.INotificationListener$Stub$Proxy@c29a86c]
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.service.notification.INotificationListener$Stub$Proxy.onNotificationRemoved(INotificationListener.java:632)
at com.android.server.notification.NotificationManagerService$NotificationListeners.notifyRemoved(NotificationManagerService.java:10680)
at com.android.server.notification.NotificationManagerService$NotificationListeners.lambda$notifyRemovedLocked$3$NotificationManagerService$NotificationListeners(NotificationManagerService.java:10502)
at com.android.server.notification.NotificationManagerService$NotificationListeners$$ExternalSyntheticLambda5.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at com.android.server.SystemServer.run(SystemServer.java:903)
at com.android.server.SystemServer.main(SystemServer.java:610)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
[08-18 19:59:13.665 1857:1857 E/NotificationListeners]
unable to notify listener (removed): ManagedServiceInfo[component=ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager},userid=0,isSystem=false,targetSdkVersion=31,connection=<connection>,service=android.service.notification.INotificationListener$Stub$Proxy@c29a86c]
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.service.notification.INotificationListener$Stub$Proxy.onNotificationRemoved(INotificationListener.java:632)
at com.android.server.notification.NotificationManagerService$NotificationListeners.notifyRemoved(NotificationManagerService.java:10680)
at com.android.server.notification.NotificationManagerService$NotificationListeners.lambda$notifyRemovedLocked$3$NotificationManagerService$NotificationListeners(NotificationManagerService.java:10502)
at com.android.server.notification.NotificationManagerService$NotificationListeners$$ExternalSyntheticLambda5.run(Unknown Source:12)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at com.android.server.SystemServer.run(SystemServer.java:903)
at com.android.server.SystemServer.main(SystemServer.java:610)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:981)
[08-18 19:59:13.697 1857:3612 D/NotificationListeners]
Removing active service ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager}
[08-18 19:59:13.699 1857:4240 V/ActivityManager]
Got obituary of 3773:io.homeassistant.companion.android
[08-18 19:59:23.638 1857:1857 V/NotificationListeners]
binding: Intent { act=android.service.notification.NotificationListenerService cmp=io.homeassistant.companion.android/.sensors.NotificationSensorManager (has extras) }
[08-18 19:59:23.655 1857:1940 I/ActivityManager]
Start proc 26903:io.homeassistant.companion.android/u0a226 for service {io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager}
[08-18 19:59:24.143 1857:1857 V/NotificationListeners]
0 notification listener service connected: ComponentInfo{io.homeassistant.companion.android/io.homeassistant.companion.android.sensors.NotificationSensorManager}
[08-18 19:59:24.599 1857:4344 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 19:59:24.607 1857:4267 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 19:59:24.810 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 19:59:24.814 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 19:59:25.198 1857:4267 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 19:59:25.203 1857:4343 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 19:59:25.339 1857:4267 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 19:59:25.344 1857:4267 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 19:59:25.511 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:59:25.511 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849165460
[08-18 19:59:25.781 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:59:25.781 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849165460
[08-18 19:59:25.850 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:59:25.850 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849165460
[08-18 19:59:34.744 1857:4200 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 19:59:34.755 1857:4240 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 19:59:35.028 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 19:59:35.028 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849174808
[08-18 20:00:09.357 1857:2420 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 20:00:09.362 1857:4180 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 20:00:09.563 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 20:00:09.567 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 20:00:09.616 1857:4163 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 20:00:09.618 1857:4330 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 20:00:09.682 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 20:00:09.682 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849209661
[08-18 20:00:09.949 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 20:00:09.949 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660849209661
[08-18 20:15:15.935 1857:2301 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 20:15:15.942 1857:3666 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 20:15:16.030 1857:4288 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 20:15:16.035 1857:2301 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
[08-18 20:15:16.145 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 20:15:16.147 1857:1857 I/NotificationService]
Cannot find enqueued record for key: 0|io.homeassistant.companion.android|65423|null|10226
[08-18 20:15:16.402 1857:2186 E/AppOps]
attributionTag not declared in manifest of io.homeassistant.companion.android
[08-18 20:15:16.402 1857:2186 W/AppOps]
Noting op not finished: uid 10226 pkg io.homeassistant.companion.android code 79 startTime of in progress event=1660850116097
[08-18 20:15:17.609 1857:4288 I/ActivityManager]
Background started FGS: Allowed [callingPackage: io.homeassistant.companion.android; callingUid: 10226; uidState: BFGS; intent: Intent { act=ACTION_START_FOREGROUND cmp=io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService (has extras) }; code:PROC_STATE_BFGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:31; callerTargetSdkVersion:31; startForegroundCount:0; bindFromPackage:null]
[08-18 20:15:17.619 1857:4327 W/ActivityManager]
Foreground service started from background can not have location/camera/microphone access: service io.homeassistant.companion.android/androidx.work.impl.foreground.SystemForegroundService
Screenshot of problem:
Additional information:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (8 by maintainers)
Reporting back @dshokouhi and @jpelgrom
The problem is solved! I used the fullchain and now the app is connecting without any problem. I still find it strange that it worked ok, and only after some time it would stop reporting and started generating the ssl errors.
But for me this is solves. Tks for the help. Issue can be closed!
If online tools also show an issue with the certificate, I don’t expect this will help. Regenerating should be simple and might fix it.
It is because of the update. When the Play Store updates an app a notification is posted but obviously the app was just killed by the system, so the listener wasn’t properly removed. It should reregister soon as the system will restart notification listeners automatically (which you can also see in the log, 10 seconds later).
Sorry, I forgot to add the “no”. I don’t have any reverse proxy… Only added to home assistant the certificate. Nothing special