Feature: Motion Activated Device Lock
Overview
This feature allows for locking the device while the user is driving. When a device is locked, the screen will only display text explaining that the device is locked, and the user will not be able to navigate away from this screen. This is controlled with configuration settings.
Motion Activated Device Lock can be enabled or disabled using lockInMotion within Launcher "settings" configuration. The sensitivity of Motion Activated Device Lock can be adjusted using lockInMotionConfidence which is also found within the Launcher "settings" congifuration.
Flow
If lockInMotion is true, the device will be locked while the user is driving. When driving has been detected, the user will be presented with a locked device screen. This screen cannot be navigated away from until the user is not driving. The following is an example of a locked device.
When the user stops driving, the user will be navigated back to the homescreen and can use the device normally.
If lockInMotion is false, the device will not be locked while the user is driving.
Technical Notes
Configuration:
lockInMotion: Indicates that the device should be locked while the user is driving. false
indicates that the device should not be locked while the user is driving.
lockInMotionConfidence: Indicates the needed level of confidence that the user is driving in order to lock the device. For instance, if this is set to 50
, the device will be locked when we are at least 50 percent confident that the user is driving. This value can range from 0 to 100. Note that this setting will only be utilized if lockInMotion is set to true
.
lockInMotionInterval: Indicates the interval (in milliseconds) to query motion information from the system. Default is 5000 ms (5 seconds). Introduced in Launcher version 3.11.4.
lockInMotionUseGps: Indicates that the device will be using GPS to determine if the user is driving. false
indicates that the device should not be used for lock in motion detection. Note that this setting will only be utilized if lockInMotion is set to true
.
lockInMotionSpeedInMph: Indicates the movement speed threshold in miles per hour required to lock the device. For example, if it is set to 2
, the device will be locked if the detected speed is greater than or equal to 2 miles per hour. Default is 5 miles per hour. Note that this setting will only be utilized if lockInMotionUseGps is set to true
.
lockInMotionGpsUpdateInterval: Indicates the GPS minimimum time interval in milliseconds to update. For instance, if it is set to 10000
, the GPS update time interval will run every 10 seconds. Default is 5000 milliseconds. Note that this setting will only be utilized if lockInMotionUseGps is set to true
.
lockInMotionGpsMinDistanceThreshold: Indicates that the detected speed is greater than the distance between GPS updates in meters. For instance, if it is set to 5
, the GPS updates will run every 5 meters. Default is 0, which means that GPS updates will constantly update. Note that this setting will only be utilized if lockInMotionUseGps is set to true
.
Example:
"settings": {
...
"lockInMotion" : true,
"lockInMotionConfidence" : 50,
"lockInMotionInterval": 5000,
"lockInMotionUseGps": true,
"lockInMotionSpeedInMph": 5,
"lockInMotionGpsUpdateInterval": 5000,
"lockInMotionGpsMinDistanceThreshold": 0
...
}
Feature Introduced
Feature Introduced in Launcher 3.5.x.