# Set required packages
INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED dlog ecore x11 libprivilege-control app-checker rua glib-2.0)
+pkg_check_modules(pkgs REQUIRED dlog ecore x11 libprivilege-control app-checker rua glib-2.0 ecore-x ecore-input evas)
pkg_check_modules(libpkgs REQUIRED dlog bundle dbus-glib-1 ail xdgmime app-checker)
FIND_LIBRARY(LIB_DL dl)
# Compiler flags
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/legacy)
+INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/feature)
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -Wl,-zdefs" )
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fpic")
ENDIF("${ARCH}" STREQUAL "arm")
ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
-ADD_DEFINITIONS("-DRW_DATA_PREFIX=\"/opt/share\"")
+ADD_DEFINITIONS("-DSHARE_PREFIX=\"/usr/share/aul\"")
# Linker flags
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
src/mida.c
src/miregex.c
src/app_signal.c
+ src/key.c
)
target_link_libraries(aul aul_mods ${libpkgs_LDFLAGS})
SET_TARGET_PROPERTIES(aul PROPERTIES SOVERSION ${VERSION_MAJOR})
INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/aul_mime.sh DESTINATION bin)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/aul.pc DESTINATION lib/pkgconfig)
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list.txt DESTINATION /opt/share )
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/mida_db.sql DESTINATION /opt/share )
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex DESTINATION /opt/share )
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/service DESTINATION /opt/share )
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/legacy/preload_list.txt DESTINATION /usr/share/aul )
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/feature/preexec_list.txt DESTINATION /usr/share/aul )
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/mida_db.sql DESTINATION /usr/share/aul )
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/miregex DESTINATION /usr/share/aul )
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data/service DESTINATION /usr/share/aul )
# test
add_subdirectory(test)
+++ /dev/null
-#!/bin/sh
-
-export TET_INSTALL_PATH=/scratchbox/tetware # local tetware path
-export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-export PATH=$TET_TARGET_PATH/bin:$PATH
-export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
-export TET_ROOT=$TET_TARGET_PATH
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/build-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -c -p ./
-tcc -b -j $JOURNAL_RESULT -p ./
-grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
+++ /dev/null
-#!/bin/sh
-export TET_INSTALL_PATH=/mnt/nfs/tetware
-export TET_TARGET_PATH=$TET_INSTALL_PATH/tetware-target
-export PATH=$TET_TARGET_PATH/bin:$PATH
-export LD_LIBRARY_PATH=$TET_TARGET_PATH/lib/tet3:$LD_LIBRARY_PATH
-
-export TET_ROOT=$TET_TARGET_PATH
-
-export TET_SUITE_ROOT=`pwd`
-FILE_NAME_EXTENSION=`date +%s`
-
-RESULT_DIR=results
-HTML_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.html
-JOURNAL_RESULT=$RESULT_DIR/exec-tar-result-$FILE_NAME_EXTENSION.journal
-
-mkdir -p $RESULT_DIR
-
-tcc -e -j $JOURNAL_RESULT -p ./
-grw -c 3 -f chtml -o $HTML_RESULT $JOURNAL_RESULT
+++ /dev/null
-# TET reserved codes
-0 "PASS"
-1 "FAIL"
-2 "UNRESOLVED"
-3 "NOTINUSE"
-4 "UNSUPPORTED"
-5 "UNTESTED"
-6 "UNINITIATED"
-7 "NORESULT"
-
-# Test suite additional codes
-33 "INSPECT"
+++ /dev/null
-all
- ^TEST
-##### Scenarios for TEST #####
-
-# Test scenario
-TEST
- :include:/unit/tslist
+++ /dev/null
-TET_OUTPUT_CAPTURE=False
-TET_BUILD_TOOL=make
-TET_PASS_TC_NAME=True
+++ /dev/null
-TET_OUTPUT_CAPTURE=False
-TET_CLEAN_TOOL=make clean
+++ /dev/null
-TET_OUTPUT_CAPTURE=False
+++ /dev/null
-CC ?= gcc
-
-TARGETS = utc_ApplicationFW_aul_launch_init_func \
- utc_ApplicationFW_aul_launch_argv_handler_func \
- utc_ApplicationFW_aul_launch_app_func \
- utc_ApplicationFW_aul_open_app_func \
- utc_ApplicationFW_aul_resume_pid_func \
- utc_ApplicationFW_aul_terminate_pid_func \
- utc_ApplicationFW_aul_app_is_running_func \
- utc_ApplicationFW_aul_app_get_running_app_info_func \
- utc_ApplicationFW_aul_app_get_pkgname_bypid_func \
- utc_ApplicationFW_aul_open_file_func \
- utc_ApplicationFW_aul_open_file_with_mimetype_func \
- utc_ApplicationFW_aul_open_content_func \
- utc_ApplicationFW_aul_get_defapp_from_mime_func \
- utc_ApplicationFW_aul_set_defapp_with_mime_func \
- utc_ApplicationFW_aul_get_mime_from_file_func \
- utc_ApplicationFW_aul_get_mime_from_content_func
-
-PKGS = aul ecore
-
-LDFLAGS = `pkg-config --libs $(PKGS)`
-LDFLAGS += $(TET_ROOT)/lib/tet3/tcm_s.o
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -ltcm_s
-LDFLAGS += -L$(TET_ROOT)/lib/tet3 -lapi_s
-
-CFLAGS = -I. `pkg-config --cflags $(PKGS)`
-CFLAGS += -I$(TET_ROOT)/inc/tet3
-CFLAGS += -Wall
-
-all: $(TARGETS)
-
-$(TARGETS): %: %.c
- $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
-
-clean:
- rm -f $(TARGETS)
+++ /dev/null
-#!/bin/sh
-
-TMPSTR=$0
-SCRIPT=${TMPSTR##*/}
-
-if [ $# -lt 2 ]; then
- echo "Usage) $SCRIPT module_name api_name"
- exit 1
-fi
-
-MODULE=$1
-API=$2
-TEMPLATE=utc_MODULE_API_func.c.in
-TESTCASE=utc_${MODULE}_${API}_func
-
-sed -e '
- s^@API@^'"$API"'^g
- s^@MODULE@^'"$MODULE"'^g
- ' $TEMPLATE > $TESTCASE.c
-
-if [ ! -e "$TESTCASE.c" ]; then
- echo "Failed"
- exit 1
-fi
-echo "Testcase file is $TESTCASE.c"
-echo "Done"
-echo "please put \"$TESTCASE\" as Target in Makefile"
-echo "please put \"/unit/$TESTCASE\" in tslist"
+++ /dev/null
-/unit/utc_ApplicationFW_aul_launch_init_func
-/unit/utc_ApplicationFW_aul_launch_argv_handler_func
-/unit/utc_ApplicationFW_aul_launch_app_func
-/unit/utc_ApplicationFW_aul_open_app_func
-/unit/utc_ApplicationFW_aul_resume_pid_func
-/unit/utc_ApplicationFW_aul_terminate_pid_func
-/unit/utc_ApplicationFW_aul_app_is_running_func
-/unit/utc_ApplicationFW_aul_app_get_running_app_info_func
-/unit/utc_ApplicationFW_aul_app_get_pkgname_bypid_func
-/unit/utc_ApplicationFW_aul_open_file_func
-/unit/utc_ApplicationFW_aul_open_file_with_mimetype_func
-/unit/utc_ApplicationFW_aul_open_content_func
-/unit/utc_ApplicationFW_aul_get_defapp_from_mime_func
-/unit/utc_ApplicationFW_aul_set_defapp_with_mime_func
-/unit/utc_ApplicationFW_aul_get_mime_from_file_func
-/unit/utc_ApplicationFW_aul_get_mime_from_content_func
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_app_get_pkgname_bypid_func_01(void);
-static void utc_ApplicationFW_aul_app_get_pkgname_bypid_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_app_get_pkgname_bypid_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_app_get_pkgname_bypid_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_app_get_pkgname_bypid()
- */
-static void utc_ApplicationFW_aul_app_get_pkgname_bypid_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- pid = aul_launch_app(EXIST_PKGNAME,NULL);
- sleep(1);
- r = aul_app_get_pkgname_bypid(pid,buf,256);
-
- if (r<0) {
- tet_infoline("aul_app_get_pkgname_bypid() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(pid);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_app_get_pkgname_bypid()
- */
-static void utc_ApplicationFW_aul_app_get_pkgname_bypid_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_app_get_pkgname_bypid(-1,buf,256);
-
- if (r>=0) {
- tet_infoline("aul_app_get_pkgname_bypid() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "aul.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_app_get_running_app_info_func_01(void);
-static void utc_ApplicationFW_aul_app_get_running_app_info_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_app_get_running_app_info_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_app_get_running_app_info_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-static int iterfunc(const aul_app_info* info, void* data)
-{
- return 0;
-}
-
-/**
- * @brief Positive test case of aul_app_get_running_app_info()
- */
-static void utc_ApplicationFW_aul_app_get_running_app_info_func_01(void)
-{
- int r = 0;
-
- r = aul_app_get_running_app_info(iterfunc, NULL);
-
- if (r<0) {
- tet_infoline("aul_app_get_running_app_info() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init aul_app_get_running_app_info()
- */
-static void utc_ApplicationFW_aul_app_get_running_app_info_func_02(void)
-{
- int r = 0;
-
- r = aul_app_get_running_app_info(NULL,NULL);
-
- if (r>=0) {
- tet_infoline("aul_app_get_running_app_info() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_app_is_running_func_01(void);
-static void utc_ApplicationFW_aul_app_is_running_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_app_is_running_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_app_is_running_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_app_is_running()
- */
-static void utc_ApplicationFW_aul_app_is_running_func_01(void)
-{
- int r = 0;
-
- pid = aul_launch_app(EXIST_PKGNAME,NULL);
- sleep(1);
- r = aul_app_is_running(EXIST_PKGNAME);
-
- if (r<1) {
- tet_infoline("aul_app_is_running() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- aul_terminate_pid(pid);
-
- tet_result(TET_PASS);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_app_is_running()
- */
-static void utc_ApplicationFW_aul_app_is_running_func_02(void)
-{
- int r = 0;
-
- r = aul_app_is_running(NO_EXIST_PKGNAME);
-
- if (r==1) {
- tet_infoline("aul_app_is_running() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_get_defapp_from_mime_func_01(void);
-static void utc_ApplicationFW_aul_get_defapp_from_mime_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_get_defapp_from_mime_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_get_defapp_from_mime_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_get_defapp_from_mime()
- */
-static void utc_ApplicationFW_aul_get_defapp_from_mime_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_defapp_from_mime(MIMETYPE,buf,sizeof(buf));
-
- if (r<0) {
- tet_infoline("aul_get_defapp_from_mime() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init aul_get_defapp_from_mime()
- */
-static void utc_ApplicationFW_aul_get_defapp_from_mime_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_defapp_from_mime(NULL,buf,sizeof(buf));
-
- if (r>=0) {
- tet_infoline("aul_get_defapp_from_mime() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_get_mime_from_content_func_01(void);
-static void utc_ApplicationFW_aul_get_mime_from_content_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_get_mime_from_content_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_get_mime_from_content_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_get_mime_from_content()
- */
-static void utc_ApplicationFW_aul_get_mime_from_content_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_mime_from_content(CONTENT,buf,sizeof(buf));
-
- if (r<0) {
- tet_infoline("aul_get_mime_from_content() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init aul_get_mime_from_content()
- */
-static void utc_ApplicationFW_aul_get_mime_from_content_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_mime_from_content(NULL,buf,sizeof(buf));
-
- if (r>=0) {
- tet_infoline("aul_get_mime_from_content() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_get_mime_from_file_func_01(void);
-static void utc_ApplicationFW_aul_get_mime_from_file_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_get_mime_from_file_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_get_mime_from_file_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_get_mime_from_file()
- */
-static void utc_ApplicationFW_aul_get_mime_from_file_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_mime_from_file(EXIST_FILENAME,buf,sizeof(buf));
-
- if (r<0) {
- tet_infoline("aul_get_mime_from_file() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init aul_get_mime_from_file()
- */
-static void utc_ApplicationFW_aul_get_mime_from_file_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_get_mime_from_file(NOEXIST_FILENAME,buf,sizeof(buf));
-
- if (r>=0) {
- tet_infoline("aul_get_mime_from_file() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_launch_app_func_01(void);
-static void utc_ApplicationFW_aul_launch_app_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_launch_app_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_launch_app_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_launch_app()
- */
-static void utc_ApplicationFW_aul_launch_app_func_01(void)
-{
- int r = 0;
-
- r = aul_launch_app(EXIST_PKGNAME,NULL);
-
- if (r<0) {
- tet_infoline("aul_launch_app() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(r);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_launch_app()
- */
-static void utc_ApplicationFW_aul_launch_app_func_02(void)
-{
- int r = 0;
-
- r = aul_launch_app(NO_EXIST_PKGNAME,NULL);
-
- if (r>=0) {
- tet_infoline("aul_launch_app() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include <Ecore.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_launch_argv_handler_func_01(void);
-static void utc_ApplicationFW_aul_launch_argv_handler_func_02(void);
-
-enum {
- NEGATIVE_TC_IDX = 0x01,
- POSITIVE_TC_IDX = 0x02,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_launch_argv_handler_func_02, NEGATIVE_TC_IDX },
- { utc_ApplicationFW_aul_launch_argv_handler_func_01, POSITIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
- sleep(3);
-}
-
-/**
- * @brief Positive test case of aul_launch_argv_handler()
- */
-static void utc_ApplicationFW_aul_launch_argv_handler_func_01(void)
-{
- int r = 0;
-
- ecore_init();
- aul_launch_init(NULL,NULL);
- r = aul_launch_argv_handler(0, NULL);
-
- if (r<0) {
- tet_infoline("aul_launch_argv_handler() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- ecore_shutdown();
-}
-
-/**
- * @brief Negative test case of ug_init aul_launch_argv_handler()
- */
-static void utc_ApplicationFW_aul_launch_argv_handler_func_02(void)
-{
- int r = 0;
-
- r = aul_launch_argv_handler(0,NULL);
-
- if (r>=0) {
- tet_infoline("aul_launch_argv_handler() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include <Ecore.h>
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_launch_init_func_01(void);
-static void utc_ApplicationFW_aul_launch_init_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_launch_init_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_launch_init_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
- sleep(3);
-}
-
-/**
- * @brief Positive test case of aul_launch_init()
- */
-static void utc_ApplicationFW_aul_launch_init_func_01(void)
-{
- int r = 0;
-
- ecore_init();
- r = aul_launch_init(NULL,NULL);
-
- if (r<0) {
- tet_infoline("aul_launch_init() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- ecore_shutdown();
-}
-
-/**
- * @brief Negative test case of ug_init aul_launch_init()
- */
-static void utc_ApplicationFW_aul_launch_init_func_02(void)
-{
- int r = 0;
-
- r = aul_launch_init(NULL,NULL);
-
- if (r>=0) {
- tet_infoline("aul_launch_init() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_open_app_func_01(void);
-static void utc_ApplicationFW_aul_open_app_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_open_app_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_open_app_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_open_app()
- */
-static void utc_ApplicationFW_aul_open_app_func_01(void)
-{
- int r = 0;
-
- pid = aul_launch_app(EXIST_PKGNAME,NULL);
- sleep(1);
- r = aul_open_app(EXIST_PKGNAME);
-
- if (r<0) {
- tet_infoline("aul_open_app() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(pid);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_open_app()
- */
-static void utc_ApplicationFW_aul_open_app_func_02(void)
-{
- int r = 0;
-
- r = aul_open_app(NO_EXIST_PKGNAME);
-
- if (r>=0) {
- tet_infoline("aul_open_app() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_open_content_func_01(void);
-static void utc_ApplicationFW_aul_open_content_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_open_content_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_open_content_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_open_content()
- */
-static void utc_ApplicationFW_aul_open_content_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_content(CONTENT);
-
- if (r<0) {
- tet_infoline("aul_open_content() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(r);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_open_content()
- */
-static void utc_ApplicationFW_aul_open_content_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_content(NULL);
-
- if (r>=0) {
- tet_infoline("aul_open_content() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_open_file_func_01(void);
-static void utc_ApplicationFW_aul_open_file_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_open_file_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_open_file_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_open_file()
- */
-static void utc_ApplicationFW_aul_open_file_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_file(EXIST_FILENAME);
-
- if (r<0) {
- tet_infoline("aul_open_file() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(r);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_open_file()
- */
-static void utc_ApplicationFW_aul_open_file_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_file(NOEXIST_FILENAME);
-
- if (r>=0) {
- tet_infoline("aul_open_file() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_open_file_with_mimetype_func_01(void);
-static void utc_ApplicationFW_aul_open_file_with_mimetype_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_open_file_with_mimetype_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_open_file_with_mimetype_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_open_file_with_mimetype()
- */
-static void utc_ApplicationFW_aul_open_file_with_mimetype_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_file_with_mimetype(EXIST_FILENAME, MIMETYPE);
-
- if (r<0) {
- tet_infoline("aul_open_file_with_mimetype() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(r);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_open_file_with_mimetype()
- */
-static void utc_ApplicationFW_aul_open_file_with_mimetype_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_open_file_with_mimetype(EXIST_FILENAME, NULL);
-
- if (r>=0) {
- tet_infoline("aul_open_file_with_mimetype() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_resume_pid_func_01(void);
-static void utc_ApplicationFW_aul_resume_pid_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_resume_pid_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_resume_pid_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_resume_pid()
- */
-static void utc_ApplicationFW_aul_resume_pid_func_01(void)
-{
- int r = 0;
-
- pid = aul_launch_app(EXIST_PKGNAME,NULL);
- sleep(1);
- r = aul_resume_pid(pid);
-
- if (r<0) {
- tet_infoline("aul_resume_pid() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
- aul_terminate_pid(pid);
- sleep(2);
-}
-
-/**
- * @brief Negative test case of ug_init aul_resume_pid()
- */
-static void utc_ApplicationFW_aul_resume_pid_func_02(void)
-{
- int r = 0;
-
- r = aul_resume_pid(-1);
-
- if (r>=0) {
- tet_infoline("aul_resume_pid() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_set_defapp_with_mime_func_01(void);
-static void utc_ApplicationFW_aul_set_defapp_with_mime_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_set_defapp_with_mime_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_set_defapp_with_mime_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_set_defapp_with_mime()
- */
-static void utc_ApplicationFW_aul_set_defapp_with_mime_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- aul_get_defapp_from_mime(MIMETYPE,buf,sizeof(buf));
- r = aul_set_defapp_with_mime(MIMETYPE,EXIST_PKGNAME);
-
- if (r<0) {
- tet_infoline("aul_set_defapp_with_mime() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- aul_set_defapp_with_mime(MIMETYPE,buf);
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of aul_set_defapp_with_mime()
- */
-static void utc_ApplicationFW_aul_set_defapp_with_mime_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = aul_set_defapp_with_mime(MIMETYPE,NULL);
-
- if (r>=0) {
- tet_infoline("aul_set_defapp_with_mime() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_ApplicationFW_aul_terminate_pid_func_01(void);
-static void utc_ApplicationFW_aul_terminate_pid_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_ApplicationFW_aul_terminate_pid_func_01, POSITIVE_TC_IDX },
- { utc_ApplicationFW_aul_terminate_pid_func_02, NEGATIVE_TC_IDX },
- { NULL, 0 }
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of aul_terminate_pid()
- */
-static void utc_ApplicationFW_aul_terminate_pid_func_01(void)
-{
- int r = 0;
-
- pid = aul_launch_app(EXIST_PKGNAME,NULL);
- sleep(1);
- r = aul_terminate_pid(pid);
-
- if (r<0) {
- tet_infoline("aul_terminate_pid() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init aul_terminate_pid()
- */
-static void utc_ApplicationFW_aul_terminate_pid_func_02(void)
-{
- int r = 0;
-
- r = aul_terminate_pid(-1);
-
- if (r>=0) {
- tet_infoline("aul_terminate_pid() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+++ /dev/null
-#include <tet_api.h>
-#include "pkgname.h"
-
-static void startup(void);
-static void cleanup(void);
-
-void (*tet_startup)(void) = startup;
-void (*tet_cleanup)(void) = cleanup;
-
-static void utc_@MODULE@_@API@_func_01(void);
-static void utc_@MODULE@_@API@_func_02(void);
-
-enum {
- POSITIVE_TC_IDX = 0x01,
- NEGATIVE_TC_IDX,
-};
-
-struct tet_testlist tet_testlist[] = {
- { utc_@MODULE@_@API@_func_01, POSITIVE_TC_IDX },
- { utc_@MODULE@_@API@_func_02, NEGATIVE_TC_IDX },
-};
-
-static int pid;
-
-static void startup(void)
-{
-}
-
-static void cleanup(void)
-{
-}
-
-/**
- * @brief Positive test case of @API@()
- */
-static void utc_@MODULE@_@API@_func_01(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = @API@(...);
-
- if (r<0) {
- tet_infoline("@API@() failed in positive test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
-
-/**
- * @brief Negative test case of ug_init @API@()
- */
-static void utc_@MODULE@_@API@_func_02(void)
-{
- int r = 0;
- char buf[MAX_LOCAL_BUFSZ];
-
- r = @API@(...);
-
- if (r>=0) {
- tet_infoline("@API@() failed in negative test case");
- tet_result(TET_FAIL);
- return;
- }
- tet_result(TET_PASS);
-}
+aul-1 (0.0.179) unstable; urgency=low
+
+ * changed to use the application ID
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.179
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 05 Jun 2012 20:01:49 +0900
+
+aul-1 (0.0.178) unstable; urgency=low
+
+ * Added exception handling in __app_send_cmd_with_result()
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.178
+
+ -- Sewook Park <sewook7.park@samsung.com> Tue, 15 May 2012 17:03:32 +0900
+
+aul-1 (0.0.177) unstable; urgency=low
+
+ * Removed elementary dependency
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.177
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 02 May 2012 11:52:12 +0900
+
+aul-1 (0.0.176) unstable; urgency=low
+
+ * Added key event module
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.176
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 30 Apr 2012 13:52:09 +0900
+
+aul-1 (0.0.175) unstable; urgency=low
+
+ * Extended timeout
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.175
+
+ -- Sewook Park <sewook7.park@samsung.com> Tue, 24 Apr 2012 17:40:20 +0900
+
+aul-1 (0.0.174) unstable; urgency=low
+
+ * Fixed hibernation bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.174
+
+ -- jaeho81.lee <jaeho81.lee@samsung.com> Thu, 19 Apr 2012 15:18:17 +0900
+
+aul-1 (0.0.173) unstable; urgency=low
+
+ * Fixed __launchpad_sig_child bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.173
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 04 Apr 2012 13:36:13 +0900
+
+aul-1 (0.0.172) unstable; urgency=low
+
+ * Removed waiting profile_ready
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.172
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 02 Apr 2012 13:29:52 +0900
+
+aul-1 (0.0.171) unstable; urgency=low
+
+ * Fixed __app_dbus_signal_handler_fini bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.171
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 30 Mar 2012 19:03:47 +0900
+
+aul-1 (0.0.170) unstable; urgency=low
+
+ * Add new APIs
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.170
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 29 Mar 2012 10:20:52 +0900
+
aul-1 (0.0.169) unstable; urgency=low
- * Initial release
- * Git: pkgs/a/aul-1
+ * Fixed compile warnings
+ * Git: slp/pkgs/a/aul-1
* Tag: aul-1_0.0.169
-- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 20 Mar 2012 14:36:05 +0900
+
+aul-1 (0.0.168) unstable; urgency=low
+
+ * Fix buffer overflow bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.168
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 20 Mar 2012 00:20:29 +0900
+
+aul-1 (0.0.167) unstable; urgency=low
+
+ * Fix buffer overflow bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.167
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 19 Mar 2012 21:08:42 +0900
+
+aul-1 (0.0.166) unstable; urgency=low
+
+ * Fix rua add history bug
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.166
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 16 Mar 2012 13:48:08 +0900
+
+aul-1 (0.0.165) unstable; urgency=low
+
+ * changed spec file
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.165
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 15 Mar 2012 22:47:29 +0900
+
+aul-1 (0.0.164) unstable; urgency=low
+
+ * rua add history
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.164
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 15 Mar 2012 18:17:38 +0900
+
+aul-1 (0.0.163) unstable; urgency=low
+
+ * Add aul_finalize()
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.163
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 28 Feb 2012 16:55:15 +0900
+
+aul-1 (0.0.162) unstable; urgency=low
+
+ * Add rua
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.162
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 15 Feb 2012 19:19:54 +0900
+
+aul-1 (0.0.161) unstable; urgency=low
+
+ * Add pre_exec before execution
+ * Git: slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.161
+
+ -- Sewook Park <sewook7.park@samsung.com> Thu, 02 Feb 2012 14:43:05 +0900
+
+aul-1 (0.0.160) unstable; urgency=low
+
+ * Fix ELM SCALE bug
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.160
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 31 Jan 2012 18:27:08 +0900
+
+aul-1 (0.0.159) unstable; urgency=low
+
+ * Support SDK
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.159
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 30 Jan 2012 20:02:26 +0900
+
+aul-1 (0.0.158) unstable; urgency=low
+
+ * Remove setenv for scale
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.158
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 18 Jan 2012 17:15:11 +0900
+
+aul-1 (0.0.157) unstable; urgency=low
+
+ * Fix aul_open_app bug
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.157
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 11 Jan 2012 15:40:27 +0900
+
+aul-1 (0.0.156) unstable; urgency=low
+
+ * Modify aul.spec
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.156
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 22 Dec 2011 10:10:34 +0900
+
+aul-1 (0.0.155) unstable; urgency=low
+
+ * Remove systemd dependency
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.155
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 21 Dec 2011 11:01:54 +0900
+
+aul-1 (0.0.154) unstable; urgency=low
+
+ * Fix code for CQ H0100137729
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.154
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 09 Dec 2011 11:40:18 +0900
+
+aul-1 (0.0.153) unstable; urgency=low
+
+ * Ignore permission error
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.153
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 05 Dec 2011 15:39:47 +0900
+
+aul-1 (0.0.152) unstable; urgency=low
+
+ * Fix code for CQ H0100135781
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.152
+
+ -- Sewook Park <sewook7.park@samsung.com> Thu, 01 Dec 2011 19:18:23 +0900
+
+aul-1 (0.0.151) unstable; urgency=low
+
+ * Modify reply handling of aul_send_result
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.151
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 30 Nov 2011 18:32:50 +0900
+
+aul-1 (0.0.150) unstable; urgency=low
+
+ * Support SMACK
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.150
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 29 Nov 2011 14:59:30 +0900
+
+aul-1 (0.0.149) unstable; urgency=low
+
+ * Support SDK
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.149
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 24 Nov 2011 10:37:42 +0900
+
+aul-1 (0.0.148) unstable; urgency=low
+
+ * Modify XInternAtom function arg
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.148
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 08 Nov 2011 12:59:46 +0900
+
+aul-1 (0.0.147) unstable; urgency=low
+
+ * Changed Boilerplate as per the guideline
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.147
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 07 Nov 2011 18:03:15 +0900
+
+aul-1 (0.0.146) unstable; urgency=low
+
+ * Add logs
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.146
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 04 Nov 2011 17:41:14 +0900
+
+aul-1 (0.0.145) unstable; urgency=low
+
+ * Remove socket file before launching
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.145
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 03 Nov 2011 14:54:48 +0900
+
+aul-1 (0.0.144) unstable; urgency=low
+
+ * Fix svace defects
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.144
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 27 Oct 2011 10:13:32 +0900
+
+aul-1 (0.0.143) unstable; urgency=low
+
+ * Modify aul_send_result
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.143
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 20 Oct 2011 12:26:28 +0900
+
+aul-1 (0.0.142) unstable; urgency=low
+
+ * add ac_daemon
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.142
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 17 Oct 2011 19:16:11 +0900
+
+aul-1 (0.0.141) unstable; urgency=low
+
+ * Modify oom adj value
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.141
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Thu, 06 Oct 2011 17:04:05 +0900
+
+aul-1 (0.0.140) unstable; urgency=low
+
+ * Use strncmp when comparing command line with Exec
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.140
+
+ -- Sewook Park <sewook7.park@samsung.com> Fri, 30 Sep 2011 11:09:25 +0900
+
+aul-1 (0.0.139) unstable; urgency=low
+
+ * AIL DB close
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.139
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 26 Sep 2011 19:25:00 +0900
+
+aul-1 (0.0.138) unstable; urgency=low
+
+ * Code cleanup
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.138
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 21 Sep 2011 11:36:58 +0900
+
+aul-1 (0.0.137) unstable; urgency=low
+
+ * Fix prevent defects
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.137
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Sat, 20 Aug 2011 18:05:34 +0900
+
+aul-1 (0.0.136) unstable; urgency=low
+
+ * Fix TC error
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.136
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 19 Aug 2011 13:32:23 +0900
+
+aul-1 (0.0.135) unstable; urgency=low
+
+ * Remove package dependency
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.135
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 17 Aug 2011 10:06:01 +0900
+
+aul-1 (0.0.134) unstable; urgency=low
+
+ * Modify TC Makefile
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.134
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 16 Aug 2011 14:49:35 +0900
+
+aul-1 (0.0.133) unstable; urgency=low
+
+ * Fix prevent defects
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.133
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Sat, 13 Aug 2011 18:31:09 +0900
+
+aul-1 (0.0.132) unstable; urgency=low
+
+ * Fix aul_app_get_running_app_info bug
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.132
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 10 Aug 2011 14:31:06 +0900
+
+aul-1 (0.0.131) unstable; urgency=low
+
+ * Apply app-svc
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.131
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 09 Aug 2011 11:45:18 +0900
+
+aul-1 (0.0.130) unstable; urgency=low
+
+ * ail API change
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.130
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 08 Aug 2011 16:27:27 +0900
+
+aul-1 (0.0.129) unstable; urgency=low
+
+ * Fix aul_app_is_running bug
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.129
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 03 Aug 2011 19:39:42 +0900
+
+aul-1 (0.0.128) unstable; urgency=low
+
+ * Change preload list
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.128
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 03 Aug 2011 17:25:36 +0900
+
+aul-1 (0.0.127) unstable; urgency=low
+
+ * Code cleanup
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.127
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Mon, 01 Aug 2011 19:30:19 +0900
+
+aul-1 (0.0.126) unstable; urgency=low
+
+ * Local launch
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.126
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 22 Jul 2011 13:08:54 +0900
+
+aul-1 (0.0.125) unstable; urgency=low
+
+ * Code cleanup
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.125
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Wed, 13 Jul 2011 16:18:49 +0900
+
+aul-1 (0.0.124) unstable; urgency=low
+
+ * Add cmdline check routine & Fix prevent defects
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.124
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 01 Jul 2011 11:29:20 +0900
+
+aul-1 (0.0.123) unstable; urgency=low
+
+ * Fix __connect_nonb
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.123
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 21 Jun 2011 14:44:17 +0900
+
+aul-1 (0.0.122) unstable; urgency=low
+
+ * Comment out command line check routine
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.122
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Fri, 17 Jun 2011 17:36:02 +0900
+
+aul-1 (0.0.121) unstable; urgency=low
+
+ * Fix launch_app
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.121
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Sat, 11 Jun 2011 16:59:21 +0900
+
+aul-1 (0.0.120) unstable; urgency=low
+
+ * Fix create_argc_argv()
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.120
+
+ -- Sewook Park <sewook7.park@samsung.com> Wed, 08 Jun 2011 15:29:02 +0900
+
+aul-1 (0.0.119) unstable; urgency=low
+
+ * Fix build error
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.119
+
+ -- Sewook Park <sewook7.park@samsung.com> Wed, 08 Jun 2011 11:10:22 +0900
+
+aul-1 (0.0.118) unstable; urgency=low
+
+ * Fix argc in launchpad
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.118
+
+ -- Sewook Park <sewook7.park@samsung.com> Tue, 07 Jun 2011 23:47:20 +0900
+
+aul-1 (0.0.117) unstable; urgency=low
+
+ * Fix API aul_get_defapp_from_mime
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.117
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 31 May 2011 13:46:48 +0900
+
+aul-1 (0.0.116) unstable; urgency=low
+
+ * Fix pwlock issue
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.116
+
+ -- Jaeho Lee <jaeho81.lee@samsung.com> Tue, 24 May 2011 17:52:38 +0900
+
+aul-1 (0.0.115) unstable; urgency=low
+
+ * AIL change
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.115
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 18 May 2011 10:03:58 +0900
+
+aul-1 (0.0.114) unstable; urgency=low
+
+ * Fix memory issue in case when several apps share the same app path
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.114
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 12 May 2011 08:59:44 +0900
+
+aul-1 (0.0.113) unstable; urgency=low
+
+ * Remove temp code for new pkgname policy
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.113
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 21 Apr 2011 12:24:50 +0900
+
+aul-1 (0.0.112) unstable; urgency=low
+
+ * Adding new API aul_open_app, which will replace aul_resume_app
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.112
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 18 Apr 2011 10:57:21 +0900
+
+aul-1 (0.0.111) unstable; urgency=low
+
+ * Temporary change during reflecting the new pkg name policy
+ * Update encoded package names
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.111
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 11 Apr 2011 21:37:05 +0900
+
+aul-1 (0.0.110) unstable; urgency=low
+
+ * Prevent BS due to EPIPE
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.110
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 06 Apr 2011 14:16:32 +0900
+
+aul-1 (0.0.109) unstable; urgency=low
+
+ * Setting process name with app name for top
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.109
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 17 Mar 2011 14:15:41 +0900
+
+aul-1 (0.0.108) unstable; urgency=low
+
+ * Adding new AUL services
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.108
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 16 Mar 2011 11:56:30 +0900
+
+aul-1 (0.0.107) unstable; urgency=low
+
+ * Applying Active Flushing
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.107
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 10 Mar 2011 16:07:38 +0900
+
+aul-1 (0.0.106) unstable; urgency=low
+
+ * Show err msg for cmdline not changed
+ * Fix recv_raw bug
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.106
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 07 Mar 2011 17:14:11 +0900
+
+aul-1 (0.0.105) unstable; urgency=low
+
+ * Fix connect lock-up
+ * Modifly launch-app for SDK
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.105
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 24 Feb 2011 18:08:33 +0900
+
+aul-1 (0.0.104) unstable; urgency=low
+
+ * Add launch_app command for SDK
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.104
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Fri, 18 Feb 2011 17:54:52 +0900
+
+aul-1 (0.0.103) unstable; urgency=low
+
+ * Fix prevent defects
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.103
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 16 Feb 2011 15:13:28 +0900
+
+aul-1 (0.0.102) unstable; urgency=low
+
+ * Modifly get_defapp_for_service
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.102
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Tue, 15 Feb 2011 19:00:50 +0900
+
+aul-1 (0.0.101) unstable; urgency=low
+
+ * Modify URI for MMS
+ * Fix the PIPE issue
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.101
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Tue, 15 Feb 2011 08:47:40 +0900
+
+aul-1 (0.0.100) unstable; urgency=low
+
+ * Modify URI for sms, mms
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.100
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Fri, 11 Feb 2011 20:06:38 +0900
+
+aul-1 (0.0.99) unstable; urgency=low
+
+ * Modify URI regex for callto, phonenum, tel to recognize +
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.99
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 09 Feb 2011 20:01:50 +0900
+
+aul-1 (0.0.98) unstable; urgency=low
+
+ * Modify testing app for TC
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.98
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Fri, 28 Jan 2011 14:52:33 +0900
+
+aul-1 (0.0.97) unstable; urgency=low
+
+ * Modify AUL Service APIs
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.97
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 26 Jan 2011 08:57:58 +0900
+
+aul-1 (0.0.96) unstable; urgency=low
+
+ * Enable AUL Log messages
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.96
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 24 Jan 2011 12:08:48 +0900
+
+aul-1 (0.0.95) unstable; urgency=low
+
+ * Rollback the change of Service API
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.95
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 20 Jan 2011 14:05:54 +0900
+
+aul-1 (0.0.94) unstable; urgency=low
+
+ * Update AUL Service APIs
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.94
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 20 Jan 2011 11:33:31 +0900
+
+aul-1 (0.0.93) unstable; urgency=low
+
+ * Modify TC files
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.93
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 13 Jan 2011 14:05:08 +0900
+
+aul-1 (0.0.92) unstable; urgency=low
+
+ * Modified MIME API internal function to handle null string input
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.92
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 06 Jan 2011 13:03:00 +0900
+
+aul-1 (0.0.91) unstable; urgency=low
+
+ * Disabled fake image effect
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.91
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 05 Jan 2011 20:17:19 +0900
+
+aul-1 (0.0.90) unstable; urgency=low
+
+ * Re-adjusted OOM value to -14 from 0 as requested
+ * Added a new bundle key for unaliased mime type
+ * Temporary modification to hide fake image (final update will be added later)
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.90
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 27 Dec 2010 14:24:22 +0900
+
+aul-1 (0.0.89) unstable; urgency=low
+
+ * Modify TC to avoid the timing issue among test cases
+ * Modify mime-related API to correctly set/get mime db info
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.89
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 23 Dec 2010 17:42:38 +0900
+
+aul-1 (0.0.88) unstable; urgency=low
+
+ * Modify menu db function to correctly retrieve the running apps info
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.88
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Mon, 20 Dec 2010 16:15:14 +0900
+
+aul-1 (0.0.87) unstable; urgency=low
+
+ * Use screen-engine's DB access functions and cleaned up the internal DB-related functions
+ * Run fake launch effect in AUL instead of menu screen
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.87
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Fri, 17 Dec 2010 11:55:30 +0900
+
+aul-1 (0.0.86) unstable; urgency=low
+
+ * Using desktop_get_item instead of RECORD_GET to reduce desktop DB handling time
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.86
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Thu, 16 Dec 2010 03:03:48 +0900
+
+aul-1 (0.0.85) unstable; urgency=low
+
+ * Modified libaul-1-executable.postinst and libaul-1.postinst
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.85
+
+ -- Yoonkyong Lee <yk6629.lee@samsung.com> Wed, 15 Dec 2010 09:49:31 +0900
+
+aul-1 (0.0.84) unstable; urgency=low
+
+ * Add /usr/lib/ecore/immodules/isf-imf-module.so to preload_list.txt
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.84
+
+ -- Youmin Ha <youmin.ha@samsung.com> Tue, 14 Dec 2010 20:03:26 +0900
+
+aul-1 (0.0.83) unstable; urgency=low
+
+ * Add time check log
+ * Git: 165.213.180.234:/slp/pkgs/a/aul-1
+ * Tag: aul-1_0.0.83
+
+ -- Youmin Ha <youmin.ha@samsung.com> Sat, 11 Dec 2010 16:45:33 +0900
+
+aul-1 (0.0.82) unstable; urgency=low
+
+ * support deb.org.tizen.* package names
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.82
+
+ -- Youmin Ha <youmin.ha@samsung.com> Wed, 24 Nov 2010 09:59:24 +0900
+
+aul-1 (0.0.81) unstable; urgency=low
+
+ * add launchpad launcher for rc4, revert 1777 permission
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.81
+
+ -- Youmin Ha <youmin.ha@samsung.com> Wed, 17 Nov 2010 17:33:38 +0900
+
+aul-1 (0.0.80-1) unstable; urgency=low
+
+ * reupload
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.80-1
+
+ -- Youmin Ha <youmin.ha@samsung.com> Wed, 17 Nov 2010 10:56:30 +0900
+
+aul-1 (0.0.80) unstable; urgency=low
+
+ * Apply security patch by Baik, Change permission of miregex/ dir to 1777
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.80
+
+ -- Youmin Ha <youmin.ha@samsung.com> Wed, 17 Nov 2010 10:41:34 +0900
+
+aul-1 (0.0.79) unstable; urgency=low
+
+ * include sqlite3 in depend pkgs
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.79
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 11 Nov 2010 11:41:54 +0900
+
+aul-1 (0.0.78) unstable; urgency=low
+
+ * pkg re-upload
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.78
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 11 Nov 2010 10:19:19 +0900
+
+aul-1 (0.0.77) unstable; urgency=low
+
+ * db installation : install ==> postinstall
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.77
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 11 Nov 2010 08:59:33 +0900
+
+aul-1 (0.0.76) unstable; urgency=low
+
+ * doxygen work
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.76
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 03 Nov 2010 19:10:18 +0900
+
+aul-1 (0.0.75) unstable; urgency=low
+
+ * modify aul_get_mime_extenstion
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.75
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 29 Oct 2010 15:19:50 +0900
+
+aul-1 (0.0.74) unstable; urgency=low
+
+ * modify scale direction (fix with menu_db)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.74
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 27 Oct 2010 14:57:57 +0900
+
+aul-1 (0.0.73) unstable; urgency=low
+
+ * modify scale direction
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.73
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 27 Oct 2010 14:05:20 +0900
+
+aul-1 (0.0.72) unstable; urgency=low
+
+ * support miregex description and updating miregex and add 2 APIs
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.72
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 27 Oct 2010 11:30:17 +0900
+
+aul-1 (0.0.71) unstable; urgency=low
+
+ * support alias mimetype
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.71
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 25 Oct 2010 17:53:48 +0900
+
+aul-1 (0.0.70) unstable; urgency=low
+
+ * lazy preinit util launching first pkg
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.70
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 25 Oct 2010 10:13:59 +0900
+
+aul-1 (0.0.69) unstable; urgency=low
+
+ * add contact_shortcut.uri
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.69
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 22 Oct 2010 13:17:15 +0900
+
+aul-1 (0.0.68) unstable; urgency=low
+
+ * change mimetype max length & auto-set default application when 1 application
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.68
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 21 Oct 2010 17:01:31 +0900
+
+aul-1 (0.0.67) unstable; urgency=low
+
+ * change max cmdline when preloading
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.67
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 21 Oct 2010 10:47:11 +0900
+
+aul-1 (0.0.66) unstable; urgency=low
+
+ * add libprivileg-control
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.66
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 21 Oct 2010 08:49:50 +0900
+
+aul-1 (0.0.65) unstable; urgency=low
+
+ * build error fix
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.65
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 20 Oct 2010 17:00:20 +0900
+
+aul-1 (0.0.64) unstable; urgency=low
+
+ * build by upgrading xdgmime version
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.64
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 20 Oct 2010 16:39:36 +0900
+
+aul-1 (0.0.63) unstable; urgency=low
+
+ * Modify Race Condition Problem in single instance
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.63
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 19 Oct 2010 14:06:27 +0900
+
+aul-1 (0.0.62) unstable; urgency=low
+
+ * modify PG according to SPRC/SERI
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.62
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 18 Oct 2010 11:29:21 +0900
+
+aul-1 (0.0.61) unstable; urgency=low
+
+ * aul_open_file_with_mimetype bug fix
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.61
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 15 Oct 2010 20:45:11 +0900
+
+aul-1 (0.0.60) unstable; urgency=low
+
+ * remove aul_launch_with_result to guiding by mike
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.60
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 15 Oct 2010 18:35:18 +0900
+
+aul-1 (0.0.59) unstable; urgency=low
+
+ * modify service API according to guiding by mike. (Lacking const, Header
+ file Directory)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.59
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 15 Oct 2010 12:03:12 +0900
+
+aul-1 (0.0.58) unstable; urgency=low
+
+ * pid-pgid mapping check at single instance
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.58
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 14 Oct 2010 17:06:39 +0900
+
+aul-1 (0.0.57) unstable; urgency=low
+
+ * update by desktop-library structure change
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.57
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 13 Oct 2010 18:50:01 +0900
+
+aul-1 (0.0.56) unstable; urgency=low
+
+ * add X error handling
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.56
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 12 Oct 2010 21:48:05 +0900
+
+aul-1 (0.0.55) unstable; urgency=low
+
+ * give EFL signal handler to child
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.55
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 12 Oct 2010 10:20:57 +0900
+
+aul-1 (0.0.54) unstable; urgency=low
+
+ * remove ELM_THEHE, kill same process groupid when child died
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.54
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 07 Oct 2010 20:50:55 +0900
+
+aul-1 (0.0.53) unstable; urgency=low
+
+ * add timeout feature
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.53
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 06 Oct 2010 21:04:35 +0900
+
+aul-1 (0.0.52) unstable; urgency=low
+
+ * usr -> opt
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.52
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 06 Oct 2010 17:25:25 +0900
+
+aul-1 (0.0.51) unstable; urgency=low
+
+ * libaul-1-executable debian bug fix
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.51
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 04 Oct 2010 14:44:36 +0900
+
+aul-1 (0.0.50) unstable; urgency=low
+
+ * divide libaul and libaul-executable (due to dependency X/Ecore)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.50
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 04 Oct 2010 10:36:58 +0900
+
+aul-1 (0.0.49) unstable; urgency=low
+
+ * add service api
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.49
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 27 Sep 2010 19:32:14 +0900
+
+aul-1 (0.0.48) unstable; urgency=low
+
+ * update due to screen-engine ABI change
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.48
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 17 Sep 2010 16:58:05 +0900
+
+aul-1 (0.0.47) unstable; urgency=low
+
+ * add multiple instance field, add prctl(PR_SET_DUMPABLE)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.47
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 15 Sep 2010 15:32:28 +0900
+
+aul-1 (0.0.46) unstable; urgency=low
+
+ * EFL upgrade
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.46
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 13 Sep 2010 09:24:35 +0900
+
+aul-1 (0.0.45) unstable; urgency=low
+
+ * TC work done
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.45
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 10 Sep 2010 15:43:17 +0900
+
+aul-1 (0.0.44) unstable; urgency=low
+
+ * fix build error
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.44
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 09 Sep 2010 12:01:26 +0900
+
+aul-1 (0.0.43) unstable; urgency=low
+
+ * release MIME API
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.43
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 09 Sep 2010 11:23:25 +0900
+
+aul-1 (0.0.42) unstable; urgency=low
+
+ * temprory release - by yoomin.ha
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.42
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 09 Sep 2010 11:23:25 +0900
+
+aul-1 (0.0.41) unstable; urgency=low
+
+ * disable SUPPORT_SYSASSERT
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.41
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 02 Sep 2010 18:38:45 +0900
+
+aul-1 (0.0.40) unstable; urgency=low
+
+ * transfer some signal handlers to child for sys-assert
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.40
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 02 Sep 2010 14:17:26 +0900
+
+aul-1 (0.0.39) unstable; urgency=low
+
+ * add aul_kill_pid API for task_manager, modify dbus shared connection ==> dbus private connection
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.39
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 02 Sep 2010 11:51:22 +0900
+
+aul-1 (0.0.38) unstable; urgency=low
+
+ * bug fix - size problem, dbus realloc lock problem
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.38
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 30 Aug 2010 23:26:11 +0900
+
+aul-1 (0.0.37) unstable; urgency=low
+
+ * re-upload
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.37
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 27 Aug 2010 14:22:03 +0900
+
+aul-1 (0.0.36) unstable; urgency=low
+
+ * enable preload & pre-initialize
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.36
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 27 Aug 2010 14:12:29 +0900
+
+aul-1 (0.0.35) unstable; urgency=low
+
+ * remove DISPLAY enviroment (X should be set)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.35
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 25 Aug 2010 16:48:16 +0900
+
+aul-1 (0.0.34) unstable; urgency=low
+
+ * sprintf -> snprintf
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.34
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 25 Aug 2010 11:35:48 +0900
+
+aul-1 (0.0.33) unstable; urgency=low
+
+ * add doxygen work , prepare to remove aul_launch_with_result
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.33
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 23 Aug 2010 23:08:48 +0900
+
+aul-1 (0.0.32) unstable; urgency=low
+
+ * add APP_START_TIME environment
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.32
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 18 Aug 2010 16:05:03 +0900
+
+aul-1 (0.0.31) unstable; urgency=low
+
+ * bug fix - readproc fix close
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.31
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 18 Aug 2010 12:41:28 +0900
+
+aul-1 (0.0.30) unstable; urgency=low
+
+ * add dbus auto-activation test
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.30
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 18 Aug 2010 09:57:32 +0900
+
+aul-1 (0.0.29) unstable; urgency=low
+
+ * add exception case - shell script , no app-core ...
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.29
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Mon, 16 Aug 2010 21:57:14 +0900
+
+aul-1 (0.0.28) unstable; urgency=low
+
+ * mime content done
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.28
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 12 Aug 2010 20:59:21 +0900
+
+aul-1 (0.0.27) unstable; urgency=low
+
+ * delete journal db
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.27
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 11 Aug 2010 12:58:16 +0900
+
+aul-1 (0.0.26) unstable; urgency=low
+
+ * add app dead signal using dbus
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.26
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 11 Aug 2010 11:26:47 +0900
+
+aul-1 (0.0.25) unstable; urgency=low
+
+ * add sticky bit - /tmp/alaunch
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.25
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 20:23:13 +0900
+
+aul-1 (0.0.24) unstable; urgency=low
+
+ * rollback security
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.24
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 20:05:16 +0900
+
+aul-1 (0.0.23) unstable; urgency=low
+
+ * more security enhanced
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.23
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 18:54:01 +0900
+
+aul-1 (0.0.22) unstable; urgency=low
+
+ * build fix
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.22
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 14:07:58 +0900
+
+aul-1 (0.0.21) unstable; urgency=low
+
+ * bug fix related by DAC - /tmp/alaunch permission
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.21
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 14:05:23 +0900
+
+aul-1 (0.0.20) unstable; urgency=low
+
+ * build fix
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.20
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 09:14:28 +0900
+
+aul-1 (0.0.19) unstable; urgency=low
+
+ * support mime api
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.19
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 10 Aug 2010 08:26:03 +0900
+
+aul-1 (0.0.18) unstable; urgency=low
+
+ * aul_test minor change
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.18
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 06 Aug 2010 17:11:45 +0900
+
+aul-1 (0.0.17) unstable; urgency=low
+
+ * clear internal key
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.17
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 06 Aug 2010 12:39:09 +0900
+
+aul-1 (0.0.16) unstable; urgency=low
+
+ * modification with mike'review - modify return value, argv->bundle
+ conversion
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.16
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 05 Aug 2010 14:35:20 +0900
+
+aul-1 (0.0.15) unstable; urgency=low
+
+ * modification of API(remove dead_handler, remove aul_get_app_info,
+ aul_free_app_info, add const to argument)
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.15
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 04 Aug 2010 14:41:49 +0900
+
+aul-1 (0.0.14) unstable; urgency=low
+
+ * add dlog
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.14
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 30 Jul 2010 17:41:56 +0900
+
+aul-1 (0.0.13) unstable; urgency=low
+
+ * add theme
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.13
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 30 Jul 2010 16:37:33 +0900
+
+aul-1 (0.0.12) unstable; urgency=low
+
+ * reupload2
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.12
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 30 Jul 2010 14:07:31 +0900
+
+aul-1 (0.0.11) unstable; urgency=low
+
+ * reupload
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.11
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 30 Jul 2010 13:50:44 +0900
+
+aul-1 (0.0.10) unstable; urgency=low
+
+ * upgrade aul_test program
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.9
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Fri, 30 Jul 2010 13:44:31 +0900
+
+aul-1 (0.0.9) unstable; urgency=low
+
+ * glib integration API by default
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.9
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 29 Jul 2010 22:06:35 +0900
+
+aul-1 (0.0.8) unstable; urgency=low
+
+ * add resume, terminate, ... add argv0, check more security
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.8
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 29 Jul 2010 19:55:24 +0900
+
+aul-1 (0.0.6) unstable; urgency=low
+
+ * add resume, terminate, ... add argv0, check more security
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.7
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Thu, 29 Jul 2010 19:44:15 +0900
+
+aul-1 (0.0.5) unstable; urgency=low
+
+ * re-upload due to ecore package dependency
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.5
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Wed, 28 Jul 2010 09:24:21 +0900
+
+aul-1 (0.0.4) unstable; urgency=low
+
+ * re-upload due to tag verfication
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.4
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 27 Jul 2010 21:40:58 +0900
+
+aul-1 (0.0.3) unstable; urgency=low
+
+ * CMakeList fix , fix according to change screen-engine API
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.3
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 27 Jul 2010 21:31:14 +0900
+
+aul-1 (0.0.2) unstable; urgency=low
+
+ * initial package upload
+ * Git: 165.213.180.234:/git/slp/pkgs/aul-1
+ * Tag: aul-1_0.0.2
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 27 Jul 2010 20:52:56 +0900
+
+aul-1 (0.0.1) unstable; urgency=low
+
+ * initial update
+
+ -- Kunhoon Baik <knhoon.baik@samsung.com> Tue, 27 Jul 2010 15:51:31 +0900
+
+
Section: devel
Priority: extra
Maintainer: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>, Yoonkyong Lee <yk6629.lee@samsung.com>, Youmin Ha <youmin.ha@samsung.com>, Kunhoon Baik <knhoon.baik@samsung.com>
-Build-Depends: debhelper (>= 5), libdbus-glib-1-dev, libsqlite3-dev, libx11-dev, libecore-dev, libbundle-dev, libail-0-dev, dlog-dev, libxdgmime-dev, libprivilege-control-dev, sqlite3, libapp-checker-dev, libapp-checker-server-dev, librua-dev
+Build-Depends: debhelper (>= 5), libdbus-glib-1-dev, libsqlite3-dev, libx11-dev, libecore-dev, libbundle-dev, libail-0-dev, dlog-dev, libxdgmime-dev, libprivilege-control-dev, sqlite3, libapp-checker-dev, libapp-checker-server-dev, librua-dev, libslp-utilx-dev, libecore-dev, libecore-x, libevas-dev
Standards-Version: 0.1.0
Package: libaul-1
@PREFIX@/bin/aul_service.sh\r
@PREFIX@/bin/aul_service_test.sh\r
@PREFIX@/bin/aul_mime.sh\r
-/opt/share/*\r
+@PREFIX@/share/*\r
--- /dev/null
+/*
+ * aul
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifdef PREEXEC_ACTIVATE
+
+#include <dlfcn.h>
+#include <glib.h>
+#define PREEXEC_FILE SHARE_PREFIX"/preexec_list.txt"
+
+static int preexec_initialized = 0;
+
+GSList *preexec_list = NULL;
+
+typedef struct _preexec_list_t {
+ char *pkg_type;
+ char *so_path;
+ int (*dl_do_pre_exe) (char *, char *);
+} preexec_list_t;
+
+static void __preexec_list_free()
+{
+ GSList *iter = NULL;
+ preexec_list_t *type_t;
+
+ for (iter = preexec_list; iter != NULL; iter = g_slist_next(iter)) {
+ type_t = iter->data;
+ if (type_t) {
+ if (type_t->pkg_type)
+ free(type_t->pkg_type);
+ if (type_t->so_path)
+ free(type_t->so_path);
+ free(type_t);
+ }
+ }
+ g_slist_free(preexec_list);
+ return;
+}
+
+static inline void __preexec_init(int argc, char **argv)
+{
+ void *handle = NULL;
+ FILE *preexec_file;
+ char *saveptr = NULL;
+ char line[MAX_LOCAL_BUFSZ];
+ char *type = NULL;
+ char *sopath = NULL;
+ char *symbol = NULL;
+ int (*func) (char *, char *) = NULL;
+ preexec_list_t *type_t = NULL;
+
+ preexec_file = fopen(PREEXEC_FILE, "rt");
+ if (preexec_file == NULL) {
+ _E("no preexec\n");
+ return;
+ }
+
+ _D("preexec start\n");
+
+ while (fgets(line, MAX_LOCAL_BUFSZ, preexec_file) > 0) {
+ /* Parse each line */
+ if (line[0] == '#' || line[0] == '\0')
+ continue;
+
+ type = strtok_r(line, ":\f\n\r\t\v ", &saveptr);
+ if (type == NULL)
+ continue;
+ sopath = strtok_r(NULL, ",\f\n\r\t\v ", &saveptr);
+ if (sopath == NULL)
+ continue;
+ symbol = strtok_r(NULL, ",\f\n\r\t\v ", &saveptr);
+ if (symbol == NULL)
+ continue;
+
+ type_t = (preexec_list_t *) calloc(1, sizeof(preexec_list_t));
+ if (type_t == NULL) {
+ _E("no available memory\n");
+ __preexec_list_free();
+ return;
+ }
+
+ handle = dlopen(sopath, RTLD_NOW);
+ if (handle == NULL) {
+ free(type_t);
+ continue;
+ }
+ _D("preexec %s %s# - handle : %x\n", type, sopath, handle);
+
+ func = dlsym(handle, symbol);
+ if (func == NULL) {
+ _E("failed to get symbol type:%s path:%s\n",
+ type, sopath);
+ free(type_t);
+ dlclose(handle);
+ continue;
+ }
+
+ type_t->pkg_type = strdup(type);
+ if (type_t->pkg_type == NULL) {
+ _E("no available memory\n");
+ free(type_t);
+ __preexec_list_free();
+ return;
+ }
+ type_t->so_path = strdup(sopath);
+ if (type_t->so_path == NULL) {
+ _E("no available memory\n");
+ free(type_t->pkg_type);
+ free(type_t);
+ __preexec_list_free();
+ return;
+ }
+ type_t->dl_do_pre_exe = func;
+
+ preexec_list = g_slist_append(preexec_list, (void *)type_t);
+ }
+
+ fclose(preexec_file);
+ preexec_initialized = 1;
+}
+
+static inline void __preexec_run(const char *pkg_type, const char *pkg_name,
+ const char *app_path)
+{
+ GSList *iter = NULL;
+ preexec_list_t *type_t;
+
+ if (!preexec_initialized)
+ return;
+
+ for (iter = preexec_list; iter != NULL; iter = g_slist_next(iter)) {
+ type_t = iter->data;
+ if (type_t) {
+ if (!strcmp(pkg_type, type_t->pkg_type)) {
+ if (type_t->dl_do_pre_exe != NULL) {
+ type_t->dl_do_pre_exe((char *)pkg_name,
+ (char *)app_path);
+ _D("called dl_do_pre_exe() type: %s",
+ pkg_type);
+ } else {
+ _E("no symbol for this type: %s",
+ pkg_type);
+ }
+ }
+ }
+ }
+
+}
+
+#else
+
+static inline void __preexec_init(int argc, char **argv)
+{
+}
+
+static inline void __preexec_run(const char *pkg_type, const char *pkg_name,
+ const char *app_path)
+{
+}
+
+#endif
--- /dev/null
+#preexec configuration
+##usage##
+#[type]: [preexec so path], [preexec symbol name]
+oap: /usr/lib/libosp-env-config.so, do_pre_exec
+tpk: /usr/lib/libosp-env-config.so, do_pre_exec
#define AUL_DBUS_PATH "/aul/dbus_handler"
#define AUL_DBUS_SIGNAL_INTERFACE "org.tizen.aul.signal"
#define AUL_DBUS_APPDEAD_SIGNAL "app_dead"
+#define AUL_DBUS_APPLAUNCH_SIGNAL "app_launch"
#endif
enum app_cmd {
APP_START,
+ APP_OPEN,
APP_RESUME,
APP_RESUME_BY_PID,
APP_TERM_BY_PID,
APP_START_RES,
APP_CANCEL,
APP_KILL_BY_PID,
- ADD_HISTORY,
- RUNNING_INFO,
- RUNNING_INFO_RESULT,
- IS_RUNNING
+ APP_ADD_HISTORY,
+ APP_RUNNING_INFO,
+ APP_RUNNING_INFO_RESULT,
+ APP_IS_RUNNING,
+ APP_KEY_EVENT,
+ APP_KEY_RESERVE,
+ APP_KEY_RELEASE
};
#define AUL_SOCK_PREFIX "/tmp/alaunch"
/** AUL public key - To support SDK */
#define AUL_K_SDK "__AUL_SDK__"
+/** AUL public key - To support Media key */
+#define AUL_K_MULTI_KEY "__AUL_MULTI_KEY__"
+/** AUL public key - To support Media key */
+#define AUL_K_MULTI_KEY_EVENT "__AUL_MULTI_KEY_EVENT__"
+
+/** AUL public bundle value - To support Media key*/
+#define AUL_V_KEY_PRESSED "__AUL_KEY_PRESSED__"
+/** AUL public bundle value - To support Media key*/
+#define AUL_V_KEY_RELEASED "__AUL_KEY_RELEASED__"
+
+
+
/**
* @brief This is callback function for aul_launch_init
* @param[in] type event's type received from system
* @remark
* None
*/
-int aul_launch_app(const char *pkgname, bundle *kb);
+int aul_launch_app(const char *appid, bundle *kb);
/**
* @par Description:
* you should check app's running state with aul_app_is_running.
* This API will launch the application if the application is not running.
*/
-int aul_open_app(const char *pkgname);
+int aul_open_app(const char *appid);
/**
* @par Description:
* This API trigger to resume application
* If the application is running, this API send a resume event to the App.
- * If the application is not running or multiple instance, this API launch App. with bundle.
+ * If the application is not running, this API returns fail.
* Although the application is running, if the application cannot receive resume event,
* AUL try to raise the application's default windows.
* @par Purpose:
* This API is for caller.
- * This API's purpose is to send resume event or to launch application
+ * This API's purpose is to send resume event.
* @par Typical use case:
* If you only want to show application with previous state or default state, Use this API.
*
* @param[in] pkgname package name to be resume as callee
- * @param[in] kb bundle to be passed to callee in case of launching app
* @return callee's pid if success, negative value(<0) if fail
* @retval AUL_R_OK - success
* @retval AUL_R_EINVAL - invaild package name
* int resume_inhouse_contact_app()
* {
* if(aul_app_is_running("org.tizen.contact"))
- * aul_resume_app("org.tizen.contact",NULL);
+ * aul_resume_app("org.tizen.contact");
* }
*
* @endcode
* If you want to only resume without launching in multiple instance application model,
* you should use aul_resume_pid.
*/
-int aul_resume_app(const char *pkgname, bundle *kb)
- __attribute__ ((__deprecated__));
+int aul_resume_app(const char *appid);
/**
* @par Description:
*/
typedef struct _aul_app_info {
int pid; /**< app's pid if running*/
- char* pkg_name; /**< APN (application package name) */
+ char* pkg_name; /**< application id */
char* app_path; /**< application excutable path */
+ char* appid;
} aul_app_info;
/**
* None
*
*/
-int aul_app_is_running(const char *pkgname);
+int aul_app_is_running(const char *appid);
/**
* @par Description:
* int iterfunc(const aul_app_info* info, void* data)
* {
* printf("\t==========================\n");
- * printf("\t pkg_name: %s\n", info->pkg_name);
+ * printf("\t pkg_name: %s\n", info->appid);
* printf("\t app_path: %s\n", info->app_path);
* printf("\t running pid: %d\n", info->pid);
* printf("\t==========================\n");
*/
int aul_app_get_pkgname_bypid(int pid, char *pkgname, int len);
+/**
+ * @par Description:
+ * This API get application appid by pid
+ * @par Purpose:
+ * If you want to get appid of running application, use this API
+ * @par Typical use case:
+ * In general, You can use this API when you want to know caller's information.
+ *
+ * @param[in] pid given pid
+ * @param[out] appid application id
+ * @param[in] len length of pkgname
+ * @return 0 if success, negative value(<0) if fail
+ * @retval AUL_R_OK - success
+ * @retval AUL_R_ERROR - no such a appid
+ * @pre
+ * None
+ * @post
+ * None
+ * @see
+ * None
+ * @code
+ * #include <aul.h>
+ * #include <bundle.h>
+ *
+ * static int app_reset(bundle *b, void *data)
+ * {
+ * int pid;
+ * char appid[255];
+ *
+ * pid = atoi(bundle_get_val(b,AUL_K_CALLER_PID));
+ * aul_app_get_appid_bypid(pid, appid, sizeof(appid));
+ * }
+ *
+ * @endcode
+ * @remark
+ * None
+*/
+int aul_app_get_appid_bypid(int pid, char *appid, int len);
+
+
/** @} */
/**
* None
*
*/
-int aul_open_file(const char* filename) __attribute__((deprecated));
+int aul_open_file(const char* filename);
/**
* @par Description:
* @remark
* None
*/
-int aul_open_file_with_mimetype(const char *filename, const char *mimetype) __attribute__((deprecated));
+int aul_open_file_with_mimetype(const char *filename, const char *mimetype);
/**
* @par Description:
* None
*
*/
-int aul_open_content(const char* content) __attribute__((deprecated));
+int aul_open_content(const char* content);
/**
* @par Description:
* None
*
*/
-int aul_get_defapp_from_mime(const char *mimetype, char *defapp, int len) __attribute__((deprecated));
+int aul_get_defapp_from_mime(const char *mimetype, char *defapp, int len);
/**
* @par Description:
* @remark
* None
*/
-int aul_set_defapp_with_mime(const char *mimetype, const char *defapp) __attribute__((deprecated));
+int aul_set_defapp_with_mime(const char *mimetype, const char *defapp);
/**
* @par Description:
* To see kinds of default service provided by platform, see "aul_service.h" header file
*
*/
-int aul_open_service(const char *svcname, bundle *b, aul_service_res_fn cbfunc, void *data) __attribute__((deprecated));
+int aul_open_service(const char *svcname, bundle *b, aul_service_res_fn cbfunc, void *data);
/**
* @par Description:
* None
*
*/
-int aul_set_defapp_for_service(const char *svcname, const char *defapp) __attribute__((deprecated));
+int aul_set_defapp_for_service(const char *svcname, const char *defapp);
/**
* @par Description:
* None
*
*/
-int aul_get_defapp_for_service(const char *svcname, char *defapp, int len) __attribute__((deprecated));
+int aul_get_defapp_for_service(const char *svcname, char *defapp, int len);
+
+/**
+ * @par Description:
+ * This API sets callback fuction that will be called when applications die.
+ * @par Purpose:
+ * This API's purpose is to listen the application dead event.
+ * In general, task manager Application need this API.
+ *
+ * @param[in] func callback function
+ * @param[in] data user data
+ * @return 0 if success, negative value if fail
+ * @retval AUL_R_OK - success
+ * @retval AUL_R_ERROR - general error
+ *
+ * @pre
+ * None
+ * @post
+ * None
+ * @see
+ * aul_listen_app_launch_signal
+ * @code
+ * #include <aul.h>
+ *
+ * int app_dead_handler(int pid, void *data)
+ * {
+ * printf("===> %s : %d\n", __FUNCTION__, pid);
+ * return 0;
+ * }
+ *
+ * void dead_listen()
+ * {
+ * aul_listen_app_dead_signal(app_dead_handler, NULL);
+ * }
+ *
+ * @endcode
+ * @remark
+ * None
+ *
+ */
+int aul_listen_app_dead_signal(int (*func) (int, void *), void *data);
+/**
+ * @par Description:
+ * This API sets callback fuction that will be called when applications are launched.
+ * @par Purpose:
+ * This API's purpose is to listen the application launching event.
+ * In general, task manager Application need this API.
+ *
+ * @param[in] func callback function
+ * @param[in] data user data
+ * @return 0 if success, negative value if fail
+ * @retval AUL_R_OK - success
+ * @retval AUL_R_ERROR - general error
+ *
+ * @pre
+ * None
+ * @post
+ * None
+ * @see
+ * aul_listen_app_dead_signal
+ * @code
+ * #include <aul.h>
+ *
+ * int app_launch_handler(int pid, void *data)
+ * {
+ * printf("===> %s : %d\n", __FUNCTION__, pid);
+ * return 0;
+ * }
+ *
+ * void dead_listen()
+ * {
+ * aul_listen_app_launch_signal(app_launch_handler, NULL);
+ * }
+ *
+ * @endcode
+ * @remark
+ * None
+ *
+ */
+int aul_listen_app_launch_signal(int (*func) (int, void *), void *data);
/** @} */
* limitations under the License.
*
*/
-#define MAX_LOCAL_BUFSZ 128
-#define EXIST_PKGNAME "org.tizen.calculator"
-#define NO_EXIST_PKGNAME "empty.fault.application"
-#define EXIST_FILENAME "/opt/share/preload_list.txt"
-#define NOEXIST_FILENAME "/empty/fault/file"
+#ifndef __APP_KEY_H_
+#define __APP_KEY_H_
-#define MIMETYPE "text/html"
-#define CONTENT "011-0011-1122"
+int app_key_event(bundle *kb);
+#endif
#ifndef __APP_LAUNCH_H_
#define __APP_LAUNCH_H_
+#include <glib.h>
+
int aul_initialize();
int aul_register_init_callback(
int (*aul_handler)(aul_type type, bundle *, void *), void *data);
void (*cbfunc) (bundle *, int, void *),
void *data);
+gboolean __aul_glib_handler(gpointer data);
+
+
#endif
str = NULL;
}
- ret = ail_package_destroy_appinfo(handle);
+ ret = ail_destroy_appinfo(handle);
if (ret != AIL_ERROR_OK) {
- _E("ail_package_destroy_appinfo failed");
+ _E("ail_destroy_appinfo failed");
}
if (!_get_app_path(menu_info)) {
#define LAUNCHPAD_LOG
#define DAC_ACTIVATE
#define PRELOAD_ACTIVATE
+#define PREEXEC_ACTIVATE
/*#define GL_ACTIVATE*/
/*#define HEAPDGB_ACTIVATE*/
/*#define PERF_ACTIVATE*/
#include "simple_util.h"
#include "access_control.h"
#include "preload.h"
+#include "preexec.h"
#include "perf.h"
#include "sigchild.h"
#include "aul_util.h"
/* TODO : should be add to check permission in the kernel*/
setsid();
+ __preexec_run(menu_info->pkg_type, pkg_name, app_path);
+
/* SET OOM*/
__set_oom();
hd->len = len;
memcpy(hd->data, kb_data, len);
- __app_send_raw(AUL_UTIL_PID, ADD_HISTORY, (unsigned char *)hd,
+ __app_send_raw(AUL_UTIL_PID, APP_ADD_HISTORY, (unsigned char *)hd,
hd->len+1029);
free(kb_data);
free(hd);
strncpy(hd->app_path, app_path, MAX_PACKAGE_APP_PATH_SIZE-1);
hd->len = 0;
- __app_send_raw(AUL_UTIL_PID, ADD_HISTORY, (unsigned char *)hd,
+ __app_send_raw(AUL_UTIL_PID, APP_ADD_HISTORY, (unsigned char *)hd,
1029);
free(hd);
}
bundle_add(kb, AUL_K_WAIT_RESULT, "1");
/* Parse app_path to retrieve default bundle*/
- if (cmd == APP_START || cmd == APP_START_RES || cmd == APP_RESUME) {
+ if (cmd == APP_START || cmd == APP_START_RES || cmd == APP_OPEN || cmd == APP_RESUME) {
char *ptr;
char exe[MAX_PATH_LEN];
int flag;
{
int ret = -1;
switch (cmd) {
+ case APP_OPEN:
case APP_RESUME:
_D("resume app's pid : %d\n", pid);
if ((ret = __resume_app(pid)) < 0)
_D("-- now wait to change cmdline --");
usleep(50 * 1000); /* 50ms sleep*/
wait_count++;
- } while (wait_count <= 10); /* max 50*10ms will be sleep*/
+ } while (wait_count <= 20); /* max 50*20ms will be sleep*/
if ((!cmdline_exist) && (!cmdline_changed)) {
__real_send(clifd, -1); /* abnormally launched*/
int pid = -1;
int clifd = -1;
struct ucred cr;
+ int is_real_launch = 0;
char sock_path[UNIX_PATH_MAX] = {0,};
pid = -ELOCALLAUNCH_ID;
} else if ((ret = __nofork_processing(pkt->cmd, pid, kb)) < 0)
pid = ret;
- } else {
+ } else if (pkt->cmd != APP_RESUME) {
pid = fork();
if (pid == 0) {
PERF("fork done");
exit(-1);
}
_D("==> real launch pid : %d %s\n", pid, app_path);
+ is_real_launch = 1;
}
end:
ret = ac_check_launch_privilege(pkg_name, menu_info->pkg_type, pid);
_D("ac_check_launch_privilege : %d", ret);
switch (pkt->cmd) {
+ case APP_OPEN:
case APP_RESUME:
__add_history(cr.pid, pid, pkg_name, NULL, app_path);
break;
default:
_D("no launch case");
}
+ if (is_real_launch) {
+ /*TODO: retry*/
+ __signal_block_sigchld();
+ __send_app_launch_signal(pid);
+ __signal_unblock_sigchld();
+ }
}
if (menu_info != NULL)
__preload_init(argc, argv);
+ __preexec_init(argc, argv);
+
return fd;
}
return 0;
}
- preinit_init();
if (__signal_set_sigchld() < 0)
return -1;
static struct sigaction old_sigchild;
static DBusConnection *bus = NULL;
+sigset_t oldmask;
static inline void __socket_garbage_collector()
{
return 0;
}
+static inline int __send_app_launch_signal(int launch_pid)
+{
+ DBusMessage *message;
+
+ if (bus == NULL)
+ return -1;
+
+ message = dbus_message_new_signal(AUL_DBUS_PATH,
+ AUL_DBUS_SIGNAL_INTERFACE,
+ AUL_DBUS_APPLAUNCH_SIGNAL);
+
+ if (dbus_message_append_args(message,
+ DBUS_TYPE_UINT32, &launch_pid,
+ DBUS_TYPE_INVALID) == FALSE) {
+ _E("Failed to load data error");
+ return -1;
+ }
+
+ if (dbus_connection_send(bus, message, NULL) == FALSE) {
+ _E("dbus send error");
+ return -1;
+ }
+
+ dbus_connection_flush(bus);
+ dbus_message_unref(message);
+
+ _D("send launch signal done\n");
+
+ return 0;
+}
+
static int __sigchild_action(void *data)
{
pid_t dead_pid;
{
int status;
pid_t child_pid;
- pthread_t thid;
pid_t child_pgid;
child_pgid = getpgid(info->si_pid);
return 0;
}
+static inline int __signal_block_sigchld(void)
+{
+ sigset_t newmask;
+
+ sigemptyset(&newmask);
+ sigaddset(&newmask, SIGCHLD);
+
+ if (sigprocmask(SIG_BLOCK, &newmask, &oldmask) < 0) {
+ _E("SIG_BLOCK error");
+ return -1;
+ }
+
+ _D("SIGCHLD blocked");
+
+ return 0;
+}
+
+static inline int __signal_unblock_sigchld(void)
+{
+ if(sigprocmask(SIG_SETMASK, &oldmask, NULL) < 0) {
+ _E("SIG_SETMASK error");
+ return -1;
+ }
+
+ _D("SIGCHLD unblocked");
+ return 0;
+}
+
static inline int __signal_fini(void)
{
#ifndef PRELOAD_ACTIVATE
#ifdef PRELOAD_ACTIVATE
#include <dlfcn.h>
-#define PRELOAD_FILE RW_DATA_PREFIX"/preload_list.txt"
+#define PRELOAD_FILE SHARE_PREFIX"/preload_list.txt"
#define EFL_PREINIT_FUNC "elm_quicklaunch_init"
#define EFL_SHUTDOWN_FUNC "elm_quicklaunch_shutdown"
Name: aul
Summary: App utility library
-Version: 0.0.169
-Release: 2
+Version: 0.0.186
+Release: 1
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(app-checker)
-BuildRequires: pkgconfig(app-checker-server)
BuildRequires: pkgconfig(ecore)
BuildRequires: pkgconfig(bundle)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(ail)
-BuildRequires: pkgconfig(xdgmime)
+BuildRequires: xdgmime-devel, pkgconfig(xdgmime)
BuildRequires: pkgconfig(libprivilege-control)
+BuildRequires: pkgconfig(app-checker)
+BuildRequires: pkgconfig(app-checker-server)
BuildRequires: pkgconfig(rua)
+BuildRequires: pkgconfig(ecore-x)
+BuildRequires: pkgconfig(ecore-input)
+BuildRequires: pkgconfig(utilX)
%description
ln -sf /etc/init.d/launchpad_run /etc/rc.d/rc4.d/S80launchpad_run
mkdir -p /opt/dbspace
-sqlite3 /opt/dbspace/.mida.db < /opt/share/mida_db.sql
-rm -rf /opt/share/mida_db.sql
+sqlite3 /opt/dbspace/.mida.db < /usr/share/aul/mida_db.sql
+rm -rf /usr/share/aul/mida_db.sql
chown 0:0 /usr/lib/libaul.so.0.1.0
chown 0:5000 /opt/dbspace/.mida.db
/etc/init.d/launchpad_run
/usr/bin/aul_service.sh
/usr/bin/aul_service_test.sh
-/opt/share/mida_db.sql
+/usr/share/aul/mida_db.sql
/usr/bin/aul_mime.sh
/usr/bin/aul_test
/usr/bin/launch_app
-/opt/share/miregex/*
-/opt/share/service/*
-/opt/share/preload_list.txt
+/usr/share/aul/miregex/*
+/usr/share/aul/service/*
+/usr/share/aul/preload_list.txt
+/usr/share/aul/preexec_list.txt
/usr/bin/launchpad_preloading_preinitializing_daemon
/usr/bin/ac_daemon
#include "app_signal.h"
#include "aul_api.h"
#include "simple_util.h"
+#include "aul.h"
static int (*_app_dead_handler) (int pid, void *data);
static void *_app_dead_data;
+static int (*_app_launch_handler) (int pid, void *data);
+static void *_app_launch_data;
+
static DBusConnection *bus;
static int app_dbus_signal_handler_initialized = 0;
{
const char *sender;
const char *interface;
- int dead_pid;
+ int pid;
DBusError error;
dbus_error_init(&error);
if (dbus_message_is_signal(
message, interface, AUL_DBUS_APPDEAD_SIGNAL)) {
if (dbus_message_get_args(message, &error, DBUS_TYPE_UINT32,
- &dead_pid, DBUS_TYPE_INVALID) == FALSE) {
+ &pid, DBUS_TYPE_INVALID) == FALSE) {
_E("Failed to get data: %s", error.message);
dbus_error_free(&error);
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
if (_app_dead_handler)
- _app_dead_handler(dead_pid, _app_dead_data);
+ _app_dead_handler(pid, _app_dead_data);
+ } else if (dbus_message_is_signal(
+ message, interface, AUL_DBUS_APPLAUNCH_SIGNAL)) {
+ if (dbus_message_get_args(message, &error, DBUS_TYPE_UINT32,
+ &pid, DBUS_TYPE_INVALID) == FALSE) {
+ _E("Failed to get data: %s", error.message);
+ dbus_error_free(&error);
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
+ }
+ if (_app_launch_handler)
+ _app_launch_handler(pid, _app_launch_data);
}
return DBUS_HANDLER_RESULT_HANDLED;
}
dbus_connection_close(bus);
+ dbus_connection_unref(bus);
app_dbus_signal_handler_initialized = 0;
if (func) {
if (__app_dbus_signal_handler_init() < 0) {
_E("error app signal init");
- return -1;
+ return AUL_R_ERROR;
}
- } else {
+ } else if (_app_launch_handler == NULL) {
if (__app_dbus_signal_handler_fini() < 0) {
_E("error app signal fini");
- return -1;
+ return AUL_R_ERROR;
}
}
_app_dead_handler = func;
_app_dead_data = data;
- return 0;
+ return AUL_R_OK;
}
+SLPAPI int aul_listen_app_launch_signal(int (*func) (int, void *), void *data)
+{
+ if (func) {
+ if (__app_dbus_signal_handler_init() < 0) {
+ _E("error app signal init");
+ return AUL_R_ERROR;
+ }
+ } else if (_app_dead_handler == NULL) {
+ if (__app_dbus_signal_handler_fini() < 0) {
+ _E("error app signal fini");
+ return AUL_R_ERROR;
+ }
+ }
+ _app_launch_handler = func;
+ _app_launch_data = data;
+
+ return AUL_R_OK;
+}
static inline void __set_sock_option(int fd, int cli)
{
int size;
-#ifdef __i386__
- struct timeval tv = { 5, 200 * 1000 }; /* 5.2 sec */
- _D("time out : 5.2 sec");
-#else
- struct timeval tv = { 1, 200 * 1000 }; /* 1.2 sec */
- _D("time out : 1.2 sec");
-#endif
+ struct timeval tv = { 3, 200 * 1000 }; /* 3.2 sec */
size = AUL_SOCK_MAXBUFF;
setsockopt(fd, SOL_SOCKET, SO_SNDBUF, &size, sizeof(size));
memcpy(pkt->data, kb_data, datalen);
if ((len = send(fd, pkt, datalen + 8, 0)) != datalen + 8) {
- _E("sendto() failed - %d %d", len, datalen + 8);
+ _E("sendto() failed - %d %d (errno %d)", len, datalen + 8, errno);
if (errno == EPIPE) {
_E("pid:%d, fd:%d\n", pid, fd);
}
return NULL;
}
+retry_recv:
+ /* receive single packet from socket */
len = recv(fd, pkt, AUL_SOCK_MAXBUFF, 0);
if (len == -1) {
if (errno == EAGAIN) {
_E("recv timeout \n");
free(pkt);
return NULL;
+ } else if (errno == EINTR) {
+ goto retry_recv;
} else {
- _E("recv error\n");
+ _E("recv error %s\n", strerror(errno));
free(pkt);
return NULL;
}
--- /dev/null
+/*
+ * aul
+ *
+ * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+ *
+ * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+#include <utilX.h>
+#include <glib.h>
+#include <poll.h>
+#include <bundle.h>
+
+#include "aul.h"
+#include "aul_api.h"
+#include "menu_db_util.h"
+#include "simple_util.h"
+#include "app_sock.h"
+#include "aul_util.h"
+#include "launch.h"
+
+
+static int (*_aul_key_handler) (bundle *kb, void *data) = NULL;
+static void *_aul_key_data = NULL;
+
+extern GSourceFuncs funcs;
+
+int app_key_event(bundle *kb)
+{
+ if (_aul_key_handler)
+ _aul_key_handler(kb, _aul_key_data);
+ return 0;
+}
+
+int aul_register_key_init_callback(
+ int (*aul_handler) (bundle *, void *), void *data)
+{
+ /* Save start handler function in static var */
+ _aul_key_handler = aul_handler;
+ _aul_key_data = data;
+ return 0;
+}
+
+SLPAPI int aul_key_init(int (*aul_handler) (bundle *, void *), void *data)
+{
+ int fd;
+ GPollFD *gpollfd;
+ GSource *src;
+ int ret;
+
+ if (aul_handler != NULL)
+ aul_register_key_init_callback(aul_handler, data);
+
+ fd = aul_initialize();
+ if (fd < 0)
+ return fd;
+
+ src = g_source_new(&funcs, sizeof(GSource));
+
+ gpollfd = (GPollFD *) g_malloc(sizeof(GPollFD));
+ gpollfd->events = POLLIN;
+ gpollfd->fd = fd;
+
+ g_source_add_poll(src, gpollfd);
+ g_source_set_callback(src, (GSourceFunc) __aul_glib_handler,
+ (gpointer) gpollfd, NULL);
+ g_source_set_priority(src, G_PRIORITY_LOW);
+
+ ret = g_source_attach(src, NULL);
+ if (ret == 0)
+ return AUL_R_ERROR;
+
+ g_source_unref(src);
+
+ return AUL_R_OK;
+}
+
+SLPAPI int aul_key_reserve()
+{
+ bundle *kb;
+ int ret;
+
+ kb = bundle_create();
+ ret = app_send_cmd(AUL_UTIL_PID, APP_KEY_RESERVE, kb);
+ bundle_free(kb);
+
+ return ret;
+}
+
+SLPAPI int aul_key_release()
+{
+ bundle *kb;
+ int ret;
+
+ kb = bundle_create();
+ ret = app_send_cmd(AUL_UTIL_PID, APP_KEY_RELEASE, kb);
+ bundle_free(kb);
+
+ return ret;
+}
+
+
+
#include "perf.h"
#include "simple_util.h"
#include "launch.h"
+#include "key.h"
static int aul_initialized = 0;
static int aul_fd;
static int __app_launch_local(bundle *b);
static int __send_result_to_launchpad(int fd, int res);
+extern int aul_launch_fini();
int aul_is_initialized()
{
* @param[in] cmd message's status (APP_START | APP_RESULT)
* @param[in] kb data
*/
-int app_send_cmd(int pid, int cmd, bundle *kb)
+SLPAPI int app_send_cmd(int pid, int cmd, bundle *kb)
{
int datalen;
bundle_raw *kb_data;
b = bundle_dup(kb);
ret = __app_launch_local(b);
break;
+ case APP_OPEN:
case APP_RESUME:
case APP_RESUME_BY_PID:
ret = __app_resume_local();
bundle_free(kbundle);
break;
- case APP_RESUME: /* run in callee */
+ case APP_OPEN: /* run in callee */
+ case APP_RESUME:
case APP_RESUME_BY_PID:
app_resume();
break;
bundle_free(kbundle);
break;
+ case APP_KEY_EVENT: /* run in caller */
+ kbundle = bundle_decode(pkt->data, pkt->len);
+ if (kbundle == NULL)
+ goto err;
+ app_key_event(kbundle);
+ bundle_free(kbundle);
+ break;
+
default:
_E("no support packet");
}
{
int ret;
+ aul_launch_fini();
+
if (aul_initialized) {
ret = close(aul_fd);
}
}
-SLPAPI int aul_launch_app(const char *pkgname, bundle *kb)
+SLPAPI int aul_launch_app(const char *appid, bundle *kb)
{
int ret;
- if (pkgname == NULL)
+ if (appid == NULL)
return AUL_R_EINVAL;
- ret = app_request_to_launchpad(APP_START, pkgname, kb);
+ ret = app_request_to_launchpad(APP_START, appid, kb);
return ret;
}
-SLPAPI int aul_open_app(const char *pkgname)
+SLPAPI int aul_open_app(const char *appid)
{
int ret;
- if (pkgname == NULL)
+ if (appid == NULL)
return AUL_R_EINVAL;
- ret = app_request_to_launchpad(APP_RESUME, pkgname, NULL);
+ ret = app_request_to_launchpad(APP_OPEN, appid, NULL);
return ret;
}
-SLPAPI int aul_resume_app(const char *pkgname, bundle *kb)
+SLPAPI int aul_resume_app(const char *appid)
{
int ret;
- if (pkgname == NULL)
+ if (appid == NULL)
return AUL_R_EINVAL;
- ret = app_request_to_launchpad(APP_RESUME, pkgname, kb);
+ ret = app_request_to_launchpad(APP_RESUME, appid, NULL);
return ret;
}
#include "launch.h"
#include "simple_util.h"
+static GSource *src;
+
static gboolean __aul_glib_check(GSource *src);
static gboolean __aul_glib_dispatch(GSource *src, GSourceFunc callback,
gpointer data);
static gboolean __aul_glib_prepare(GSource *src, gint *timeout);
-static gboolean __aul_glib_handler(gpointer data);
static gboolean __app_start_internal(gpointer data);
static gboolean __aul_glib_check(GSource *src)
return FALSE;
}
-static GSourceFuncs funcs = {
+GSourceFuncs funcs = {
.prepare = __aul_glib_prepare,
.check = __aul_glib_check,
.dispatch = __aul_glib_dispatch,
.finalize = NULL
};
-static gboolean __aul_glib_handler(gpointer data)
+gboolean __aul_glib_handler(gpointer data)
{
GPollFD *gpollfd = (GPollFD *) data;
aul_sock_handler(gpollfd->fd);
{
int fd;
GPollFD *gpollfd;
- GSource *src;
int ret;
if (aul_handler != NULL)
g_source_add_poll(src, gpollfd);
g_source_set_callback(src, (GSourceFunc) __aul_glib_handler,
(gpointer) gpollfd, NULL);
- g_source_set_priority(src, G_PRIORITY_LOW);
+ g_source_set_priority(src, G_PRIORITY_DEFAULT);
ret = g_source_attach(src, NULL);
if (ret == 0)
return AUL_R_OK;
}
+SLPAPI int aul_launch_fini()
+{
+ g_source_destroy(src);
+}
+
SLPAPI int aul_launch_argv_handler(int argc, char **argv)
{
bundle *b;
ail_ret = ail_package_get_appinfo(defapp, &handle);
if (ail_ret == AIL_ERROR_OK) {
- ail_package_destroy_appinfo(handle);
+ ail_destroy_appinfo(handle);
_D("mimetype : %s, unaliased mimetype : %s, "
"mime_content : %s, defapp : %s", mime_type,
unaliased_mime_type,
"does NOT exist", defapp,
mime_type, mime_content);
mida_delete_with_pkgname(defapp);
- ail_package_destroy_appinfo(handle);
+ ail_destroy_appinfo(handle);
goto retry;
} else {
- _E("ail_package_get_appinfo with %s failed", defapp);
+ _E("ail_get_appinfo with %s failed", defapp);
if (kb) {
bundle_free(kb);
kb = NULL;
#include <stdio.h>
#include <string.h>
-#define MIREGEX_DIR RW_DATA_PREFIX"/miregex"
+#define MIREGEX_DIR SHARE_PREFIX"/miregex"
#define ONELINE_BUF 1024
typedef struct miregex_file_info_t {
static int __get_pkgname_bypid(int pid, char *pkgname, int len);
-SLPAPI int aul_app_is_running(const char *pkgname)
+SLPAPI int aul_app_is_running(const char *appid)
{
int ret = 0;
- if (pkgname == NULL)
+ if (appid == NULL)
return 0;
- ret = __app_send_raw(AUL_UTIL_PID, IS_RUNNING, (unsigned char*)pkgname, strlen(pkgname));
+ ret = __app_send_raw(AUL_UTIL_PID, APP_IS_RUNNING, (unsigned char*)appid, strlen(appid));
return ret;
}
if (enum_fn == NULL)
return AUL_R_EINVAL;
- pkt = __app_send_cmd_with_result(AUL_UTIL_PID, RUNNING_INFO);
+ pkt = __app_send_cmd_with_result(AUL_UTIL_PID, APP_RUNNING_INFO);
if (pkt == NULL)
return AUL_R_ERROR;
if (token == NULL)
break;
info.pid = atoi(strtok_r(token, ":", &saveptr2));
- info.pkg_name = strtok_r(NULL, ":", &saveptr2);
+ info.appid = strtok_r(NULL, ":", &saveptr2);
info.app_path = strtok_r(NULL, ":", &saveptr2);
+ info.pkg_name = strdup(info.appid);
enum_fn(&info, user_param);
}
+ free(info.pkg_name);
free(pkt);
return AUL_R_OK;
SLPAPI int aul_app_get_pkgname_bypid(int pid, char *pkgname, int len)
{
+ return aul_app_get_appid_bypid(pid, pkgname, len);
+}
+
+SLPAPI int aul_app_get_appid_bypid(int pid, char *appid, int len)
+{
int pgid;
- if (pkgname == NULL)
+ if (appid == NULL)
return AUL_R_EINVAL;
- if (__get_pkgname_bypid(pid, pkgname, len) == 0) {
- _D("Pkg name for %d is %s", pid, pkgname);
+ if (__get_pkgname_bypid(pid, appid, len) == 0) {
+ _D("appid for %d is %s", pid, appid);
return AUL_R_OK;
}
/* support app launched by shell script*/
return AUL_R_ERROR;
_D("second change pgid = %d, pid = %d", pgid, pid);
- if (__get_pkgname_bypid(pgid, pkgname, len) == 0)
+ if (__get_pkgname_bypid(pgid, appid, len) == 0)
return AUL_R_OK;
return AUL_R_ERROR;
}
+
ail_ret = ail_package_get_appinfo(defapp, &handle);
if (ail_ret == AIL_ERROR_OK) {
- ail_package_destroy_appinfo(handle);
+ ail_destroy_appinfo(handle);
_D("svcname: %s, defapp : %s", svcname, defapp);
if (cbfunc) {
_D("defapp %s for svcname: %s does NOT exist", defapp,
svcname);
svc_delete_with_pkgname(defapp);
- ail_package_destroy_appinfo(handle);
+ ail_destroy_appinfo(handle);
goto retry;
} else {
- _E("ail_package_get_appinfo with %s failed", defapp);
+ _E("ail_get_appinfo with %s failed", defapp);
if (must_free) {
bundle_free(kb);
kb = NULL;
ac_daemon.c
../src/app_sock.c
../src/simple_util.c)
-target_link_libraries(ac_daemon app-checker-server rua glib-2.0 bundle ail ${pkgs_LDFLAGS})
+target_link_libraries(ac_daemon app-checker-server rua glib-2.0 bundle ail aul utilX ${pkgs_LDFLAGS})
INSTALL(TARGETS ac_daemon DESTINATION bin)
#include <dlfcn.h>
#include <poll.h>
#include <ail.h>
+#include <aul.h>
#include "simple_util.h"
#include "app_sock.h"
#include "aul_util.h"
#include "menu_db_util.h"
+#include <Ecore_X.h>
+#include <Ecore_Input.h>
+#include <utilX.h>
+#include <Ecore.h>
+#include <Evas.h>
+
+static struct {
+ Evas_Object *win;
+ Ecore_Event_Handler *key_up;
+ Ecore_Event_Handler *key_down;
+} key_info = {
+ .win = NULL,
+ .key_up = NULL,
+ .key_down = NULL,
+};
+
+GSList *key_pid_list = NULL;
+
+extern int app_send_cmd(int pid, int cmd, bundle *kb);
+
static gboolean __add_history_handler(gpointer user_data)
{
struct rua_rec rec;
app_pkt_t *pkt = (app_pkt_t *)user_data;
struct history_data *hd = (struct history_data *)pkt->data;
+ ret = rua_init();
+
memset(&rec, 0, sizeof(rec));
rec.pkg_name = hd->pkg_name;
_D("rua add history error");
free(pkt);
+
+ ret = rua_fini();
+
return false;
}
__proc_iter_cmdline(__get_pkginfo, pkt->data);
- pkt->cmd = RUNNING_INFO_RESULT;
+ pkt->cmd = APP_RUNNING_INFO_RESULT;
pkt->len = strlen((char *)pkt->data) + 1;
if ((len = send(fd, pkt, pkt->len + 8, 0)) != pkt->len + 8) {
ail_ret = ail_package_get_appinfo(pkgname, &handle);
if (ail_ret != AIL_ERROR_OK) {
- _E("ail_package_get_appinfo with %s failed", pkgname);
+ _E("ail_get_appinfo with %s failed", pkgname);
return ret;
}
ret = 0;
out:
- if (ail_package_destroy_appinfo(handle) != AIL_ERROR_OK)
+ if (ail_destroy_appinfo(handle) != AIL_ERROR_OK)
_E("ail_destroy_rs failed");
return ret;
}
+static int __register_key_event(int pid)
+{
+ int *pid_data;
+ GSList *entry;
+
+ pid_data = malloc(sizeof(int));
+ *pid_data = pid;
+
+ key_pid_list = g_slist_prepend(key_pid_list, pid_data);
+
+ _D("===key stack===");
+
+ for (entry = key_pid_list; entry; entry = entry->next) {
+ if (entry->data) {
+ pid_data = (int *) entry->data;
+ _D("pid : %d",*pid_data);
+ }
+ }
+
+ return 0;
+}
+
+static int __unregister_key_event(int pid)
+{
+ GSList *entry;
+ int *pid_data;
+
+ for (entry = key_pid_list; entry; entry = entry->next) {
+ if (entry->data) {
+ pid_data = (int *) entry->data;
+ if(pid == *pid_data) {
+ key_pid_list = g_slist_remove(key_pid_list, entry->data);
+ free(pid_data);
+ }
+ }
+ }
+
+ _D("===key stack===");
+
+ for (entry = key_pid_list; entry; entry = entry->next) {
+ if (entry->data) {
+ pid_data = (int *) entry->data;
+ _D("pid : %d",*pid_data);
+ }
+ }
+
+ return 0;
+}
static gboolean __util_handler(gpointer data)
{
}
switch (pkt->cmd) {
- case ADD_HISTORY:
+ case APP_ADD_HISTORY:
hd = (struct history_data *)pkt->data;
_D("cmd : %d, pkgname : %s, app_path : %s", pkt->cmd, hd->pkg_name, hd->app_path);
__send_result_to_client(clifd, 0);
g_timeout_add(1000, __add_history_handler, pkt);
break;
- case RUNNING_INFO:
+ case APP_RUNNING_INFO:
__send_running_appinfo(clifd);
free(pkt);
break;
- case IS_RUNNING:
+ case APP_IS_RUNNING:
strncpy(pkgname, (const char*)pkt->data, MAX_PACKAGE_STR_SIZE-1);
ret = __app_is_running(pkgname);
__send_result_to_client(clifd, ret);
free(pkt);
break;
+ case APP_KEY_RESERVE:
+ ret = __register_key_event(cr.pid);
+ __send_result_to_client(clifd, ret);
+ free(pkt);
+ break;
+ case APP_KEY_RELEASE:
+ ret = __unregister_key_event(cr.pid);
+ __send_result_to_client(clifd, ret);
+ free(pkt);
+ break;
default:
_E("no support packet");
}
.finalize = NULL
};
+static Eina_Bool _key_release_cb(void *data, int type, void *event)
+{
+ Evas_Event_Key_Up *ev = event;
+ int ret;
+ GSList *entry;
+ int *pid_data;
+ bundle *kb;
+
+ _D("Released");
+
+ if (!ev) {
+ _D("Invalid event object");
+ return ECORE_CALLBACK_RENEW;
+ }
+
+ entry = key_pid_list;
+ if (entry && entry->data) {
+ pid_data = (int *) entry->data;
+
+ kb = bundle_create();
+ bundle_add(kb, AUL_K_MULTI_KEY, ev->keyname);
+ bundle_add(kb, AUL_K_MULTI_KEY_EVENT, AUL_V_KEY_RELEASED);
-int __initialize()
+ ret = app_send_cmd(*pid_data, APP_KEY_EVENT, kb);
+
+ bundle_free(kb);
+ }
+
+ return ECORE_CALLBACK_RENEW;
+}
+
+
+static Eina_Bool _key_press_cb(void *data, int type, void *event)
+{
+ Evas_Event_Key_Down *ev = event;
+ int ret;
+ GSList *entry;
+ int *pid_data;
+ bundle *kb;
+
+ _D("Pressed");
+
+ if (!ev) {
+ _D("Invalid event object");
+ return ECORE_CALLBACK_RENEW;
+ }
+
+ entry = key_pid_list;
+ if (entry && entry->data) {
+ pid_data = (int *) entry->data;
+
+ kb = bundle_create();
+ bundle_add(kb, AUL_K_MULTI_KEY, ev->keyname);
+ bundle_add(kb, AUL_K_MULTI_KEY_EVENT, AUL_V_KEY_PRESSED);
+
+ ret = app_send_cmd(*pid_data, APP_KEY_EVENT, kb);
+
+ bundle_free(kb);
+ }
+
+ return ECORE_CALLBACK_RENEW;
+}
+
+static int __app_dead_handler(int pid, void *data)
+{
+ int ret;
+
+ ret = __unregister_key_event(pid);
+
+ return 0;
+}
+
+static void __ac_key_initailize()
+{
+ key_info.win = ecore_x_window_input_new(0, 0, 0, 1, 1);
+ if (!key_info.win) {
+ _D("Failed to create hidden window");
+ }
+
+ ecore_x_icccm_title_set(key_info.win, "acdaemon,key,receiver");
+ ecore_x_netwm_name_set(key_info.win, "acdaemon,key,receiver");
+ ecore_x_netwm_pid_set(key_info.win, getpid());
+
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_PLAYCD, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_STOPCD, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_PAUSECD, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_NEXTSONG, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_PREVIOUSSONG, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_REWIND, EXCLUSIVE_GRAB);
+ utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_FASTFORWARD, EXCLUSIVE_GRAB);
+
+ key_info.key_up = ecore_event_handler_add(ECORE_EVENT_KEY_UP, _key_release_cb, NULL);
+ if (!key_info.key_up) {
+ _D("Failed to register a key up event handler");
+ }
+
+ key_info.key_down = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _key_press_cb, NULL);
+ if (!key_info.key_down) {
+ _D("Failed to register a key down event handler");
+ }
+
+ aul_listen_app_dead_signal(__app_dead_handler, NULL);
+}
+
+static int __initialize()
{
int fd;
int r;
GPollFD *gpollfd;
GSource *src;
- r = rua_init();
-
- if (r == -1) {
- _D("[APP %d] rua init error");
- return AC_R_ERROR;
- }
-
fd = __create_server_sock(AUL_UTIL_PID);
src = g_source_new(&funcs, sizeof(GSource));
return AC_R_ERROR;
}
+ __ac_key_initailize();
+
return AC_R_OK;
}
-int main()
+int main(int argc, char *argv[])
{
-
- GMainLoop *mainloop;
int ret;
- mainloop = g_main_loop_new(NULL, FALSE);
+ ecore_init();
+ evas_init();
+ ecore_event_init();
+ ecore_x_init(NULL);
ret = ac_server_initailize();
ret = __initialize();
- g_main_loop_run(mainloop);
+ ecore_main_loop_begin();
return 0;
}
return 0;
}
+int app_launch_handler(int pid, void *data)
+{
+ printf("===> %s : %d\n", __FUNCTION__, pid);
+ return 0;
+}
+
__attribute__ ((visibility("default")))
int main(int argc, char **argv)
{
aul_listen_app_dead_signal(app_dead_handler, NULL);
+ aul_listen_app_launch_signal(app_launch_handler, NULL);
+
if (fork() == 0) {
printf("child test\n");
exit(0);
/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
+Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+PROPRIETARY/CONFIDENTIAL
+This software is the confidential and proprietary information of
+SAMSUNG ELECTRONICS ("Confidential Information"). You agree and acknowledge that
+this software is owned by Samsung and you
+shall not disclose such Confidential Information and shall
+use it only in accordance with the terms of the license agreement
+you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
+representations or warranties about the suitability
+of the software, either express or implied, including but not
+limited to the implied warranties of merchantability, fitness for
+a particular purpose, or non-infringement.
+SAMSUNG shall not be liable for any damages suffered by licensee arising out of or
+related to this software.
+*/
#include <glib.h>
#include "aul_dbus.h"
/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
+Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+PROPRIETARY/CONFIDENTIAL
+This software is the confidential and proprietary information of
+SAMSUNG ELECTRONICS ("Confidential Information"). You agree and acknowledge that
+this software is owned by Samsung and you
+shall not disclose such Confidential Information and shall
+use it only in accordance with the terms of the license agreement
+you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
+representations or warranties about the suitability
+of the software, either express or implied, including but not
+limited to the implied warranties of merchantability, fitness for
+a particular purpose, or non-infringement.
+SAMSUNG shall not be liable for any damages suffered by licensee arising out of or
+related to this software.
+*/
#include <stdio.h>
#include <dbus/dbus.h>
ecore_main_loop_quit();
}
-int resume_test()
+int open_test()
{
static int num = 0;
return aul_open_app(gargv[2]);
}
+int resume_test()
+{
+ static int num = 0;
+
+ printf("[aul_open_app %d test] %s \n", num++, gargv[2]);
+ return aul_resume_app(gargv[2]);
+}
+
int resume_pid_test()
{
static int num = 0;
int iterfunc(const aul_app_info *info, void *data)
{
printf("\t==========================\n");
- printf("\t pkg_name: %s\n", info->pkg_name);
+ printf("\t pkg_name: %s\n", info->appid);
printf("\t app_path: %s\n", info->app_path);
printf("\t running pid: %d\n", info->pid);
printf("\t==========================\n");
static int num = 0;
char buf[MAX_LOCAL_BUFSZ];
- printf("[aul_app_get_pkgname_bypid %d test] \n", num++);
+ printf("[aul_app_get_appid_bypid %d test] \n", num++);
pid = atoi(gargv[2]);
- if (aul_app_get_pkgname_bypid(pid, buf, sizeof(buf)) < 0)
+ if (aul_app_get_appid_bypid(pid, buf, sizeof(buf)) < 0)
printf("no such pkg by %d\n", pid);
else
printf("pkgname = %s, pid = %d\n", buf, pid);
static test_func_t test_func[] = {
{"launch",launch_test,"aul_launch_app test",
"[usage] launch <pkgname> <key1> <val1> <key2> <val2> ..."},
- {"open",resume_test,"aul_open_app test",
+ {"open",open_test,"aul_open_app test",
"[usage] open <pkgname>" },
+ {"resume",resume_test,"aul_resume_app test",
+ "[usage] resume <pkgname>" },
{"resume_pid",resume_pid_test,"aul_resume_pid test",
"[usage] resume_pid <pid>" },
{"term_pid", term_pid_test,"aul_terminate_pid test",
"[usage] is_run <pkgname>"},
{"getallpkg", get_allpkg_test, "aul_app_get_running_app_info test",
"[usage] getallpkg all"},
- {"getpkgpid", get_pkgpid_test, "aul_app_get_pkgname_bypid test",
+ {"getpkgpid", get_pkgpid_test, "aul_app_get_appid_bypid test",
"[usage] getpkgpid <pid>"},
{"open_file", open_file_test, "aul_open_file test",
/*
- * aul
- *
- * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
- *
- * Contact: Jayoun Lee <airjany@samsung.com>, Sewook Park <sewook7.park@samsung.com>, Jaeho Lee <jaeho81.lee@samsung.com>
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
+Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+PROPRIETARY/CONFIDENTIAL
+This software is the confidential and proprietary information of
+SAMSUNG ELECTRONICS ("Confidential Information"). You agree and acknowledge that
+this software is owned by Samsung and you
+shall not disclose such Confidential Information and shall
+use it only in accordance with the terms of the license agreement
+you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
+representations or warranties about the suitability
+of the software, either express or implied, including but not
+limited to the implied warranties of merchantability, fitness for
+a particular purpose, or non-infringement.
+SAMSUNG shall not be liable for any damages suffered by licensee arising out of or
+related to this software.
+*/
#include <stdio.h>
#include <glib.h>