I have a C++ program which configures interfaces and adds or removes
routes, I implemented those calls through ioctl calls (SIOCADDRT,
SIOCSIFADDR).
I compiled the program as lib and run it from java. At beginning of
the C++ program i change user to root (my devices is rooted) and then
create thread for the main proc which creates some other threads.
When some thread tries to set interface or add/remove routes it
receives error 13 - permission denied - although it has root
permission.
I set permission in AndroidManifest.xml file.
How can i resolve the permission problem through the C++ code?????
10x
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
second I changed to root by calling system("su"); at the beginning of C++ code before i create the main thread but it doesn't work the permission doesn't changed.If i run user process can i create thread that has root permission?