Remove secdiscard IPC call
No longer used by the framework, hence removing. Bug: 62140539 Test: builds Change-Id: I17b9818ea6121d84223a502949186cf679a83a90
This commit is contained in:
parent
de787a847a
commit
eb850f93ab
5 changed files with 0 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -759,13 +759,5 @@ binder::Status VoldNativeService::destroyUserStorage(const std::unique_ptr<std::
|
|||
return translateBool(e4crypt_destroy_user_storage(uuid_, userId, flags));
|
||||
}
|
||||
|
||||
binder::Status VoldNativeService::secdiscard(const std::string& path) {
|
||||
ENFORCE_UID(AID_SYSTEM);
|
||||
CHECK_ARGUMENT_PATH(path);
|
||||
ACQUIRE_CRYPT_LOCK;
|
||||
|
||||
return translateBool(e4crypt_secdiscard(path));
|
||||
}
|
||||
|
||||
} // namespace vold
|
||||
} // namespace android
|
||||
|
|
|
@ -113,8 +113,6 @@ public:
|
|||
int32_t userId, int32_t userSerial, int32_t flags);
|
||||
binder::Status destroyUserStorage(const std::unique_ptr<std::string>& uuid,
|
||||
int32_t userId, int32_t flags);
|
||||
|
||||
binder::Status secdiscard(const std::string& path);
|
||||
};
|
||||
|
||||
} // namespace vold
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue