I have an application which consists of the native part and higher layer.
Therefore, it needs to be granted the root privilege to run some native functions.
As the article I post before, I added a piece of code taken from Bluez Utils(hidd.c).
if (bind(sk, (struct sockaddr *) &addr, sizeof(addr)) < 0) {
close(sk);
return -1;
}
该法典是由国家科索沃统计局制定的。
Unfortunately, It keeps returning -1 and errno is 13 which means Permission Denied.
Some experienced developers(Thank you here) mentioned about that the error happens because this application doesnt have enough permission.
“SHOULD NOT”就是这样的东西。
工艺过程 = 运行时间。
I think this means you possess a system permission but your application doesnt. (Let me know if I am wrong)
是否有办法给予谁以根本特权?
Any reply/clue/hint will be highly appreciated.
关于
Sam