+
+extern "C" int PKGMGR_MDPARSER_PLUGIN_UNINSTALL(const char *pkgId, const char *appId, GList *list)
+{
+ return 0;
+}
+
+extern "C" int PKGMGR_MDPARSER_PLUGIN_REMOVED(const char *pkgId, const char *appId, GList *list)
+{
+ return PKGMGR_MDPARSER_PLUGIN_UPGRADE(pkgId, appId, list);
+}
+
+extern "C" int PKGMGR_MDPARSER_PLUGIN_CLEAN(const char *pkgId, const char *appId, GList *list)
+{
+ // Can be multiple apps in one package
+ if (aotPluginFinished) {
+ _INFO("AOT plugin already finished(CLEAN)");
+ return 0;
+ }
+ aotPluginFinished = true;
+
+ finalizeNICommon();
+ return 0;
+}
+
+extern "C" int PKGMGR_MDPARSER_PLUGIN_UNDO(const char *pkgId, const char *appId, GList *list)
+{
+ // Can be multiple apps in one package
+ if (aotPluginFinished) {
+ _INFO("AOT plugin already finished(UNDO)");
+ return 0;
+ }
+ aotPluginFinished = true;
+
+ finalizeNICommon();
+ return 0;
+}