From 87a92e1bc571bf54e7fef1bf2dfdd4d95ff20d44 Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Fri, 20 Nov 2020 13:15:56 -0800 Subject: incfs: Create incomplete folder incfs 2 also creates a .incomplete folder, so we need to set correct permissions on that folder too Bug: 169084168 Test: With updated kernel, incfs_test works and adb install --incremental works Change-Id: Id7b9d017973777e37628664530dfed18c55c269f --- services/incremental/IncrementalService.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/incremental/IncrementalService.cpp') diff --git a/services/incremental/IncrementalService.cpp b/services/incremental/IncrementalService.cpp index 599ac9344e73..99795576696d 100644 --- a/services/incremental/IncrementalService.cpp +++ b/services/incremental/IncrementalService.cpp @@ -481,6 +481,9 @@ StorageId IncrementalService::createStorage(std::string_view mountPoint, if (!mkdirOrLog(path::join(backing, ".index"), 0777)) { return kInvalidStorageId; } + if (!mkdirOrLog(path::join(backing, ".incomplete"), 0777)) { + return kInvalidStorageId; + } auto status = mVold->mountIncFs(backing, mountTarget, 0, &controlParcel); if (!status.isOk()) { LOG(ERROR) << "Vold::mountIncFs() failed: " << status.toString8(); -- cgit v1.2.3-59-g8ed1b