platform_system_vold/model
Martijn Coenen 62a4b279ab Setup Android/, Android/data and Android/obb dirs correctly.
Normally sdcardfs takes care of setting up these directories on-demand,
for example when an app requests its private data directory to be
created. On devices without sdcardfs however, we ourselves need to make
sure to setup the UID/GID of these directories correctly.

Introduce a new PrepareAndroidDirs() function which sets the dirs up
correctly. On devices without sdcardfs, that means:

Path              UID         GID         mode
/Android          media_rw    media_rw     771
/Android/data     media_rw    ext_data_rw  771
/Android/obb      media_rw    ext_obb_rw   771

Bug: 146419093
Test: wipe Android/, reboot, with and without sdcardfs, verify
      contents

Change-Id: I3a879089422c7fc449b6a3e6f1c4b386b86687a4
2020-02-04 13:02:49 +01:00
..
Disk.cpp Automatically use correct lower paths for setupAppDir. 2020-01-27 14:00:29 +01:00
Disk.h Automatically use correct lower paths for setupAppDir. 2020-01-27 14:00:29 +01:00
EmulatedVolume.cpp Setup Android/, Android/data and Android/obb dirs correctly. 2020-02-04 13:02:49 +01:00
EmulatedVolume.h Setup Android/, Android/data and Android/obb dirs correctly. 2020-02-04 13:02:49 +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 Fix multi-user and multi-storage with FUSE 2019-11-11 20:24:49 +00:00
PrivateVolume.h Fix multi-user and multi-storage with FUSE 2019-11-11 20:24:49 +00: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 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 Setup Android/, Android/data and Android/obb dirs correctly. 2020-02-04 13:02:49 +01:00
VolumeBase.h Setup Android/, Android/data and Android/obb dirs correctly. 2020-02-04 13:02:49 +01:00