Skip to content

Commit

Permalink
Fix failure erasing SD in Factory reset
Browse files Browse the repository at this point in the history
Initialize mIsDecrypted to prevent from formatting SD failure

Change-Id: I30851e6b01b0999bf0b8c1e4b8e3f3a976a41ad1
Signed-off-by: Cylen Yao <cylen.yao@mediatek.com>
(cherry picked from commit 5dbcbd03149af50db42dadeebf565333ce399182)
  • Loading branch information
cylenyao authored and toddpoynor committed Jul 25, 2014
1 parent 40b64a6 commit 33c29d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DirectVolume.cpp
Expand Up @@ -79,6 +79,7 @@ DirectVolume::DirectVolume(VolumeManager *vm, const fstab_rec* rec, int flags) :
mDiskMajor = -1;
mDiskMinor = -1;
mDiskNumParts = 0;
mIsDecrypted = 0;

if (strcmp(rec->mount_point, "auto") != 0) {
ALOGE("Vold managed volumes must have auto mount point; ignoring %s",
Expand Down

0 comments on commit 33c29d6

Please sign in to comment.