If amd is ready, the tool should send the launch request to amd.
Before getting the application information from the pkgmgr db, the tool
checks whether amd is ready or not.
Change-Id: I1eaed48176bc0fdd2fa83dcb0cedc7671c6518b6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
bool debug;
bool web_debug;
bool sync;
+ bool amd_ready;
};
enum command_e {
char buf[PATH_MAX];
int retry_count = 0;
+ if (!access(PATH_AMD_READY, F_OK)) {
+ arg->amd_ready = true;
+ return 0;
+ }
+
if (__set_appinfo_for_launchpad(arg->b, arg->appid, arg->uid) < 0) {
fprintf(stderr, "Failed to set appinfo. appid(%s), uid(%u)\n",
arg->appid, arg->uid);
{
int fd;
- if (!access(PATH_AMD_READY, F_OK)) {
+ if (arg->amd_ready) {
bundle_del(arg->b, AUL_K_FAST_LAUNCH);
return __cmd_start_run(arg);
}