platform_system_vold/model
Alistair Delva d3c230b5c9 Expand virtio_block check to other virtual devices
The Android Emulator isn't the only virtual device the virtio-block
detection code is useful for, and those platforms might not set any
discriminating properties to indicate that they are virtual.

Rework the virtio-block major detection to use /proc/devices instead
of hardcoding the assumption that any virtual platform can have
virtio-block at any experimental major; the new code permits only the
exact experimental major assigned to virtio-block.

The new code runs everywhere, but it will only run once and could be
expanded later to detect dynamic or experimental majors.

Bug: 156286088
Change-Id: Ieae805d08fddd0124a397636f04d99194a9ef7e5
Merged-In: Ieae805d08fddd0124a397636f04d99194a9ef7e5
2020-05-16 00:02:21 +00:00
..
Disk.cpp Expand virtio_block check to other virtual devices 2020-05-16 00:02:21 +00:00
Disk.h vold: const-ify some of the API 2018-12-20 10:38:15 -08:00
EmulatedVolume.cpp Remove storage sandboxes related code. 2019-05-09 17:48:04 -07:00
EmulatedVolume.h Create new mount directory /mnt/runtime/full. 2019-01-18 23:48:45 +00:00
ObbVolume.cpp Add GetBlockDevSize, GetBlockDevSectors helpers 2018-09-24 14:25:24 +02:00
ObbVolume.h clang-format many files. 2018-09-18 15:41:22 -07:00
PrivateVolume.cpp On newer devices, use dm-default-key to encrypt SD cards 2020-02-18 13:01:00 -08:00
PrivateVolume.h Pass volume key as a KeyBuffer 2020-02-12 14:26:38 -08:00
PublicVolume.cpp Remove storage sandboxes related code. 2019-05-09 17:48:04 -07:00
PublicVolume.h Create new mount directory /mnt/runtime/full. 2019-01-18 23:48:45 +00:00
StubVolume.cpp StubVolume as first class Volume in Vold 2018-11-08 07:40:43 +00:00
StubVolume.h StubVolume as first class Volume in Vold 2018-11-08 07:40:43 +00:00
VolumeBase.cpp Remove storage sandboxes related code. 2019-05-09 17:48:04 -07:00
VolumeBase.h Remove storage sandboxes related code. 2019-05-09 17:48:04 -07:00
VolumeEncryption.cpp On newer devices, use dm-default-key to encrypt SD cards 2020-02-18 13:01:00 -08:00
VolumeEncryption.h On newer devices, use dm-default-key to encrypt SD cards 2020-02-18 13:01:00 -08:00