Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to ignore tklock removal while device lock is active #252

Merged
merged 2 commits into from Mar 15, 2015
Merged

Add option to ignore tklock removal while device lock is active #252

merged 2 commits into from Mar 15, 2015

Conversation

spiiroin
Copy link
Contributor

No description provided.

Using helper functions for getting initial setting value and installing
change notifier callback allows bit more compact code and makes it a bit
more difficult to make obvious errors.

Initialize fallback values from named constants. When possible use
the same constants to initialize also the built-in config defaults.

No functional changes.
The tklock status more or less equals "lockscreen is active". And
removing tklock switches from lockscreen to home/app view. This
is problematic if device unlocking should happen in the context of
the lockscreen as power key actions / random tklock request from
applications could effectively bypass the device lock.

Add configuration setting "devicelock is in lockscreen". While the
setting is enabled, mce will not allow removal of tklock while
device lock is active.

By the default the setting is disabled.

Changing the setting should happen via installing configuration file
to /etc/mce directory if (and only if) the ui side actually implements
device unlocking within lockscreen.

The option can also be toggled via mcetool. But since inappropriate
use can make the device unlockable from ui, the mcetool option is
flagged as dangerous and interactive confirmation is required.

[mce] Add option to ignore tklock removal while device lock is active. Fixes JB#26525
spiiroin added a commit that referenced this pull request Mar 15, 2015
Add option to ignore tklock removal while device lock is active
@spiiroin spiiroin merged commit a750f42 into nemomobile:master Mar 15, 2015
@spiiroin spiiroin deleted the jb26525_devicelock_in_lockscreen branch March 15, 2015 21:28
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.

None yet

1 participant