[GH-ISSUE #267] App crashes when connected to airpods pro 2 #121

Closed
opened 2026-03-02 12:03:46 +03:00 by kerem · 6 comments
Owner

Originally created by @Nikitos0209 on GitHub (Nov 18, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/267

Video of issue:
https://files.kudelinfiles.ru/s/bEcnyqyF5QxWBz6
I have realmeui 6 (android15) with installed magisk alpha and xposed, after setup, when i connect my airpods app doesn't work and crashed

Originally created by @Nikitos0209 on GitHub (Nov 18, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/267 Video of issue: https://files.kudelinfiles.ru/s/bEcnyqyF5QxWBz6 I have realmeui 6 (android15) with installed magisk alpha and xposed, after setup, when i connect my airpods app doesn't work and crashed
kerem closed this issue 2026-03-02 12:03:46 +03:00
Author
Owner

@Nikitos0209 commented on GitHub (Nov 19, 2025):

I dowloaded logfox, and i got this message:
FATAL EXCEPTION: main
Process: me.kavishdevar.librepods, PID: 32764
java.lang.IllegalArgumentException: MAC address must be 6 bytes
at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion(AACPManager.kt:848)
at me.kavishdevar.librepods.utils.MediaController$cb$1.onPlaybackConfigChanged(MediaController.kt:174)
at android.media.AudioManager$ServiceEventHandlerDelegate$1.handleMessage(AudioManager.java:4888)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:282)
at android.os.Looper.loop(Looper.java:387)
at android.app.ActivityThread.main(ActivityThread.java:9500)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)

<!-- gh-comment-id:3550601985 --> @Nikitos0209 commented on GitHub (Nov 19, 2025): I dowloaded logfox, and i got this message: FATAL EXCEPTION: main Process: me.kavishdevar.librepods, PID: 32764 java.lang.IllegalArgumentException: MAC address must be 6 bytes at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion(AACPManager.kt:848) at me.kavishdevar.librepods.utils.MediaController$cb$1.onPlaybackConfigChanged(MediaController.kt:174) at android.media.AudioManager$ServiceEventHandlerDelegate$1.handleMessage(AudioManager.java:4888) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loopOnce(Looper.java:282) at android.os.Looper.loop(Looper.java:387) at android.app.ActivityThread.main(ActivityThread.java:9500) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1005)
Author
Owner

@Nikitos0209 commented on GitHub (Nov 19, 2025):

While I was taking logs, the following message appeared:
FATAL EXCEPTION: DefaultDispatcher-worker-2
Process: me.kavishdevar.librepods, PID: 22957
java.lang.IllegalArgumentException: MAC address must be 6 bytes
at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion(AACPManager.kt:848)
at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion$default(AACPManager.kt:846)
at me.kavishdevar.librepods.services.AirPodsService.takeOver(AirPodsService.kt:2135)
at me.kavishdevar.librepods.services.AirPodsService.takeOver$default(AirPodsService.kt:2097)
at me.kavishdevar.librepods.services.AirPodsService.startHeadTracking(AirPodsService.kt:2616)
at me.kavishdevar.librepods.services.AirPodsService$connectToSocket$2$1.invokeSuspend(AirPodsService.kt:2347)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d89ae33, Dispatchers.IO]

<!-- gh-comment-id:3550613375 --> @Nikitos0209 commented on GitHub (Nov 19, 2025): While I was taking logs, the following message appeared: FATAL EXCEPTION: DefaultDispatcher-worker-2 Process: me.kavishdevar.librepods, PID: 22957 java.lang.IllegalArgumentException: MAC address must be 6 bytes at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion(AACPManager.kt:848) at me.kavishdevar.librepods.utils.AACPManager.sendMediaInformataion$default(AACPManager.kt:846) at me.kavishdevar.librepods.services.AirPodsService.takeOver(AirPodsService.kt:2135) at me.kavishdevar.librepods.services.AirPodsService.takeOver$default(AirPodsService.kt:2097) at me.kavishdevar.librepods.services.AirPodsService.startHeadTracking(AirPodsService.kt:2616) at me.kavishdevar.librepods.services.AirPodsService$connectToSocket$2$1.invokeSuspend(AirPodsService.kt:2347) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111) at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d89ae33, Dispatchers.IO]
Author
Owner

@Nikitos0209 commented on GitHub (Nov 19, 2025):

19_11-07-04-49_106.log
And here are the logs themselves

<!-- gh-comment-id:3550615153 --> @Nikitos0209 commented on GitHub (Nov 19, 2025): [19_11-07-04-49_106.log](https://github.com/user-attachments/files/23618614/19_11-07-04-49_106.log) And here are the logs themselves
Author
Owner

@kavishdevar commented on GitHub (Nov 19, 2025):

Please try this https://github.com/kavishdevar/librepods/actions/runs/19412004970.

<!-- gh-comment-id:3550909674 --> @kavishdevar commented on GitHub (Nov 19, 2025): Please try this https://github.com/kavishdevar/librepods/actions/runs/19412004970.
Author
Owner

@Nikitos0209 commented on GitHub (Nov 19, 2025):

Image It worked, but they don't show the charging of the case

<!-- gh-comment-id:3551725316 --> @Nikitos0209 commented on GitHub (Nov 19, 2025): <img width="1240" height="2772" alt="Image" src="https://github.com/user-attachments/assets/643581ee-5705-4796-b79a-4f953dfca48e" /> It worked, but they don't show the charging of the case
Author
Owner

@kavishdevar commented on GitHub (Nov 19, 2025):

The case battery is only shown when the ar least of the AirPods are in it.

<!-- gh-comment-id:3553340837 --> @kavishdevar commented on GitHub (Nov 19, 2025): The case battery is only shown when the ar least of the AirPods are in it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#121
No description provided.