aboutsummaryrefslogtreecommitdiffstats
path: root/fuse_sdcard_provider.h
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2014-07-10 10:50:39 -0700
committerDoug Zongker <dougz@google.com>2014-07-10 10:58:35 -0700
commit945fc68c62692467ddb8b7d714bcf0bf01c783c2 (patch)
tree8fcb9d928f544a13a8085c47e13e6742a3675583 /fuse_sdcard_provider.h
parent18a78e0a162c35756628610307f41179816d3333 (diff)
downloadbootable_recovery-945fc68c62692467ddb8b7d714bcf0bf01c783c2.zip
bootable_recovery-945fc68c62692467ddb8b7d714bcf0bf01c783c2.tar.gz
bootable_recovery-945fc68c62692467ddb8b7d714bcf0bf01c783c2.tar.bz2
do sdcard sideloading through the fuse filesystem
Make a fuse filesystem that sits on top of the selected package file on the sdcard, so we can verify that the file contents don't change while being read and avoid copying the file to /tmp (that is, RAM) before verifying and installing it. Change-Id: Ifd982aa68bfe469eda5f839042648654bf7386a1
Diffstat (limited to 'fuse_sdcard_provider.h')
-rw-r--r--fuse_sdcard_provider.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/fuse_sdcard_provider.h b/fuse_sdcard_provider.h
new file mode 100644
index 0000000..dc2982c
--- /dev/null
+++ b/fuse_sdcard_provider.h
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2014 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __FUSE_SDCARD_PROVIDER_H
+#define __FUSE_SDCARD_PROVIDER_H
+
+void* start_sdcard_fuse(const char* path);
+void finish_sdcard_fuse(void* token);
+
+#endif