Hi ALL:
The bluetooth turn on need to use wcnss_filter . When i got the wcnss_filter source file and push the file to /vendor/bin after compiled succuess. I found it can`t create file on /data directory . Only read permission access.
How to do it if I wan`t create file on any directory
init.freescale.rc
service start_hci_filter /vendor/bin/wcnss_filter
class late_start
user bluetooth
group bluetooth diag
disabled
wcnss_filter/main.c
ALOGV("%s: open: %s", __func__, PROC_PANIC_PATH);
fd_sysrq = open(PROC_PANIC_PATH, O_RDWR); ##PROC_PANIC_PATH set to /data/sysrq-trigger
if(fd_sysrq < 0) {
ALOGE("%s: open (%s) fail - %s (%d)", __func__,
PROC_PANIC_PATH, strerror(errno), errno);
return -1;
}