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

how to debug bluetooth problem for mybmw connect to car's app function #796

Open
galenzhao opened this issue Jun 29, 2024 · 10 comments
Open

Comments

@galenzhao
Copy link

galenzhao commented Jun 29, 2024

Hi,

Today, I upgraded my phone to Android 14 QPR3,
build from LineageOS 21.

After the upgrade, the MyBMW app can no longer connect to the car's app function.
The app checkbox is not shown checked in the car. (All permissions are set correctly for the MyBMW app, and it worked well before the upgrade.)

It always stuck on open app if necessary when I repair phone on car.

Before the upgrade, everything worked well.
So, it may be a problem with the Bluetooth in the new Android system.

How can I debug the problem? Is there any checkpoint for MyBMW to make the app function connect to the car?
Thanks.

@Andrea535LT
Copy link

Following. Same issue with my S24 Ultra

@hufman
Copy link
Collaborator

hufman commented Jun 29, 2024

Unfortunately, the MyBMW>Car connection is relatively opaque, and I'm not sure what the car looks for before showing the Apps checkbox. The only suggestion I've heard work for other people is to enable all the permissions and background execution options (especially for Samsung), which it sounds like you've done. I've heard other people work well on Android 14 after setting these settings, and my own Sony phone hasn't had any issue with Android 14.

If you'd like to debug further, I have notes on how to patch the Connected/MyBMW apps to enable debug logging, which can be combined with decompilation to try to trace through what it's doing. I haven't experienced the issue of the Apps checkbox not showing, so I can't help in this regard.

@galenzhao
Copy link
Author

galenzhao commented Jun 30, 2024

Unfortunately, the MyBMW>Car connection is relatively opaque, and I'm not sure what the car looks for before showing the Apps checkbox. The only suggestion I've heard works for other people is to enable all the permissions and background execution options (especially for Samsung), which it sounds like you've done. I've heard other people work well on Android 14 after setting these settings, and my own Sony phone hasn't had any issues with Android 14.

I know the permission setting problem on Android 14, when I first upgraded to Android 14 beta I found it needed to give nearby device permission to the mybmw app which may be needed by connecting a Bluetooth device from the mybmw app.
Then all things going well.

If you'd like to debug further, I have notes on how to patch the Connected/MyBMW apps to enable debug logging, which can be combined with decompilation to try to trace through what it's doing. I haven't experienced the issue of the Apps checkbox not showing, so I can't help in this regard.

Thanks for the info.
Cuz I'm using a self-build AOSP which may be the QPR3 version missing some Bluetooth functions.
I'm going to investigate the communication between mybmw and car and will come back if any progress.

@galenzhao
Copy link
Author

is there any way to bypass the login view of BMW Connected_6.4.1.6349_Apkpure.apk
I followed the info and opened the log, but the app needed a login to open.

@hufman
Copy link
Collaborator

hufman commented Jul 2, 2024

BMW Connected will connect to the car even without logging in, and even add its old Audioplayer and Calendar apps.

@galenzhao
Copy link
Author

galenzhao commented Jul 2, 2024

BMW Connected will connect to the car even without logging in, and even add its old Audioplayer and Calendar apps.

Yes, I can confirm that the old "BMW Connected_6.4.1.6349_Apkpure.apk" app can work without any problems.

So, it seems that the new MyBMW app and Android 14 QPR3 may have some issues.

Since the old app works well, I thought the MyBMW app might have some additional checks or requirements for Android 14 QPR3, which could be causing the car to not recognize the phone's app functionality.

By the way, what are the negative effects of having both the old and new apps installed?
Thanks.

@hufman
Copy link
Collaborator

hufman commented Sep 5, 2024

Oh sorry, I missed this email:
The only negative effect I've seen is that older headunits get confused about both BMW Connected and MyBMW connecting at the same time and crash and restart. I've mainly seen this with the USB connection and IDrive4, but perhaps they are not correlated together.

@obhammer
Copy link

obhammer commented Oct 7, 2024

I know the permission setting problem on Android 14, when I first upgraded to Android 14 beta I found it needed to give nearby device permission to the mybmw app which may be needed by connecting a Bluetooth device from the mybmw app. Then all things going well.

NB! The newest release of My BMW (4.9.2 release date Sept 11 2024) resets all the given permissions for the app - and "Nearby devices" permission brakes the AAIdrive connection !!! Looks like all affected users need to manually give permission for Nearby devices in order to get the "App" show up in the iDrive bluetooth device properties, for making the AAIdrive work again

@hufman
Copy link
Collaborator

hufman commented Oct 7, 2024

I'm not sure if an app upgrade would reset permissions, as I understand the Android upgrade process.
I do know Android has a feature to clear permissions of apps that aren't used in a long time, for "security". Perhaps this is what people have been experiencing?

@obhammer
Copy link

obhammer commented Oct 7, 2024

I'm not sure if an app upgrade would reset permissions, as I understand the Android upgrade process. I do know Android has a feature to clear permissions of apps that aren't used in a long time, for "security". Perhaps this is what people have been experiencing?

Yes, it might have been a Android security updatethat did it as well - anyhow, I discovered this recently, so please check this if you encounter problems. (it might be that timeout you're referring to as well - although I doubt that, since I use My BMW every day)

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

4 participants