Add ExternalStorageServiceImpl to android.process.media
The impl uses the API added in
I9b132ce7e5e5985ef3307c75ce7db50affc65a8e
At the moment, this impl only supports handling filesystem IO using
FUSE and runs a FUSE daemon in the media process, FuseDaemon.
The service will handle filesytem IO from an upper file system mounted
for apps on /sdcard. It will receive these requests on /dev/fuse and
respond using the data in the MediaProvider database that has already
indexed the appropriate lower filesystem e.g /data/media/0
Bug: 135341433
Test: m
Change-Id: I722e79cc9eff31944ba37942411b3d8b68d195f5
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 52ade45..dad43e6 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -84,6 +84,13 @@
android:name=".MediaService"
android:exported="false" />
+ <service android:name=".fuse.ExternalStorageServiceImpl"
+ android:permission="android.permission.BIND_EXTERNAL_STORAGE_SERVICE">
+ <intent-filter>
+ <action android:name="android.service.storage.ExternalStorageService" />
+ </intent-filter>
+ </service>
+
<activity
android:name=".PermissionActivity"
android:theme="@style/PickerDialogTheme"