Skip to content

Investigation: Recent commits causing poor BLE connectivity & constant reconnection #4521

Closed

Description

@aaravgarg

Investigation: Commits That Could Cause Poor Connectivity & Constant Reconnection (Past 2 Weeks)

Deep scan of all commits from the past 2 weeks across app, backend, and firmware that could affect Bluetooth connectivity and device reconnection behavior.


HIGH RISK

1. allowLongWrite BLE Transport Change — e543b9a23 (Jan 25, @mdmohsin7)

File: app/lib/services/devices/transports/ble_transport.dart:192-195

Changed characteristic.write(data) to conditionally use allowLongWrite: true when data.length > (mtuNow - 3).

Impact: allowLongWrite uses the BLE Prepare Write / Execute Write protocol (multi-step). If mtuNow returns 0 or a small value before MTU negotiation completes, ALL writes get forced through the long-write path. Some firmware may not properly handle this protocol, causing write failures that cascade into disconnects. Affects all device types (Omi, OmiGlass, Frame) since it's in the shared transport layer.


2. Time Sync Write on Every Connection — c9300441a (Jan 29, @mdmohsin7)

File: app/lib/services/devices/omi_connection.dart

connect() now calls performSyncTime() after super.connect(), writing 4 bytes to timeSyncServiceUuid (19b10030-...) on every connection/reconnection.

Impact: Devices running older firmware without this GATT service will hit a Characteristic not found exception on every reconnect attempt. The error is caught, but it adds latency and an extra BLE transaction to every reconnection cycle.


3. OmiGlass Name-Based Routing — b1b640c2b (Jan 30, @aaravgarg)

File: app/lib/services/devices/device_connection.dart:55-71

Routes devices to OmiGlassConnection if deviceName.contains('glass') — extremely broad string match.

Impact: Any Omi device whose name happens to contain "glass" gets routed to a completely wrong connection handler that lacks time sync, button handling, SD card storage, WiFi sync, and accelerometer support. Would cause features to silently fail and potentially trigger reconnection loops.


4. OmiGlass Firmware: BLE Advertising Reduced to Single UUID — 15bba7aee (Jan 31)

File: omiGlass/firmware/src/app.cpp

Only advertises main service UUID; removed battery and device info UUIDs from advertising.

Impact: On iOS, background BLE scanning relies on advertised service UUIDs for reconnection. Removing battery/device info UUIDs from advertising degrades iOS background reconnection for OmiGlass devices.


5. /listen WebSocket Memory Leak Fixes — 62b7540ad, 3a83ad371 (Jan 29, @ngocthinhdp)

File: backend/routers/transcribe.py

Replaced asyncio.create_task() with spawn() pattern that tracks and cancels tasks on disconnect. Added buffer limits (deque(maxlen=...), 10MB audio cap, 100 pending request cap).

Impact: While fixing OOM issues (which themselves caused connection drops), the new task cancellation in finally could leave STT connections dirty if tasks don't handle CancelledError properly. Buffer limits silently drop data under load.


6. Pusher Pod Memory Leak Fix — 7c046161b (Jan 19)

File: backend/routers/pusher.py

Added 300s HTTP timeouts to speaker_embedding/vad calls (previously no timeout). Introduced 1-second batching for transcript queue.

Impact: Fundamentally changes data flow timing. The 1s batching delay changes when clients receive transcript events. Non-atomic batch = queue.copy(); queue = [] could lose items between copy and clear.


MEDIUM RISK

7. Battery Level Throttling — 33580fb1c (Jan 29, @ngocthinhdp)

File: app/lib/providers/device_provider.dart:164-178

notifyListeners() now suppressed unless battery changes by >= 5% or 15 minutes elapse.

Impact: Battery updates served as an implicit "device alive" signal. Throttling these means the UI may show stale connection state. If any reconnection logic depended on provider notifications, it could be delayed.


8. Metrics Notifications Disabled — 33580fb1c (Jan 29, @ngocthinhdp)

File: app/lib/providers/capture_provider.dart

_metricsNotifyEnabled = false by default.

Impact: The periodic metrics timer no longer calls notifyListeners(). Any watchdog or health-check logic listening for BLE receive rate / WS send rate updates would be starved.


9. Bluetooth Discoverer Timing — f5295d3a0 (Jan 21, @mdmohsin7)

File: app/lib/services/devices/discovery/bluetooth_discoverer.dart

Added 2-second delay before starting scan + 5-second timeout on adapter state.

Impact: 2-second window where no scan is happening. If Bluetooth is slow to enable (cold boot), the 5-second timeout could cause scan to return empty.


10. Backend-listen Node Affinity — b22123be6 (Jan 24)

Pods now require type: high-cpu nodes. If insufficient nodes are available, pods stay in Pending, reducing connection capacity.


11. WiFi Sync Wait 3s → 8s — c680cffb0 (Jan 29, @mdmohsin7)

Longer delay with BLE + WiFi both active = more radio contention time on 2.4GHz.


12. Auto-Assign Speaker Labels — e7f2085dc (Jan 30)

Changes when websocket.send_json() fires (deferred until after assignment). Could change client-side WebSocket message handling behavior.


Summary: Most Likely Root Causes (Ranked)

# Commit Change Why
1 e543b9a23 allowLongWrite in BLE transport Affects ALL BLE writes for ALL devices; MTU race condition could force wrong write mode
2 62b7540ad /listen WebSocket refactor OOM fixes are good, but task cancellation and buffer limits could cause connection drops
3 c9300441a Time sync on every connect Extra BLE write fails on older firmware, adds latency to every reconnection
4 7c046161b Pusher pod refactor Changed data flow fundamentally; timing issues could affect streaming
5 33580fb1c Battery + metrics throttling UI appears disconnected; health signals suppressed
6 b1b640c2b OmiGlass name routing Would break any device matching "glass"

Recommended Next Steps

  1. Check if allowLongWrite is causing failures — Add logging around mtuNow value at write time; verify firmware handles Prepare Write protocol
  2. Test time sync on older firmware — Verify performSyncTime() failure doesn't destabilize the connection cycle
  3. Tighten OmiGlass name matching — contains('glass') is too broad; use exact match or device type only
  4. Verify iOS background reconnection for OmiGlass after advertising UUID reduction
  5. Monitor /listen pod memory and connection counts after the spawn() refactor

Activity

  1. added
    capture
    p0
    maintainer
    on Feb 2, 2026
  2. beastoin commented on Feb 2, 2026

    @beastoin
    Collaborator

    it's not confirmed yet btw.

    @TuEmb, please keep us updated on the issue.

    @aaravgarg the connection issue is between the device and the app. You could use that information to help the AI narrow down its findings. More strict and clear requirements would help them a lot.

  3. TuEmb commented on Feb 2, 2026

    @TuEmb
    Collaborator

    User feedback:

    Image Image
  4. TuEmb commented on Feb 2, 2026

    @TuEmb
    Collaborator

    I'm debugging with this guy

    Image
  5. TuEmb commented on Feb 2, 2026

    @TuEmb
    Collaborator
    Image
  6. aaravgarg commented on Feb 2, 2026

    @aaravgarg
    ContributorAuthor

    @mdmohsin7 u recently showed me the issue that os is killing app in bg when we met

    can u add more info on that, that could be the key issue

  7. beastoin commented on Feb 3, 2026

    @beastoin
    Collaborator

    @aaravgarg @TuEmb Update: We recently fixed transcription service issues caused by a bad commit from ~1 week ago. Some connectivity/sync issues may have been side effects.

    Please verify if BLE issues still reproduce after the fix.


    by AI for @beastoin

  8. TuEmb commented on Feb 3, 2026

    @TuEmb
    Collaborator

    Note: I'm testing the case of long-write for device: pair to CV1, then send a GATT message with length > MTU size (ex: 1000 bytes)

  9. beastoin commented on Feb 3, 2026

    @beastoin
    Collaborator

    Potential BLE disconnect cause on Android: the Wi-Fi setup write (SSID+password) can exceed the negotiated MTU payload and now uses allowLongWrite (Prepare/Execute). If the device’s GATT characteristic doesn’t support long write properly, the Android stack can error and drop the connection. Example: MTU 50 -> payload 47; SSID+password 100 bytes triggers long write.


    by AI for @beastoin

  10. beastoin commented on Feb 3, 2026

    @beastoin
    Collaborator

    Yeah, go ahead with the test: #4521 (comment), then let me know.

  11. beastoin commented on Feb 3, 2026

    @beastoin
    Collaborator

    More refs on allowLongWrite / GATT long write (client-side): FlutterBluePlus docs state allowLongWrite uses the long write BLE protocol and requires peripheral support; interrupted transfers can leave partial writes, and it’s only for writes with response. https://pub.dev/documentation/flutter_blue_plus/latest/flutter_blue_plus/BluetoothCharacteristic-class.html
    Server-side support is the GATT Prepare Write / Execute Write procedure (prepare write request opcode), which the peripheral must handle and respond to; Silicon Labs docs outline prepare write requests for GATT server handlers. https://docs.silabs.com/bluetooth/10.1.0/bluetooth-stack-api/sl-bt-evt-gatt-server-user-write-request
    General note: long read/write is used when characteristic value exceeds MTU. https://en.wikipedia.org/wiki/Bluetooth_Low_Energy#Long_read_and_long_write


    by AI for @beastoin

  12. mdmohsin7 commented on Feb 3, 2026

    @mdmohsin7
    Member
    2026-02-03 16:40:36.516 10277-10313 SessionLifecycleClient  com.friend.ios                       D  Sending lifecycle 2 to service
    2026-02-03 16:40:36.516 10277-10498 SessionLifecycleService com.friend.ios                       D  Activity backgrounding at 997017385
    2026-02-03 16:40:36.574  2596-2678  WindowManager           system_server                        V      info={id=50589 t=TO_FRONT f=0x0 trk=0 r=[0@Point(0, 0)] c=[
                                                                                                                {WCT{RemoteToken{89cd8c9 Task{fa487d2 #15884 type=standard A=10124:com.android.vending}}} m=TO_FRONT f=MOVE_TO_TOP leash=Surface(name=Task=15884)/@0x41e5893 sb=Rect(0, 0 - 1080, 2412) eb=Rect(0, 0 - 1080, 2412) epz=Point(1080, 2412) d=0 taskParent=-1 ntPopUpView={mIsTryEnterWindowingMode=false mIsEnterWindowingModeLandscape=false mStartPos=Point(0, 0) mEndPos=Point(0, 0) mStartScale=0.0 mEndScale=0.0 mStartCornerRadius=0.0 mEndCornerRadius=0.0 mAppBounds=Rect(0, 0 - 0, 0) mWindowCrop=Rect(0, 0 - 0, 0) mStartDragBounds=Rect(0, 0 - 0, 0) mBottomLeftCornerLeash=null mBottomRightCornerLeash=null mDragBarLeash=null mCornerHintSize=60x60 mDragBarSize=189x42}},
                                                                                                                {WCT{RemoteToken{82f0cad Task{8399b2a #1 type=home}}} m=TO_BACK f=SHOW_WALLPAPER leash=Surface(name=Task=1)/@0x1927fb4 sb=Rect(0, 0 - 1080, 2412) eb=Rect(0, 0 - 1080, 2412) epz=Point(1080, 2412) d=0 taskParent=-1 ntPopUpView={mIsTryEnterWindowingMode=false mIsEnterWindowingModeLandscape=false mStartPos=Point(0, 0) mEndPos=Point(0, 0) mStartScale=0.0 mEndScale=0.0 mStartCornerRadius=0.0 mEndCornerRadius=0.0 mAppBounds=Rect(0, 0 - 0, 0) mWindowCrop=Rect(0, 0 - 0, 0) mStartDragBounds=Rect(0, 0 - 0, 0) mBottomLeftCornerLeash=null mBottomRightCornerLeash=null mDragBarLeash=null mCornerHintSize=60x60 mDragBarSize=189x42}},
                                                                                                                {WCT{RemoteToken{9fb3fb2 Task{e002a7f #15888 type=standard A=10999:com.friend.ios}}} m=TO_BACK f=NONE leash=Surface(name=Task=15888)/@0x8ca6a81 sb=Rect(0, 0 - 1080, 2412) eb=Rect(0, 0 - 1080, 2412) epz=Point(1080, 2412) d=0 taskParent=-1 ntPopUpView={mIsTryEnterWindowingMode=false mIsEnterWindowingModeLandscape=false mStartPos=Point(0, 0) mEndPos=Point(0, 0) mStartScale=0.0 mEndScale=0.0 mStartCornerRadius=0.0 mEndCornerRadius=0.0 mAppBounds=Rect(0, 0 - 0, 0) mWindowCrop=Rect(0, 0 - 0, 0) mStartDragBounds=Rect(0, 0 - 0, 0) mBottomLeftCornerLeash=null mBottomRightCornerLeash=null mDragBarLeash=null mCornerHintSize=60x60 mDragBarSize=189x42}},
                                                                                                                {m=TO_BACK f=IS_WALLPAPER leash=Surface(name=WallpaperWindowToken{e31df0 showWhenLocked=false})/@0x500a7a3 sb=Rect(0, 0 - 1080, 2412) eb=Rect(0, 0 - 1080, 2412) epz=Point(1080, 2412) d=0 ntPopUpView={mIsTryEnterWindowingMode=false mIsEnterWindowingModeLandscape=false mStartPos=Point(0, 0) mEndPos=Point(0, 0) mStartScale=0.0 mEndScale=0.0 mStartCornerRadius=0.0 mEndCornerRadius=0.0 mAppBounds=Rect(0, 0 - 0, 0) mWindowCrop=Rect(0, 0 - 0, 0) mStartDragBounds=Rect(0, 0 - 0, 0) mBottomLeftCornerLeash=null mBottomRightCornerLeash=null mDragBarLeash=null mCornerHintSize=0x0 mDragBarSize=0x0}}
                                                                                                            ]}
    2026-02-03 16:40:36.930 10277-10277 VRI[MainActivity]       com.friend.ios                       D  visibilityChanged oldVisibility=true newVisibility=false
    2026-02-03 16:40:36.995 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:36.995 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m│ [debug] | 16:40:36 995ms | App is hidden�[0m
    2026-02-03 16:40:36.995 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m└──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:36.996 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:36.996 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m│ [debug] | 16:40:36 996ms | App is paused�[0m
    2026-02-03 16:40:36.996 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m└──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:38.643 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:38.643 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m│ [debug] | 16:40:38 642ms | Battery level changed: 87�[0m
    2026-02-03 16:40:38.643 10277-10277 flutter                 com.friend.ios                       I  �[38;5;255m└──────────────────────────────────────────────────────────────────────────────────────────────────────────────�[0m
    2026-02-03 16:40:47.559  2596-3085  ActivityManager         system_server                        D  freezing 10277 com.friend.ios
    2026-02-03 16:40:58.145  3592-31804 DetectSceneService      com.nothing.audioeffect              D  pid = 10277 processName = com.friend.ios
    2026-02-03 16:40:59.533  3592-32448 DetectSceneService      com.nothing.audioeffect              D  pid = 10277 processName = com.friend.ios
    2026-02-03 16:42:13.650  2596-2687  ActivityManager         system_server                        I  Killing 10277:com.friend.ios/u0a999 (adj 905): Async binder space running out while frozen
    2026-02-03 16:42:13.785  2596-3689  MediaSessionStack       system_server                        I  removeSession | record: com.friend.ios/PUSH_MEDIA/564 (userId=0)
    2026-02-03 16:42:13.785  2596-5552  WindowManager           system_server                        I  WIN DEATH: Window{ea87229 u0 com.friend.ios/com.friend.ios.MainActivity}
    2026-02-03 16:42:13.786  2596-3689  MediaSessionService     system_server                        D  destroySessionLocked: record=com.friend.ios/PUSH_MEDIA/564 (userId=0)
    2026-02-03 16:42:13.787  2596-3154  ConnectivityService     system_server                        D  releasing NetworkRequest [ REQUEST id=1129811, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED&NOT_BANDWIDTH_CONSTRAINED Uid: 10999 RequestorUid: 10999 RequestorPkg: com.friend.ios UnderlyingNetworks: Null] ] (release request)
    2026-02-03 16:42:13.788  2596-5305  MediaSessionStack       system_server                        I  removeSession | record: com.friend.ios/PUSH_MEDIA/562 (userId=0)
    2026-02-03 16:42:13.788  2596-5305  MediaSessionService     system_server                        D  destroySessionLocked: record=com.friend.ios/PUSH_MEDIA/562 (userId=0)
    2026-02-03 16:42:13.788  2596-5312  MediaSessionStack       system_server                        I  removeSession | record: com.friend.ios/PUSH_MEDIA/560 (userId=0)
    2026-02-03 16:42:13.788  2596-5312  MediaSessionService     system_server                        D  destroySessionLocked: record=com.friend.ios/PUSH_MEDIA/560 (userId=0)
    2026-02-03 16:42:13.788  2596-5470  MediaSessionStack       system_server                        I  removeSession | record: com.friend.ios/PUSH_MEDIA/559 (userId=0)
    2026-02-03 16:42:13.788  2596-5470  MediaSessionService     system_server                        D  destroySessionLocked: record=com.friend.ios/PUSH_MEDIA/559 (userId=0)
    2026-02-03 16:42:13.790  2596-5307  MediaSessionStack       system_server                        I  removeSession | record: com.friend.ios/PUSH_MEDIA/563 (userId=0)
    2026-02-03 16:42:13.791  2596-5307  MediaSessionService     system_server                        D  destroySessionLocked: record=com.friend.ios/PUSH_MEDIA/563 (userId=0)
    2026-02-03 16:42:13.793 17893-17893 MediaPlayerWrapper      com.android.bluetooth                W  The session was destroyed com.friend.ios
    2026-02-03 16:42:13.793  2596-3885  ActivityManager         system_server                        W  Scheduling restart of crashed service com.friend.ios/.NotificationOnKillService in 1000ms for start-requested
    2026-02-03 16:42:13.799  2596-3015  UsageStatsService       system_server                        W  Unexpected activity event reported! (com.friend.ios/com.friend.ios.MainActivity event : 23 instanceId : 4127308)
    2026-02-03 16:42:14.821  2596-2688  ActivityManager         system_server                        I  Start proc 22213:com.friend.ios/u0a999 for service {com.friend.ios/com.friend.ios.NotificationOnKillService}
    2026-02-03 16:42:14.839 22213-22213 com.friend.ios          com.friend.ios                       I  Using CollectorTypeCMC GC.
    2026-02-03 16:42:14.842 22213-22213 com.friend.ios          com.friend.ios                       E  Not starting debugger since process cannot load the jdwp agent.
    2026-02-03 16:42:14.844 22213-22213 nativeloader            com.friend.ios                       D  Load libframework-connectivity-tiramisu-jni.so using APEX ns com_android_tethering for caller /apex/com.android.tethering/javalib/framework-connectivity-t.jar: ok
    2026-02-03 16:42:14.870  2596-2689  ActivityManager         system_server                        D  uid = 10999, pid = 22213, processName = com.friend.ios is not top app, set nt foreground
    2026-02-03 16:42:14.894  2596-5382  OomAdjuster             system_server                        D  process : com.friend.ios, pid = 22213, isTop = false, uid = 10999, hasActivity = false
    2026-02-03 16:42:14.894  2596-5382  OomAdjuster             system_server                        D  process : com.friend.ios is not top!
    2026-02-03 16:42:14.905 22213-22213 ApplicationLoaders      com.friend.ios                       D  Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
    2026-02-03 16:42:14.905 22213-22213 ApplicationLoaders      com.friend.ios                       D  Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
    2026-02-03 16:42:14.953 22213-22213 com.friend.ios          com.friend.ios                       W  Failed to find entry 'classes.dex': Entry not found
    2026-02-03 16:42:14.954 22213-22213 com.friend.ios          com.friend.ios                       W  Failed to find entry 'classes.dex': Entry not found
    2026-02-03 16:42:14.955 22213-22213 com.friend.ios          com.friend.ios                       W  Failed to find entry 'classes.dex': Entry not found
    2026-02-03 16:42:14.955 22213-22213 nativeloader            com.friend.ios                       D  Configuring clns-9 for other apk /data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/base.apk:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.arm64_v8a.apk:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.en.apk:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.xxhdpi.apk. target_sdk_version=35, uses_libraries=, library_path=/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/lib/arm64:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/base.apk!/lib/arm64-v8a:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.arm64_v8a.apk!/lib/arm64-v8a:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.en.apk!/lib/arm64-v8a:/data/app/~~ksTv0aNVNeyP08x3RGqX8g==/com.friend.ios-JfslyZAju6kmMEmVpkD6Zg==/split_config.xxhdpi.apk!/lib/arm64-v8a, permitted_pa
    2026-02-03 16:42:14.956 22213-22213 CompatChangeReporter    com.friend.ios                       D  Compat change id reported: 202956589; UID 10999; state: ENABLED
    2026-02-03 16:42:14.958 22213-22213 com.friend.ios          com.friend.ios                       I  AssetManager2(0xb400007780e975d8) locale list changing from [] to [en-GB]
    2026-02-03 16:42:14.960 22213-22213 Perf                    com.friend.ios                       I  Connecting to perf service.
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V  Currently set values for:
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V    angle_gl_driver_selection_pkgs=[com.android.angle, com.linecorp.b612.android, com.campmobile.snow, com.google.android.apps.tachyon]
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V    angle_gl_driver_selection_values=[angle, native, native, native]
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V  com.friend.ios is not listed in per-application setting
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V  ANGLE allowlist from config: 
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V  com.friend.ios is not listed in ANGLE allowlist or settings, returning default
    2026-02-03 16:42:14.963 22213-22213 GraphicsEnvironment     com.friend.ios                       V  Updatable production driver is not supported on the device.
    2026-02-03 16:42:14.977 22213-22213 SessionsDependencies    com.friend.ios                       D  Dependency to CRASHLYTICS added.
    2026-02-03 16:42:14.978 22213-22213 FirebaseApp             com.friend.ios                       I  Device unlocked: initializing all Firebase APIs for app [DEFAULT]
    2026-02-03 16:42:14.985 22213-22213 FirebaseSessions        com.friend.ios                       D  Initializing Firebase Sessions SDK.
    2026-02-03 16:42:14.986 22213-22213 FirebaseCrashlytics     com.friend.ios                       I  Initializing Firebase Crashlytics 19.4.2 for com.friend.ios
    2026-02-03 16:42:14.990 22213-22213 SessionsDependencies    com.friend.ios                       D  Subscriber CRASHLYTICS registered.
    2026-02-03 16:42:14.991 22213-22265 CompatChangeReporter    com.friend.ios                       D  Compat change id reported: 312399441; UID 10999; state: ENABLED
    2026-02-03 16:42:14.996 22213-22213 FirebaseInitProvider    com.friend.ios                       I  FirebaseApp initialization successful
    2026-02-03 16:42:14.996 22213-22213 FLTFireContextHolder    com.friend.ios                       D  received application context.
    2026-02-03 16:42:14.997 22213-22268 ashmem                  com.friend.ios                       E  Pinning is deprecated since Android Q. Please use trim or other methods.
    2026-02-03 16:42:14.998 22213-22264 LifecycleServiceBinder  com.friend.ios                       D  Binding service to application.
    2026-02-03 16:42:14.998 22213-22213 CompatChangeReporter    com.friend.ios                       D  Compat change id reported: 279646685; UID 10999; state: ENABLED
    2026-02-03 16:42:15.000 22213-22213 WM-WrkMgrInitializer    com.friend.ios                       D  Initializing WorkManager with default configuration.
    2026-02-03 16:42:15.001 22213-22213 WM-PackageManagerHelper com.friend.ios                       D  Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
    2026-02-03 16:42:15.001 22213-22213 WM-Schedulers           com.friend.ios                       D  Created SystemJobScheduler and enabled SystemJobService
    2026-02-03 16:42:15.004 22213-22270 FirebaseCrashlytics     com.friend.ios                       I  Saved version control info
    2026-02-03 16:42:15.004 22213-22213 Intercom                com.friend.ios                       E  The API key provided (null) is too short.
                                                                                                        Please check that you are using an Intercom Android SDK key and have not passed the appId into the apiKey field
    2026-02-03 16:42:15.004 22213-22213 Intercom                com.friend.ios                       E  The API key provided (null) does not begin with 'android_sdk-'.
                                                                                                        Please check that you are using an Intercom Android SDK key and have not passed the appId into the apiKey field
    2026-02-03 16:42:15.004 22213-22213 Intercom                com.friend.ios                       E  Intercom has been initialized incorrectly. Please make sure that you're passing in the correct app ID and API key
    2026-02-03 16:42:15.006  2596-5382  OomAdjuster             system_server                        D  process : com.friend.ios, pid = 22213, isTop = false, uid = 10999
    2026-02-03 16:42:15.006  2596-5382  OomAdjuster             system_server                        D  process : com.friend.ios is not top!
    2026-02-03 16:42:15.013 22213-22213 SessionLifecycleService com.friend.ios                       D  Service bound to new client on process 22213
    2026-02-03 16:42:15.015 22213-22213 SessionLifecycleClient  com.friend.ios                       D  Connected to SessionLifecycleService. Queue size 0
    2026-02-03 16:42:15.020 22213-22275 SessionLifecycleService com.friend.ios                       D  App has not yet foregrounded. Using previously stored session.
    2026-02-03 16:42:15.021 22213-22275 SessionLifecycleService com.friend.ios                       D  Client android.os.Messenger@fecbde bound at 997115882. Clients: 1
    2026-02-03 16:42:20.533 22213-22546 ProfileInstaller        com.friend.ios                       D  Skipping profile installation for com.friend.ios
    

    Key line is Killing 10277:com.friend.ios/u0a999 (adj 905): Async binder space running out while frozen

  13. beastoin commented on Feb 4, 2026

    @beastoin
    Collaborator

    @mdmohsin7 what does this mean, and can you fix it?

  14. beastoin commented on Feb 6, 2026

    @beastoin
    Collaborator

    @TuEmb guys, any updates on this one, either PR or committee feedback?

  15. mdmohsin7 commented on Feb 6, 2026

    @mdmohsin7
    Member

    @mdmohsin7 what does this mean, and can you fix it?

    Yes already fixed in #4589 , it wasn't effecting everyone, only those who didn't give location permission. Our background service (used for location fetching every 5 mins) is also used to tell android that the same service uses ConnectedDevice foreground service type and hence the OS should not terminate the app when minimised. Fastest fix is to just let it run irrespective of location permission granted or not (we anyway gate the actual location fetching within the background service so it won't actually fetch the location), a good fix is to decouple both and have a very lightweight sticky foreground service (similar to how limitless and others do it)

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

capturemaintainerp0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions