All the api you used in other places are `pkgmgrinfo_xxx`, withing that case, I'd prefer to use `pkgmgrinfo_appinfo_get_appid` here. 

And could you point me which git repo `pkgmgr_appinfo_get_appid` belong to? I go through review.tizen.org/gerrit/#/admin/projects/?filter=pkgmgr. I do not find this api.