opened 05:59PM - 25 Aug 22 UTC
Add support for using device controls while the device is locked o…n Android 13. By default this is enabled, as I feel like this is what most users expect and the system level setting for this was enabled by default on upgrade for me.
Because this is Home Assistant, users can enable/disable it for all entities or control the setting for individual entities. When enable/disable all has been used new entities will follow this setting, when individual entities have been adjusted new entities are enabled by default.
To make this possible this PR bumps the `compileSdk` to `33` (Android 13). The change in `GeocodeSensorManager` is because of this, as the function that is used was changed to be nullable.
A demo of the functionality, showing a locked device where you can use one control without entering the PIN and another that does require entering the PIN:
A new setting was added to Settings > Companion app when using Android 13, using the same icon and name as the tile in quick settings:
|![A snippet of the app settings, showing an option titled 'Manage Device Controls', description 'Choose if quick access device controls can be used when this device is locked', icon of a home that matches the quick settings panel, light mode.](https://user-images.githubusercontent.com/8148535/186732336-8d40867f-fb86-4cdd-ac20-806d4a9e4ee0.png)|![A snippet of the app settings, showing an option titled 'Manage Device Controls', description 'Choose if quick access device controls can be used when this device is locked', icon of a home that matches the quick settings panel, dark mode.](https://user-images.githubusercontent.com/8148535/186732359-4aaf83b2-6c40-4d26-b130-3398d613af43.png)|
The 'Manage Device Controls' screen includes a short description of the functionality, buttons to enable/disable all entities, a list of entities with checkboxes, and a help icon in the toolbar that links to the documentation:
|![The 'Manage Device Controls' screen as described, light mode.](https://user-images.githubusercontent.com/8148535/186733101-42e801bb-ef0d-4b7d-968a-9c1b5988c74a.png)|![The 'Manage Device Controls' screen as described, dark mode.](https://user-images.githubusercontent.com/8148535/186733157-0a63299f-65bb-4fcf-b139-fd4d4b7f9898.png)|
## Link to pull request in Documentation repository
## Any other notes