Merge "Create String before bundling AsyncTask" into qt-dev am: 3d0fbc98f8
am: 681ac74bd0
Change-Id: I0d9ac43c8577ad632a9cd3300e804ec564019aeb
This commit is contained in:
@@ -886,13 +886,13 @@ public class LockPatternUtils {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO(b/120484642): This is a location where we still use a String for vold
|
||||
String passwordString = password != null ? new String(password) : null;
|
||||
new AsyncTask<Void, Void, Void>() {
|
||||
@Override
|
||||
protected Void doInBackground(Void... dummy) {
|
||||
IStorageManager storageManager = IStorageManager.Stub.asInterface(service);
|
||||
try {
|
||||
// TODO(b/120484642): This is a location where we still use a String for vold
|
||||
String passwordString = password != null ? new String(password) : null;
|
||||
storageManager.changeEncryptionPassword(type, passwordString);
|
||||
} catch (RemoteException e) {
|
||||
Log.e(TAG, "Error changing encryption password", e);
|
||||
|
||||
Reference in New Issue
Block a user