4 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
8 * Jaewon Lim <jaewon81.lim@samsung.com>
9 * Woojin Jung <woojin2.jung@samsung.com>
10 * Juyoung Kim <j0.kim@samsung.com>
11 * Cherepanov Vitaliy <v.cherepanov@samsung.com>
12 * Nikita Kalyazin <n.kalyazin@samsung.com>
14 * Licensed under the Apache License, Version 2.0 (the "License");
15 * you may not use this file except in compliance with the License.
16 * You may obtain a copy of the License at
18 * http://www.apache.org/licenses/LICENSE-2.0
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an "AS IS" BASIS,
22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
28 * - Samsung RnD Institute Russia
33 #include <sys/types.h>
42 #define LAUNCH_APP_PATH "/usr/bin/launch_app"
43 #define DEBUG_LAUNCH_PRELOAD_PATH "/usr/bin/debug_launchpad_preloading_preinitializing_daemon"
44 #define LAUNCH_APP_NAME "launch_app"
45 #define WRT_LAUNCHER_PATH "/usr/bin/wrt-launcher"
46 #define WRT_LAUNCHER_NAME "wrt-launcher"
47 #define WRT_LAUNCHER_START "-s"
48 #define WRT_LAUNCHER_KILL "-k"
49 #define LAUNCH_APP_SDK "__AUL_SDK__"
50 #define DA_PRELOAD_EXEC "DYNAMIC_ANALYSIS"
51 #define DA_PRELOAD_TIZEN "LD_PRELOAD=/usr/lib/da_probe_tizen.so"
52 #define SHELL_CMD "/bin/sh"
55 uint64_t str_to_uint64(char* str);
56 int64_t str_to_int64(char* str);
58 int remove_indir(const char *dirname);
60 int kill_app(const char *binary_path);
62 int is_same_app_process(char* appPath, int pid);
64 int exec_app_tizen(const char *app_id, const char *exec_path);
65 int exec_app_common(const char* exec_path);
66 int exec_app_web(const char *app_id);
67 void kill_app_web(const char *app_id);
68 float get_uptime(void);