vold: allow non-vfat devices to be used as ASEC

N/A

only ext4 on mi2/2s/2a
Signed-off-by: huangqiwu <huangqiwu@xiaomi.com>
Change-Id: Ifa652668b5c1a94cec66ae2039693124d1e318e6
vold: mount ext4 with forced SELinux context

Always mount voldmanaged ext4 partitions with the SELinux sdcard_external
context. For other file systems, this is done via the genfs_context,
but since ext4 supports SELinux natively, it must be set here.

Change-Id: I1364f37018b25d79b1826c85849def64e868d72f
vold: force SELinux context only for sdcard

Google uses this code to mount ASEC as well and we shouldn't force
their SELinux contexts

Change-Id: I873af4dc2309d3d0942ce466b8acf8158abb85ae
Revert "vold: force SELinux context only for sdcard"

This reverts commit cbab103cee79f01fad133e37484f5ebb1ac03397.
Revert "vold: mount ext4 with forced SELinux context"

This reverts commit aa7b4dd99efcaa37227c21d1d11c4fe28f37db2a.
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