Locking launching of widget during reinstallation/uninstallation
[Issue#] N_SE-55833
[Problem] Installer should block launching widget during installation
[Cause] N/A
[Solution] Reinstallation/deinstallation is making exclusive file lock on /tmp/.dpl_lock.[tizenId] file.
Lock of this file is used to check by wrt-client if launching is possible.
[Remarks]
- lock is destroyed if wrt-installer finished (destrcutor of std::unique_ptr<>)
- lock is destroyed if wrt-installer crashed,
- if file is already lock that means:
- another installation of this widget is proceeded,
- wrt-client check if it can launch -> wait for freeing
[SCMRequest] This requires wrt-commons change: "[DPL] FileLock"
[Verification] N/A
- try to run widget while widget is being resinstalled -> widget should not run (insert sleep code after kill runnign app),
- try to run widget while widget is being uninstalled -> widget should not run,
- install two different apps similtonously (both should be installed and able to be run)
Change-Id: Iedf3f954536d35085ae90eb3a58386abcab7f9ac