Merge "Create String before bundling AsyncTask" into qt-dev
am: 3d0fbc98f8
Change-Id: If2610098bef68780782e0a11014b97efd0f38a70
This commit is contained in:
@@ -886,13 +886,13 @@ public class LockPatternUtils {
|
|||||||
return;
|
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>() {
|
new AsyncTask<Void, Void, Void>() {
|
||||||
@Override
|
@Override
|
||||||
protected Void doInBackground(Void... dummy) {
|
protected Void doInBackground(Void... dummy) {
|
||||||
IStorageManager storageManager = IStorageManager.Stub.asInterface(service);
|
IStorageManager storageManager = IStorageManager.Stub.asInterface(service);
|
||||||
try {
|
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);
|
storageManager.changeEncryptionPassword(type, passwordString);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Error changing encryption password", e);
|
Log.e(TAG, "Error changing encryption password", e);
|
||||||
|
|||||||
Reference in New Issue
Block a user