Fix broken image writing on some userdata configurations.

For unencrypted devices, or devices with FBE and no metadata encryption,
then userdata cannot be used with device-mapper since the mount has
exclusive access. This poses a problem since normally we need
device-mapper to bypass encryption.

Luckily in both of these cases, we can simply perform normal unencrypted
writes to /data/gsi instead.

Bug: 126249541
Test: GSI installation works on devices with no encryption or FBE
      devices with no metadata encryption

Change-Id: I4ac21dbeec7a46fdd74a63601dc52f7119aeb3a9
2 files changed