Filtering for preloaded app
authorHyunwoo Kim <hwlove.kim@samsung.com>
Mon, 6 May 2013 11:16:57 +0000 (20:16 +0900)
committerHyunwoo Kim <hwlove.kim@samsung.com>
Mon, 6 May 2013 11:17:03 +0000 (20:17 +0900)
Change-Id: If7252c63520f731ce5ac08a6b408cdf51e352730
Signed-off-by: Hyunwoo Kim <hwlove.kim@samsung.com>
common/src/PrivacyDb.cpp

index 0d81d4c..8709203 100644 (file)
@@ -288,8 +288,14 @@ PrivacyDb::getAppPackagesbyPrivacyId(std::string privacyId, std::list < std::pai
                
                const char* pPkgId =  reinterpret_cast < const char* > (sqlite3_column_text(pStmt.get(), 0));
                bool isEnabled = sqlite3_column_int(pStmt.get(), 1) > 0 ? true : false;
-               LOGD("result : %s - %d", pPkgId, isEnabled);
-               list.push_back( std::pair <std::string, bool >(std::string(pPkgId), isEnabled) );
+        std::string pkgId = std::string(pPkgId);
+               if (isFilteredPackage(pkgId))
+               {
+                       LOGD("%s is Filtered", pPkgId);
+                       continue;
+               }
+
+               list.push_back( std::pair <std::string, bool >(pkgId, isEnabled) );
        }
 
        LOGI("leave");
@@ -321,4 +327,4 @@ PrivacyDb::getInstance(void)
        LOGI("leave");
 
        return m_pInstance;
-}
\ No newline at end of file
+}