fufs
May 9, 2022, 4:59pm
1
Hi,
whenever I want to change the brightness of a light or open my front gate from the lockscreen’s shortcut to Device Controls (Android 12), it asks me scan my fingerprint. This is quite annoying as I would wish to quickly control some devices without the need to unlock my device. I’ve read somewhere that you can disable the requirement for the extra authentication, but I can’t remember where it was. I’ve been also unsuccessful in locating such option in the app’s settings and the Home Assistant. Does anyone know how to change that behaviour?
android 13 will introduce new behavior that will allow the app to work without unlocking, until then there is not much to be done. There is already an existing feature request for this on github.
1 Like
Nibako
(Nicolas)
May 18, 2023, 9:26am
3
Andoird 13 is out now, any Updates?
fufs
May 18, 2023, 6:10pm
4
I believe it has been implemented for a while now
yes it has been implemented some time ago
home-assistant:master
← jpelgrom:android-13-locked-controls-2381
opened 05:59PM - 25 Aug 22 UTC
## Summary
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.
Fixes #2381
## Screenshots
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:
https://user-images.githubusercontent.com/8148535/186732084-e5133e50-f9b2-4268-a418-5438dbe53cc4.mp4
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:
|Light|Dark|
|-----|-----|
|![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:
|Light|Dark|
|-----|-----|
|![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
Documentation: home-assistant/companion.home-assistant#799
## Any other notes