Remove EXTRA_KEY_TYPE intent data
This intent data was only used by CryptKeeperSettings, which has been removed. This is also one of the only remaining users of the StorageManager.CRYPT_TYPE_* constants which were only ever intended to be used with vold's Full Disk Encryption APIs, which have been removed. Bug: 208476087 Test: m RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.password (No regressions seen; 2 tests fail both before and after.) Change-Id: Id6e2c0f5ecc79f7372b29393e66ffbd66d52d7a2
This commit is contained in:
@@ -29,7 +29,6 @@ import android.os.Handler;
|
||||
import android.os.Looper;
|
||||
import android.os.SystemClock;
|
||||
import android.os.UserManager;
|
||||
import android.os.storage.StorageManager;
|
||||
import android.text.Editable;
|
||||
import android.text.InputType;
|
||||
import android.text.TextUtils;
|
||||
@@ -445,11 +444,6 @@ public class ConfirmLockPassword extends ConfirmDeviceCredentialBaseActivity {
|
||||
public void onChecked(boolean matched, int timeoutMs) {
|
||||
mPendingLockCheck = null;
|
||||
if (matched && isInternalActivity() && mReturnCredentials) {
|
||||
// TODO: get rid of EXTRA_KEY_TYPE, since EXTRA_KEY_PASSWORD already
|
||||
// distinguishes beteween PIN and password.
|
||||
intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_TYPE,
|
||||
mIsAlpha ? StorageManager.CRYPT_TYPE_PASSWORD
|
||||
: StorageManager.CRYPT_TYPE_PIN);
|
||||
intent.putExtra(
|
||||
ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, credential);
|
||||
}
|
||||
|
Reference in New Issue
Block a user