BimmerGestalt / AAIdrive

Implementations of some Android Auto features as unofficial IDrive apps
MIT License
541 stars 90 forks source link

Android API 31 adds restrictions on background start #485

Closed hufman closed 1 year ago

hufman commented 2 years ago

When eventually Google Play Store requires that the app targets API 31, it will run into restrictions about starting the service in the background. There's a new (dangerous, so needs a prompt to request) Bluetooth permission to add and the service can be started from the Bluetooth event handler, but there may also need to be extra error handling in other service start places.

hufman commented 1 year ago

This locks down in November 2022, at which time no updates to AAIdrive can be pushed without targeting API 31.

hufman commented 1 year ago

There's a few options, from reading the list of exemptions: