platform_system_vold/model
Eric Biggers 7e79a43a72 Remove broken code for mounting encrypted OBB files
Mounting encrypted OBB files has never worked reliably across devices,
partly due to its reliance on Twofish encryption support in the kernel.
This is because Twofish support (CONFIG_CRYPTO_TWOFISH) has never been
required or even recommended for Android.  It has never been enabled in
GKI, but even before GKI it wasn't required or recommended.  Moreover,
this is now the only Android feature that still uses dm-crypt
(CONFIG_DM_CRYPT), and some devices don't have that enabled either.

Therefore, it appears that this feature is unused.  That's perhaps not
surprising, considering that the documentation for OBBs
(https://developer.android.com/google/play/expansion-files) says that
they are deprecated, and also it explains OBBs as being app files that
are opaque to the platform; the ability of the platform to mount OBBs
that happen to be in a particular format is never mentioned.  That means
that OBB mounting is probably rarely used even with unencrypted OBBs.
Finally, the usefulness of OBBs having their own encryption layer (in
addition to what the platform already provides via FBE) is not clear
either, especially with such an unusual choice of cipher.

To avoid the confusion that is being caused by having the broken code
for mounting encrypted OBBs still sitting around, let's remove it.

Test: atest StorageManagerTest # on Cuttlefish
Test: atest StorageManagerIntegrationTest # on Cuttlefish
Bug: 216475849
Change-Id: Iaef32cce90f95ea745ba2b143f89e66f533f3479
2022-03-01 21:19:18 +00:00
..
Disk.cpp Expand virtio_block check to other virtual devices 2020-05-16 00:02:21 +00:00
Disk.h Remove StubVolume disks upon vold reset events 2021-12-08 09:37:53 +09:00
EmulatedVolume.cpp Disable bind mounts for data and obb if FUSE BPF is available 2021-12-02 18:35:17 +00:00
EmulatedVolume.h Disable bind mounts for data and obb if FUSE BPF is available 2021-12-02 18:35:17 +00:00
ObbVolume.cpp Remove broken code for mounting encrypted OBB files 2022-03-01 21:19:18 +00:00
ObbVolume.h Remove broken code for mounting encrypted OBB files 2022-03-01 21:19:18 +00:00
PrivateVolume.cpp Set media folder +F for adopted storage as well 2020-10-20 18:55:54 -07:00
PrivateVolume.h Introduce postMount() VolumeBase helper. 2020-05-04 15:09:32 +02:00
PublicVolume.cpp Split MOUNT_FLAG_VISIBLE into MOUNT_FLAG_VISIBLE_FOR_{READ, WRITE} 2021-11-25 13:04:45 +09:00
PublicVolume.h Conditionally use sdcardfs. 2020-01-07 09:03:35 +01:00
StubVolume.cpp Add disk for StubVolume 2020-02-12 07:42:40 +00:00
StubVolume.h Add disk for StubVolume 2020-02-12 07:42:40 +00:00
VolumeBase.cpp Introduce postMount() VolumeBase helper. 2020-05-04 15:09:32 +02:00
VolumeBase.h Split MOUNT_FLAG_VISIBLE into MOUNT_FLAG_VISIBLE_FOR_{READ, WRITE} 2021-11-25 13:04:45 +09:00
VolumeEncryption.cpp vold: use __ANDROID_API_Q__ instead of pre_gki_level 2020-08-10 11:45:08 -07:00
VolumeEncryption.h On newer devices, use dm-default-key to encrypt SD cards 2020-02-18 13:01:00 -08:00