No description
Find a file
Yu Ning 942d4e830b Support emulator's virtio-blk based SD card
Currently, vold only supports MMC (for SD cards) and SCSI (for USB
drives) devices. It does not recognize any device whose major number is
not one of those used by MMC and SCSI. Unfortunately, virtio-blk is one
such device. It is used by the new Android emulator (a.k.a. qemu2,
featuring the "ranchu" virtual board) for SD card emulation.

In order to make this virtio-blk based SD card device appear in Android
and appear as an SD card (rather than a USB drive), changes have to be
made to both vold (wherever the device major number is checked) and
ranchu's storage configuration. This CL implements former.

This is a stop-gap solution for emulator in nyc.
A longer term solution in-tune with upstream kernel is in the pipes.

Updated from aosp/master version.

BUG:27431753

Change-Id: I5014edec73be7c5b565d91542464c82cbe58992c
Signed-off-by: Yu Ning <yu.ning@intel.com>
(cherry picked from commit 5b1d1c7dfa13b4dca75213581dc8351b841b76c8)
2016-03-08 12:19:41 -08:00
bench Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
fs resolve merge conflicts of b7d5a47cec to master. 2015-12-04 17:55:33 -08:00
tests Remove superfluous OpenSSL include paths. 2015-01-22 16:45:28 -08:00
Android.mk Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
Asec.h Add in ext4 support for ASEC containers 2012-04-25 14:15:15 -07:00
AutoCloseFD.h Use android-base logging not cutils in secdiscard 2016-01-12 10:03:05 +00:00
Benchmark.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
Benchmark.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
BenchmarkGen.h Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
CheckBattery.cpp Make vold compile with -Werror -Wall. 2014-12-18 00:21:21 +00:00
CheckBattery.h On low power turn off rather than rebooting to allow device to charge 2014-06-09 15:15:32 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
CommandListener.cpp Add context mount option for appfuse. 2016-02-05 16:09:24 +09:00
CommandListener.h Mount appfuse in process namespace. 2016-02-02 18:56:19 +09:00
CryptCommandListener.cpp Merge "Fix encryption on non-default devices" into nyc-dev 2016-02-09 19:32:44 +00:00
CryptCommandListener.h Prefer bool returns to int throughout 2016-02-09 10:11:42 +00:00
cryptfs.c Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
cryptfs.h Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
Devmapper.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Devmapper.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Disk.cpp Support emulator's virtio-blk based SD card 2016-03-08 12:19:41 -08:00
Disk.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
EmulatedVolume.cpp Unmount emulated filesystems before killing the fuse process. 2016-01-26 10:05:15 +00:00
EmulatedVolume.h Let's reinvent storage, yet again! 2015-06-25 22:40:08 -07:00
Ext4Crypt.cpp Merge "Use a proper key length for the mode." into nyc-dev 2016-03-02 18:59:58 +00:00
Ext4Crypt.h Prefer bool returns to int throughout 2016-02-09 10:11:42 +00:00
hash.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
Keymaster.cpp Improvements to the key storage module 2016-01-27 15:54:35 +00:00
Keymaster.h Password security for FBE disk encryption keys 2016-02-08 20:03:57 +00:00
KeyStorage.cpp Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
KeyStorage.h Password security for FBE disk encryption keys 2016-02-08 20:03:57 +00:00
Loop.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Loop.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
main.cpp Refactor now that global DE has been reworked 2016-02-09 10:11:42 +00:00
MoveTask.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
MoveTask.h Migrate primary external storage. 2015-04-24 16:08:07 -07:00
NetlinkHandler.cpp Remove obsolete code for monitoring USB status 2011-06-07 08:34:08 -07:00
NetlinkHandler.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
NetlinkManager.cpp Progress towards dynamic storage support. 2015-03-30 19:46:31 -07:00
NetlinkManager.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
PrivateVolume.cpp resolve merge conflicts of b7d5a47cec to master. 2015-12-04 17:55:33 -08:00
PrivateVolume.h Add f2fs support for private volumes. 2015-06-08 20:21:25 -07:00
Process.cpp Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
Process.h Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
PublicVolume.cpp Hide external storage from apps if it's not set as adoptable 2015-12-15 15:20:41 +08:00
PublicVolume.h Let's reinvent storage, yet again! 2015-06-25 22:40:08 -07:00
ResponseCode.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
ResponseCode.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
ScryptParameters.cpp Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
ScryptParameters.h Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
secdiscard.cpp Use android-base logging not cutils in secdiscard 2016-01-12 10:03:05 +00:00
secontext.cpp cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
secontext.h cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
sehandle.h Set SELinux contexts on device nodes created by vold. 2014-09-30 15:35:28 -04:00
TrimTask.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
TrimTask.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
Utils.cpp Support emulator's virtio-blk based SD card 2016-03-08 12:19:41 -08:00
Utils.h Support emulator's virtio-blk based SD card 2016-03-08 12:19:41 -08:00
vdc.cpp Allow callers to prepare CE/DE user storage. 2016-02-05 13:03:52 -07:00
vdc.rc Don't show UI on default encryption 2015-10-21 09:28:39 -07:00
vold.rc update bundled rc files to their contents from rootdir/init.rc 2015-08-21 22:10:23 +00:00
VoldCommand.cpp system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldCommand.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldUtil.c Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VoldUtil.h Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VolumeBase.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
VolumeBase.h Add method to forget private partition keys. 2015-06-22 14:04:54 -07:00
VolumeManager.cpp Support emulator's virtio-blk based SD card 2016-03-08 12:19:41 -08:00
VolumeManager.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00