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?