summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/src/PrivacyManagerClient.cpp5
-rw-r--r--packaging/privacy-manager-server.manifest2
2 files changed, 5 insertions, 2 deletions
diff --git a/client/src/PrivacyManagerClient.cpp b/client/src/PrivacyManagerClient.cpp
index dca2592..6979767 100644
--- a/client/src/PrivacyManagerClient.cpp
+++ b/client/src/PrivacyManagerClient.cpp
@@ -71,12 +71,15 @@ PrivacyManagerClient::addAppPackagePrivacyInfo(const std::string pkgId, const st
int
PrivacyManagerClient::removeAppPackagePrivacyInfo(const std::string pkgId)
{
+#ifdef __READ_DB_IPC__
int result;
m_pSocketClient->connect();
m_pSocketClient->call("removePrivacyInfo", pkgId, &result);
m_pSocketClient->disconnect();
-
return result;
+#else
+ return PrivacyDb::getInstance()->removeAppPackagePrivacyInfo(pkgId);
+#endif
}
int
diff --git a/packaging/privacy-manager-server.manifest b/packaging/privacy-manager-server.manifest
index cb3db80..831e525 100644
--- a/packaging/privacy-manager-server.manifest
+++ b/packaging/privacy-manager-server.manifest
@@ -7,7 +7,7 @@
</provide>
</define>
<request>
- <domain name="privacy-manager-server" />
+ <domain name="privacy-manager" />
</request>
<assign>
<filesystem path="/usr/bin/privacy-manager-server" label="privacy-manager::daemon" exec_label="privacy-manager::daemon"/>