vold: cryptfs: Don't update KDF without validating pwd/key.

Prior to this, the Key derivation function would get
 blindly updated even if the user entered the wrong password.
Now, we only attempt to upgrade the KDF if the pwd/key have
been verified (i.e. after a successful mount).

Bug: 11460197
Change-Id: I0469228cc9b87c47754e8ca3c7146651da177da5
merge in klp-release history after reset to klp-dev
vold: cryptfs: Don't update KDF without validating pwd/key.

Prior to this, the Key derivation function would get
 blindly updated even if the user entered the wrong password.
Now, we only attempt to upgrade the KDF if the pwd/key have
been verified (i.e. after a successful mount).

Bug: 11460197
Change-Id: I0469228cc9b87c47754e8ca3c7146651da177da5
Merge tag 'android-4.4_r1.2' into cm-11.0

Android 4.4 Release 1.2
vold: pass selinux context to ext4 mount (remount ro)

Change-Id: Ic0bb314b30e42489c45caec29d35d6896c9849eb
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
vold: Raise MAX_PARTITIONS to 32

 * We raised this in 10.2 globally, lets put it back to 32 so that
   new bringups don't get stuck on this. It's likely that every single
   device which uses physical, nonremovable volumes with vold will hit
   this limit.

Change-Id: Id7522681a2317c4aff49ca27e1c57e69fe57213c