diff --git a/Ext4Crypt.cpp b/Ext4Crypt.cpp index 1b71365..67b7e90 100644 --- a/Ext4Crypt.cpp +++ b/Ext4Crypt.cpp @@ -835,7 +835,3 @@ bool e4crypt_destroy_volume_keys(const std::string& volume_uuid) { res &= destroy_volume_keys("/data/misc_de", volume_uuid); return res; } - -bool e4crypt_secdiscard(const std::string& path) { - return android::vold::runSecdiscardSingle(path); -} diff --git a/Ext4Crypt.h b/Ext4Crypt.h index 4226f15..a43a68a 100644 --- a/Ext4Crypt.h +++ b/Ext4Crypt.h @@ -36,5 +36,3 @@ bool e4crypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_ bool e4crypt_destroy_user_storage(const std::string& volume_uuid, userid_t user_id, int flags); bool e4crypt_destroy_volume_keys(const std::string& volume_uuid); - -bool e4crypt_secdiscard(const std::string& path); diff --git a/VoldNativeService.cpp b/VoldNativeService.cpp index f4961ce..81523c6 100644 --- a/VoldNativeService.cpp +++ b/VoldNativeService.cpp @@ -759,13 +759,5 @@ binder::Status VoldNativeService::destroyUserStorage(const std::unique_ptr& uuid, int32_t userId, int32_t flags); - - binder::Status secdiscard(const std::string& path); }; } // namespace vold diff --git a/binder/android/os/IVold.aidl b/binder/android/os/IVold.aidl index a664dfa..8300a8e 100644 --- a/binder/android/os/IVold.aidl +++ b/binder/android/os/IVold.aidl @@ -93,8 +93,6 @@ interface IVold { void prepareUserStorage(@nullable @utf8InCpp String uuid, int userId, int userSerial, int storageFlags); void destroyUserStorage(@nullable @utf8InCpp String uuid, int userId, int storageFlags); - void secdiscard(@utf8InCpp String path); - const int ENCRYPTION_FLAG_NO_UI = 4; const int ENCRYPTION_STATE_NONE = 1;