BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(libsmack)
BuildRequires: pkgconfig(blkid)
+BuildRequires: pkgconfig(capi-system-device)
Requires: cryptsetup
%global key_storage_plugin_dir %{_libdir}/ode-key-storage-plugin/
#include <vconf.h>
#include <tzplatform_config.h>
+#include <device/power.h>
#include <klay/process.h>
#include <klay/file-user.h>
#include <klay/filesystem.h>
auto encryptWorker = [masterKey, options, this]() {
try {
+ if (::device_power_request_lock(POWER_LOCK_DISPLAY, 0) != 0)
+ ERROR(SINK, "Failed to request to lock display");
+
showProgressUI("encrypt");
::sleep(1);
auto decryptWorker = [masterKey, this]() {
try {
+ if (::device_power_request_lock(POWER_LOCK_DISPLAY, 0) != 0)
+ ERROR(SINK, "Failed to request to lock display");
+
showProgressUI("decrypt");
::sleep(1);