-#if 0
-// callback function of "pkgmgrinfo_appinfo_metadata_filter_foreach"
-static int appAotCb(pkgmgrinfo_appinfo_h handle, void *userData)
-{
- char *pkgId = NULL;
- int ret = 0;
- ret = pkgmgrinfo_appinfo_get_pkgid(handle, &pkgId);
- if (ret != PMINFO_R_OK) {
- _SERR("Failed to get pkgid");
- return -1;
- }
-
- NIOption **pOptions = (NIOption**)userData;
- if (isReadOnlyPkg(pkgId) && (*pOptions)->flags & NI_FLAGS_SKIP_RO_APP) {
- return 0;
- }
-
- return removeAndCreateNI(pkgId, *pOptions);
-}
-
-// callback function of "pkgmgrinfo_pkginfo_metadata_filter_foreach"
-static int pkgAotCb(pkgmgrinfo_pkginfo_h handle, void *userData)
-{
- char *pkgId = NULL;
- int ret = 0;
- NIOption **pOptions = (NIOption**)userData;
-
- ret = pkgmgrinfo_pkginfo_get_pkgid(handle, &pkgId);
- if (ret != PMINFO_R_OK) {
- _SERR("Failed to get pkgid");
- return -1;
- }