No longer used by the framework, hence removing.
Bug:
62140539
Test: builds
Change-Id: I17b9818ea6121d84223a502949186cf679a83a90
res &= destroy_volume_keys("/data/misc_de", volume_uuid);
return res;
}
-
-bool e4crypt_secdiscard(const std::string& path) {
- return android::vold::runSecdiscardSingle(path);
-}
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);
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
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
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;