+ if (!strcmp(key, "start") || !strcmp(key, "error") || !strcmp(key, "end")) {
+ uid_t uid = pkgmgr_installer_get_uid(pi_);
+ tizen_base::Bundle b({
+ { AUL_K_PKGID, pkgid },
+ { AUL_K_PACKAGETYPE, type },
+ { AUL_K_PKG_EVENT_NAME, key },
+ { AUL_K_PKG_EVENT_RESULT, value }
+ });
+
+ if (aul_package_pre_event_send(uid, b.GetHandle()) != AUL_R_OK)
+ LOG(ERROR) << "aul_package_pre_event_send() is failed";
+ }
+