Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 94aedc05 authored by Eric Biggers's avatar Eric Biggers
Browse files

Remove obsolete Smart Lock developer settings

There is no code that changes the trust_agents_extend_unlock or
lock_screen_when_trust_lost settings from their default values.  These
settings were introduced as a "temporary convenience for dogfooding"
when the "extend unlock" feature was initially added in Android 10
(https://android.googlesource.com/platform/frameworks/base/+/15f7dd0c29881228b40d6db7f7f6e5d151cdb832).

Before Android 10 was released, extend unlock became the default
(https://android.googlesource.com/platform/frameworks/base/+/d3268c2dca1f09b6cef01579588b7aeb7c867cb9).

In Android 11, the ability to toggle these settings was removed from the
Settings app
(https://android.googlesource.com/platform/packages/apps/Settings/+/638aa7c066c4046ebc092fcfe4b29eb35040fbfc).

Therefore, there's no need to support anything other than the default
values of these settings.  Simplify the code accordingly.  Note, no
tests need to be removed because the non-default values were untested.

Bug: 120871688
Test: atest TrustTests
Change-Id: I6697b578712dfb57f9e709c541454b43e79d3a14
parent ae8e8431
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment