Skip to content

Migrate to Android 12 and sdl_android 5.4.0#27

Merged
JulianKast merged 2 commits intoSmartDeviceLink-Examples:developfrom
noah-livio:android_12_and_5.4.0_updates
May 10, 2022
Merged

Migrate to Android 12 and sdl_android 5.4.0#27
JulianKast merged 2 commits intoSmartDeviceLink-Examples:developfrom
noah-livio:android_12_and_5.4.0_updates

Conversation

@noah-livio
Copy link
Copy Markdown
Contributor

Change compileSdkVersion and targetSdkVersion to 31
Update AndroidManifest to account for Bluetooth and USB changes in Android 12
Add a direct bluetooth permission request to MainActivity
Update SdlReceiver to use a shared router service when possible
Update PendingIntent flags to prevent crashes on Android 12 in WeatherAlarmManager

Change compileSdkVersion and targetSdkVersion to 31
Update AndroidManifest to account for Bluetooth and USB changes in Android 12
Add a direct bluetooth permission request to MainActivity
Update SdlReceiver to use a shared router service when possible
Update PendingIntent flags to prevent crashes on Android 12 in WeatherAlarmManager
return;
}

SdlReceiver.queryForConnectedService(this);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not want to call SdlReceiver.queryForConnectedService(this); here. If you look at the flow of the app, it gets called after the location permission is accepted. I would recommend that we tie in existing logic and request the nearby device permission after the location permission, possibly in SdlApplication.startService before it calls startSdlProxyService();. There are a couple of different ways to do it.

@JulianKast JulianKast merged commit f520342 into SmartDeviceLink-Examples:develop May 10, 2022
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

Successfully merging this pull request may close these issues.

2 participants