capi-system-runtime-info
capi-system-device
capi-system-system-settings
+ aul
)
INCLUDE_DIRECTORIES(${EFL_APP_INCLUDE_DIRS} ${ode_pkgs_INCLUDE_DIRS} ${ODE_LIB})
INSTALL(FILES service/ode-progress-ui@.service DESTINATION ${SYSTEMD_UNIT_DIR})
CONFIGURE_FILE(service/ode-external-lock.service.in service/ode-external-lock.service)
-INSTALL(FILES service/ode-external-lock.service DESTINATION ${SYSTEMD_UNIT_DIR})
+INSTALL(FILES service/ode-external-lock.service service/ode-external-lock.path DESTINATION ${SYSTEMD_UNIT_DIR_USER})
ADD_SUBDIRECTORY(po)
--- /dev/null
+[Unit]
+Description=Path activator used to launch encrypted sdcard UI
+
+[Path]
+PathModified=/run/ode-booting-with-encrypted-sdcard
+PathExists=/run/ode-booting-with-encrypted-sdcard
[Unit]
Description=ODE external storage lock interface
+DefaultDependencies=no
[Service]
-User=application
-Group=application
-SmackProcessLabel=System
EnvironmentFile=/run/tizen-system-env
EnvironmentFile=/run/xdg-root-env
ExecStart=/usr/bin/ode lock
*/
#include "ode.h"
+#include <unistd.h>
+
+#include <aul.h>
+
ODELaunchPad::ODELaunchPad()
: Application("org.tizen.ode"), viewtype(""), mode(0), interface(nullptr)
{
void ODEStandAlone::createPasswordInterface()
{
+ char *homescreenApp = ::vconf_get_str(VCONFKEY_SETAPPL_SELECTED_PACKAGE_NAME);
+ if (homescreenApp)
+ {
+ int status;
+ for(;;) {
+ status = ::aul_app_get_status(homescreenApp);
+ if (status == STATUS_VISIBLE || status == STATUS_FOCUS)
+ break;
+ sleep(1);
+ }
+
+ free(homescreenApp);
+ }
+
interface.reset(new PasswordSDCard{});
if (interface)
-DCMAKE_BUILD_TYPE=%{build_type} \
-DBIN_DIR=%{TZ_SYS_BIN} \
-DSYSTEMD_UNIT_DIR=%{_unitdir} \
+ -DSYSTEMD_UNIT_DIR_USER=%{_unitdir_user} \
-DAPP_INSTALL_PREFIX="%{TZ_SYS_RO_APP}" \
-DAPP_SHARE_PACKAGES_DIR="%{TZ_SYS_RO_PACKAGES}"
%find_lang secure-erase
%find_lang ode
+
+mkdir -p %{buildroot}/%{_unitdir_user}/default.target.wants
+ln -s ../ode-external-lock.path %{buildroot}/%{_unitdir_user}/default.target.wants/ode-external-lock.path
+
%clean
rm -rf %{buildroot}
%{odeapp_home}/res/*
%{TZ_SYS_RO_PACKAGES}/org.tizen.ode.xml
%{_unitdir}/ode-progress-ui@.service
-%{_unitdir}/ode-external-lock.service
+%{_unitdir_user}/ode-external-lock.service
+%{_unitdir_user}/ode-external-lock.path
+%{_unitdir_user}/default.target.wants/ode-external-lock.path
## Secure Erase Application Package ################################
%package -n org.tizen.secure-erase