platform_system_vold/model
Alistair Delva ff1fc9bc41 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
2020-05-15 17:00:44 -07:00
..
Disk.cpp Expand virtio_block check to other virtual devices 2020-05-15 17:00:44 -07:00
Disk.h Add disk for StubVolume 2020-02-12 07:42:40 +00:00
EmulatedVolume.cpp Bind mount install and android writable DATA and OBB dirs 2020-04-20 15:06:58 +01:00
EmulatedVolume.h Bind mount Android/data and Android/obb individually. 2020-03-20 13:24:41 +01: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 Introduce postMount() VolumeBase helper. 2020-05-04 15:09:32 +02:00
PrivateVolume.h Introduce postMount() VolumeBase helper. 2020-05-04 15:09:32 +02:00
PublicVolume.cpp Allow external_storage or media_rw gid access /mnt/media_rw 2020-01-24 22:21:55 +00: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 Introduce postMount() VolumeBase helper. 2020-05-04 15:09:32 +02: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