Snap for 11469542 from b198cf95407db985217f4d1b19bdf2df212cb13a to 24D1-release
Change-Id: I10823cb5c5cb791c339773a548acbde337ada383
diff --git a/AppFuseUtil.cpp b/AppFuseUtil.cpp
index 711e70b..a3beaec 100644
--- a/AppFuseUtil.cpp
+++ b/AppFuseUtil.cpp
@@ -50,14 +50,15 @@
static android::status_t Mount(int device_fd, const std::string& path) {
const auto opts = StringPrintf(
- "fd=%i,"
- "rootmode=40000,"
- "default_permissions,"
- "allow_other,"
- "user_id=0,group_id=0,"
- "context=\"u:object_r:app_fuse_file:s0\","
- "fscontext=u:object_r:app_fusefs:s0",
- device_fd);
+ "fd=%i,"
+ "rootmode=40000,"
+ "default_permissions,"
+ "allow_other,"
+ "max_read=65536,"
+ "user_id=0,group_id=0,"
+ "context=\"u:object_r:app_fuse_file:s0\","
+ "fscontext=u:object_r:app_fusefs:s0",
+ device_fd);
const int result =
TEMP_FAILURE_RETRY(mount("/dev/fuse", path.c_str(), "fuse",