From: Sungbae Yoo Date: Thu, 15 Dec 2016 06:57:59 +0000 (+0900) Subject: Remove dbus request for mobileap-agent X-Git-Tag: accepted/tizen/3.0/common/20161221.180410~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51148f7583b74b4119e9a822cb5e63bece18c13e;p=platform%2Fcore%2Fsecurity%2Fdevice-policy-manager.git Remove dbus request for mobileap-agent Signed-off-by: Sungbae Yoo Change-Id: I055f4aeb95439b4e7cca3132a4b7e020868cc494 --- diff --git a/server/bluetooth.cpp b/server/bluetooth.cpp index c721500..bb7746d 100644 --- a/server/bluetooth.cpp +++ b/server/bluetooth.cpp @@ -38,12 +38,6 @@ ((enable) ? BLUETOOTH_DPM_BT_ALLOWED : \ BLUETOOTH_DPM_BT_RESTRICTED) - -#define MOBILEAP_INTERFACE \ - "org.tizen.MobileapAgent", \ - "/MobileapAgent", \ - "org.tizen.tethering" - namespace DevicePolicyManager { namespace { @@ -233,15 +227,6 @@ int BluetoothPolicy::setTetheringState(bool enable) if (!SetPolicyAllowed(context, "bluetooth-tethering", enable)) { return 0; } - - dbus::Connection &systemDBus = dbus::Connection::getSystem(); - systemDBus.methodcall(MOBILEAP_INTERFACE, - "change_policy", - -1, - "", - "(sb)", - "bluetooth-tethering", - enable); } catch (runtime::Exception& e) { ERROR("Failed to change bluetooth tethering state"); return -1; diff --git a/server/restriction.cpp b/server/restriction.cpp index 3a11f6d..4ffc16e 100644 --- a/server/restriction.cpp +++ b/server/restriction.cpp @@ -35,11 +35,6 @@ "org.tizen.system.deviced.SysNoti", \ "control" -#define MOBILEAP_INTERFACE \ - "org.tizen.MobileapAgent", \ - "/MobileapAgent", \ - "org.tizen.tethering" - namespace DevicePolicyManager { namespace { @@ -175,15 +170,6 @@ int RestrictionPolicy::setUsbTetheringState(bool enable) if (!SetPolicyAllowed(context, "usb-tethering", enable)) { return 0; } - - dbus::Connection &systemDBus = dbus::Connection::getSystem(); - systemDBus.methodcall(MOBILEAP_INTERFACE, - "change_policy", - -1, - "", - "(sb)", - "usb-tethering", - enable); } catch (runtime::Exception& e) { ERROR("Failed to change USB tethering state"); return -1; diff --git a/server/wifi.cpp b/server/wifi.cpp index ad32357..41b4961 100644 --- a/server/wifi.cpp +++ b/server/wifi.cpp @@ -37,11 +37,6 @@ "/net/netconfig/network", \ "net.netconfig.network" -#define MOBILEAP_INTERFACE \ - "org.tizen.MobileapAgent", \ - "/MobileapAgent", \ - "org.tizen.tethering" - namespace DevicePolicyManager { namespace { @@ -156,15 +151,6 @@ int WifiPolicy::setHotspotState(bool enable) if (!SetPolicyAllowed(context, "wifi-hotspot", enable)) { return 0; } - - dbus::Connection &systemDBus = dbus::Connection::getSystem(); - systemDBus.methodcall(MOBILEAP_INTERFACE, - "change_policy", - -1, - "", - "(sb)", - "wifi-hotspot", - enable); } catch (runtime::Exception& e) { ERROR("Failed to change Wi-Fi hotspot state"); return -1;