Fix getting AppInfo 08/271108/3
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 15 Feb 2022 09:42:32 +0000 (18:42 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Wed, 16 Feb 2022 00:50:53 +0000 (00:50 +0000)
commit4399ee118005ee96750ccc8ae2ca3a7b75b0fb08
tree6cc98bb54d50fbbfd87b049b2d74a64d19d1d227
parent87025dd2d6a8bd460d1fa3b5797bb7fee2d93c9e
Fix getting AppInfo

If the pid parameter is equal to the current process ID, AppInfo::Get()
tries to get a package ID and a root path using pre-initialized information.
If calling aul_app_get_pkgid_bypid() or calling aul_get_preinit_root_path()
is failed, the method tries to get the application information using pkgmgr-info API.

Change-Id: I43c2261dc4822c66b61cccd2c7db066858c19709
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
aul/app_info/app_info.cc