Pass both partition GUID and filesystem UUID.
FDE keys are indexed using the partition GUID, while FBE keys will be
indexed using the filesystem UUID, so pass both of those identifiers
along when forgetting a volume.
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 25861755
Change-Id: I6e239d5ba67a01c9a848d705f6167da00f975924
diff --git a/VoldNativeService.h b/VoldNativeService.h
index dd2b854..8368bdc 100644
--- a/VoldNativeService.h
+++ b/VoldNativeService.h
@@ -44,7 +44,7 @@
binder::Status onUserStopped(int32_t userId);
binder::Status partition(const std::string& diskId, int32_t partitionType, int32_t ratio);
- binder::Status forgetPartition(const std::string& partGuid);
+ binder::Status forgetPartition(const std::string& partGuid, const std::string& fsUuid);
binder::Status mount(const std::string& volId, int32_t mountFlags, int32_t mountUserId);
binder::Status unmount(const std::string& volId);