Languages

Menu
Sites
Language
How to set privilege on system daemon or framework services?

I tried to make a brand-new fraemwork service.

(Tizen 2.2)

On the service, which works as daemon, I want to launch some applications.

So I tried to launch an application using AppManager on the daemon.

 

When I triggered my function, I met the below logs.

01-01 10:45:39.785  1475  1475 E Tizen::App: result Tizen::App::AppManager::LaunchApplication(const Tizen::App::AppId&, Tizen::App::AppManager::LaunchOption)(215) > [E_PRIVILEGE_DENIED] The application does

 

I guess this is occured because my daemon has not a privilege to launch an application.

But I did not find how to set the privilege("http://tizen.org/privilege/application.launch") for my daemon which does not have manifest.xml file.

The daemon has only my_daemon.manifest file on the project folder.

 

What can I do for solving the issue?

Responses

4 Replies
Shinjae Lee

Hi. As far as I understood, Tizen 2.2 Native framework is deprecated. Thus if you are trying to develop Tizen Native Application, it will be better to move Tizen 2.3 Native Framework. 

Kim Jungwon

Could you let me know how to declare the previliges on a system daemon on Tize 2.3?

Dongeup Ham

Privileges are desiged for the applications not system.

So you need to use the smack directly.

Bogon Kim

Smack manifest guide

https://wiki.tizen.org/wiki/Security/Application_installation_and_Manifest