Languages

Menu
Sites
Language
Tizen .NET use Process.Start

Hi, I am working with Tizen 4 on RPI3 and in general I was able to run my C# sample without to much issue.

My Sample is loading plugin using dlopen/dlsym running local socket and using Shared memory and semaphore and everything run fine on my device without root access. 

Now I would like to push my experiment and use the Process.Start to run some command, but each time I try I have some permission denied.

Do you know if I need to add some privilege inside the manifest in order to run some command ?

Thanks

 

 

 

 

 

 

Responses

4 Replies
Armaan-Ul- Islam

As far as I'm concerned Tizen .NET Documentations didn't specified about any special access/privilege to Use System.Diagnostics.Process.

 

# When you are working with Tizen Emulators, you can gain root access.

   - Keep the emulator running

   - Run sdb command from [ cmd > cd <tizen-studio> dir > tools > sdb ] or [Visual Studio > Tools Tab > Tizen > Tizen SDB Command Prompt]

   - Enter Command: sdb root on

 

# You can check the List of Privileges with description in tizen-manifest.xml > Privileges Tab, Check Out If the Process you are using require any of them.

Anthony Liot

Hi,

You right there is no need of specific privileges. I was able to run my executable by adding it inside the /usr/bin folder.

My goal was to try to embedded my exec inside my app (inside the lib folder), and be able to lauch it using the global path name of the app.

I was able to call some libraries using dlopen dlsym inside the folde but process failed each time.


 

 

 

 

 

Armaan-Ul- Islam

Interesting, How are you reaching the lib folder/directory of your application?

For example, I used app_get_resource_path() or app_get_data_path() in Tizen Native Application. For Tizen Web application tizen.filesystem.resolve("wgt-package") to resolve my application directory from storage. And Had added filesystem.read and filesystem.write privilege. Also Let me know If I'm getting it wrong.

Anthony Liot

Hi Armaan,

In order to access the lib folder I am using an hardcoded path including the package name, something like :

/opt/usr/globalapps/<package_name>/lib/, if your tpk contrains lib (*.so) all of them will be copied inside the folder. 

I was able to access to all the lib here and use dlopen on it, without adding any privilege.

The only privilege was for an acces to the media because I am using LocalSocket and the only place I was able to use it was inside the /home/owner/media

Tony