Application of the root permissions, use JNI C still cannot create the system di

Such as the title, I now java code to get root permission

Then I create a file in JNI C in the root directory
But the return value every time is -1, that is to say creation failed, don't know why? ?

Started by Eve at December 11, 2016 - 4:51 PM

Some people say that the internet. Although the application made root permissions, but do not represent my java or C code can use root permissions. If this is true, then how can I use C code root permissions.

Posted by Eve at December 14, 2016 - 5:14 PM