[Feature] Changed application info database.
[Verification] TCT passrate is 100%.
Change-Id: Icc7056977181602d9419b90ea17f3f96e707c4ba
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
}
pkgmgrinfo_appinfo_h pkgmgrinfo_appinfo = nullptr;
- int ret = pkgmgrinfo_appinfo_get_appinfo(app_id.c_str(), &pkgmgrinfo_appinfo);
+
+ // if app information is hold in global database:
+ // /usr/dbspace/.pkgmgr_parser.db below line should be used
+ //int ret = pkgmgrinfo_appinfo_get_appinfo(app_id.c_str(), &pkgmgrinfo_appinfo);
+
+ // if app information is hold in users database like:
+ // /home/app/.applications/dbspace/.pkgmgr_parser.db below line should be used
+ int ret = pkgmgrinfo_appinfo_get_usr_appinfo(app_id.c_str(), getuid(), &pkgmgrinfo_appinfo);
return (ret == PMINFO_R_OK);
}