summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/ConfirmDeviceCredentialActivity.java
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2014-10-16 14:44:25 -0700
committerSvetoslav <svetoslavganov@google.com>2014-10-16 17:35:07 -0700
commit3ea423ae0ff56d249b6844b3a68c67ee5eba243d (patch)
tree41873caacc9be44efd31ffa435ea67814e141894 /src/com/android/settings/ConfirmDeviceCredentialActivity.java
parent4909c412fa8c495f1abba3c7d3fe0c32f08934db (diff)
downloadpackages_apps_Settings-3ea423ae0ff56d249b6844b3a68c67ee5eba243d.zip
packages_apps_Settings-3ea423ae0ff56d249b6844b3a68c67ee5eba243d.tar.gz
packages_apps_Settings-3ea423ae0ff56d249b6844b3a68c67ee5eba243d.tar.bz2
User to confirm credentials if an accessibility service changes encryption.
When an accessibility service is enabled we are not using the user secure lock when encrypting the data. If the latter is already used for encryption we are decreasing the encryption level and therefore shall challenge the user with their secure lock. bug:17881324 Change-Id: If8905c05e20bc6bb6a6415e501871e5ad83f3d86
Diffstat (limited to 'src/com/android/settings/ConfirmDeviceCredentialActivity.java')
-rw-r--r--src/com/android/settings/ConfirmDeviceCredentialActivity.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/settings/ConfirmDeviceCredentialActivity.java b/src/com/android/settings/ConfirmDeviceCredentialActivity.java
index 6b2bfd2..beb2d97 100644
--- a/src/com/android/settings/ConfirmDeviceCredentialActivity.java
+++ b/src/com/android/settings/ConfirmDeviceCredentialActivity.java
@@ -30,6 +30,15 @@ import android.util.Log;
public class ConfirmDeviceCredentialActivity extends Activity {
public static final String TAG = ConfirmDeviceCredentialActivity.class.getSimpleName();
+ public static Intent createIntent(CharSequence title, CharSequence details) {
+ Intent intent = new Intent();
+ intent.setClassName("com.android.settings",
+ ConfirmDeviceCredentialActivity.class.getName());
+ intent.putExtra(KeyguardManager.EXTRA_TITLE, title);
+ intent.putExtra(KeyguardManager.EXTRA_DESCRIPTION, details);
+ return intent;
+ }
+
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);