Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sometimes crashes on miui 13 when headphones connected 🤷 #5

Open
nazarsavorona opened this issue Apr 8, 2023 · 9 comments
Open

Comments

@nazarsavorona
Copy link

Crashes when headphones are connected.

@TheLastGimbus
Copy link
Owner

Hi! Do You maybe have multiple devices paired as in #4 ?

If not, are you able to send me android logs when app crashes?

@nazarsavorona
Copy link
Author

How can I export them?

@TheLastGimbus
Copy link
Owner

Oh, you would need to have debugging enabled in your phone, install adb on your pc, then connect phone to pc etc

it's fairly complicated to do so don't bother if you don't have much time

but if you would like to help with the app, i can guide you :)

@TheLastGimbus TheLastGimbus changed the title Poco F3, miui 13 Sometimes crashes on miui 13 when headphones connected 🤷 Sep 19, 2023
@andreyplus
Copy link

andreyplus commented Feb 26, 2024

Hello, the application crashes when connecting headphones. (MIUI 13, Android 12)

In the logs:
E AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-2
E AndroidRuntime: Process: com.lastgimbus.the.freebuddy, PID: 19019
E AndroidRuntime: java.lang.SecurityException: UID 10967 / PID 19019 lacks permission android.permission.BLUETOOTH
E AndroidRuntime:        at android.os.Parcel.createExceptionOrNull(Parcel.java:2425)
E AndroidRuntime:        at android.os.Parcel.createException(Parcel.java:2409)
E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:2392)
E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:2334)
E AndroidRuntime:        at android.bluetooth.IBluetoothSocketManager$Stub$Proxy.connectSocket(IBluetoothSocketManager.java:227)
E AndroidRuntime:        at android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:404)
E AndroidRuntime:        at s2.c$g.invokeSuspend(Unknown Source:24)
E AndroidRuntime:        at s2.c$g.invoke(Unknown Source:8)
E AndroidRuntime:        at s2.c$g.invoke(Unknown Source:4)
E AndroidRuntime:        at r4.b.b(Unknown Source:7)
E AndroidRuntime:        at kotlinx.coroutines.l.e(Unknown Source:49)
E AndroidRuntime:        at kotlinx.coroutines.j.g(Unknown Source:0)
E AndroidRuntime:        at s2.c.r(Unknown Source:103)
E AndroidRuntime:        at s2.c.b(Unknown Source:0)
E AndroidRuntime:        at s2.c$k.invokeSuspend(Unknown Source:51)
E AndroidRuntime:        at kotlin.coroutines.jvm.internal.a.resumeWith(Unknown Source:11)
E AndroidRuntime:        at kotlinx.coroutines.b1.run(Unknown Source:88)
E AndroidRuntime:        at kotlinx.coroutines.internal.k.run(Unknown Source:12)
E AndroidRuntime:        at kotlinx.coroutines.scheduling.k.run(Unknown Source:2)
E AndroidRuntime:        at kotlinx.coroutines.scheduling.a.s(Unknown Source:0)
E AndroidRuntime:        at kotlinx.coroutines.scheduling.a$c.d(Unknown Source:14)
E AndroidRuntime:        at kotlinx.coroutines.scheduling.a$c.n(Unknown Source:28)
E AndroidRuntime:        at kotlinx.coroutines.scheduling.a$c.run(Unknown Source:0)

Perhaps this is due to https://stackoverflow.com/questions/71552331/got-lacks-permission-android-permission-bluetooth-on-specific-device-after-and

PS: I only have one connected device

@TheLastGimbus
Copy link
Owner

Omg @andreyplus this is precious for me - i did see security exceptions in google play console, and i thought "huh xiaomis implementation probably still want location permission for basic shit, I'm not doing that"

But a single line in manifest! Will fix this very soon ✌️✌️

@andreyplus
Copy link

@TheLastGimbus Hi, how's the progress?

@TheLastGimbus
Copy link
Owner

TheLastGimbus commented Mar 19, 2024

@andreyplus i wanted to finish current big things that are happening, and then do one big update

but, to not keep you waiting, here is a nightly build with just the xiaomi fix: https://github.com/TheLastGimbus/FreeBuddy/actions/runs/8349836778

(actually it's a good idea for guys to test if it actually works <3)

@andreyplus
Copy link

@TheLastGimbus Thanks, this works great!

@TheLastGimbus
Copy link
Owner

Fantastic, will land in next official release 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants