return AMD_CYNARA_RET_UNKNOWN;
}
+static bool CheckScreenConnectorRequest(amd_request_h req) {
+ bundle* kb = amd_request_get_bundle(req);
+ if (kb == nullptr) {
+ _E("Invalid request");
+ return false;
+ }
+
+ tizen_base::Bundle b(kb, false, false);
+ std::string port_name = b.GetString(AUL_K_RPC_PORT);
+ if (port_name == "ScreenConnectorInput")
+ return true;
+
+ return false;
+}
+
static int CynaraCheckerPrepareStub(amd_cynara_caller_info_h info,
amd_request_h req, void* data) {
int ret = VerifyPrivilegeCheckBypass(req);
if (ret != AMD_CYNARA_RET_UNKNOWN)
return ret;
+ if (CheckScreenConnectorRequest(req)) {
+ return amd_cynara_simple_checker(info, req,
+ const_cast<char*>(PRIVILEGE_WIDGET_VIEWER));
+ }
+
ret = amd_cynara_simple_checker(info, req,
const_cast<char*>(PRIVILEGE_APPMANAGER_LAUNCH));
if (ret <= AMD_CYNARA_RET_DENIED)