OSDN Git Service

Move enabling sdcardfs behind a property
authorDaniel Rosenberg <drosen@google.com>
Tue, 12 May 2020 05:58:42 +0000 (22:58 -0700)
committerDaniel Rosenberg <drosen@google.com>
Wed, 20 May 2020 05:11:49 +0000 (22:11 -0700)
commitf36bdddc7e5545d361ea8fe16cbac315794874e3
tree88081dd2f606571b1f4eb53c7b3592cc79ec5876
parent0d1fcb90d63755485d86a85c1ad8ab44d9591019
Move enabling sdcardfs behind a property

This allows devices that have sdcardfs enabled in the kernel to not use
it. When external_storage.sdcardfs.enabled=0, sdcardfs will not be
mounted. This is treated as default true to not affect upgrading
devices. It does not use the old ro.sys.sdcardfs as that has been
repurposed over time and no longer can be relied on to turn off
sdcardfs. This is included within emulated_storage.mk

Bug: 155222498
Test: mount|grep "type sdcardfs" should find nothing after boot complete
      if external_storage.sdcardfs.enabled=0
Change-Id: I23d75fb1225aeabbcb1a035ad62fd042b6b3c7b5
Utils.cpp
Utils.h
VolumeManager.cpp
model/EmulatedVolume.cpp
model/PublicVolume.cpp