Languages

Menu
Sites
Language
Tizen permission to change how the file system.

The Z1 device 

Path : /usr/share/emoticons/ (read-only)

1. sdb root on (X)

2. Push the file (X)

can not obtain root privileges.

 

The Emulator

Path : /usr/share/emoticons/ (read-only)

1. sdb root on (O) -> cp /opt/usr/org.tizen.test/shared/res/emoticons /usr/share/emoticons (O)

2. Push the file (O)

can obtain root privileges.

 

☆ I can't get root to the code.

1. popen("cp /opt/usr/org.tizen.test/shared/res/emoticons /usr/share/emoticons", "r") (X)

2. popen("su") or popen("mount -o remount,rw /usr/share/emoticons") (X)

3. file_copy(char*, char*) (X)

How can I gain root privileges by code?

 

 

 

 

 

 

Responses

2 Replies
Jeongsu Kim

basically, root privilege is not available for users.

why do you need root privilege? why do you want to copy files to that directory?

 

시언 박

Hi ^^ 

I want to change the system font. ( in Application )

In order to change the system font is put the file in the following path.

PATH : /usr/share/fonts  

 

TEST : sdb root on 

before : TizenSans.TTF

After : HMFMOLD.TTF

 

The SDB can have 'root' privileges, but the Application is 'app' privileges. So, permission denied.

Is there another way?