This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Permission for mux drivers

Dear All,

              I am using beagle bone with android ics , connected with the gsm and i have created the mux drivers say for example(/dev/pts/*) . And i have mentioned the permission like chown radio system /dev/pts/* in init.rc

But still the permission is not taking place. The log is shown below,

I/RILR ( 70): CPort::OpenPort() ATTEMPT NUMBER 1
I/RILR ( 70): CFile::Open() - Enter
I/RILR ( 70): CFile::Open() : pszFileName=[/dev/pts/0]
I/RILR ( 70): CFile::Open() : fIsSocket=[0]
I/RILR ( 70): CFile::Open() : fExists=[1] fFile=[0]
E/RILR ( 70): CFile::Open() : ERROR : open failed, m_file=[0xffffffff], [-]
E/RILR ( 70): CFile::Open() : ERROR : errno=[13],[Permission denied]
I/RILR ( 70): CFile::Open() - Exit m_fInitialized=[0]
I/RILR ( 70): RIL_Init,init not finish:0


If i give the permission manually means it connects to the ril and everything works fine.

Is that anyway to set the permission in init.rc automatically after the mux creation. And also i have connected my gsm to the device using cp210x converter (/dev/ttyUSB0).

               Faster replys will help me to alot.

                                                 Thanks in advance.

  • Are the device nodes created after android booted up?

    Then you need to use ueventd.am335xevm.rc to set the relevant permissions. Setting permissions in in init.rc works only for existing device nodes and not any new ones created later.

  • Hello Sir,

                     Thanks for reply, i have changed it in ueventd.am335xevm.rc also. 

    My changes are like this

    /dev/ttyUSB0 0660 radio radio (for the cp210x convertor through which i have connected with my gsm) 

    and

    /dev/pts/* 0660 radio radio (for the mux drivers)

    By doing this enough steps i cannot set the permission for mux. I need to do manually by typing every time like this

    chown radio system /dev/pts/*. Then only it connects with the ril. 

                        Any suggestions.... Faster reply will help me for the better result.

                                         Thanks in advance.

  • kala yoganandhan said:

    /dev/pts/* 0660 radio radio (for the mux drivers)

    By doing this enough steps i cannot set the permission for mux. I need to do manually by typing every time like this

    chown radio system /dev/pts/*. Then only it connects with the ril. 

    I am not familiar with setting up RIL, but I see that your ueventd.rc and command-line settings seem different.

    Please check if you are setting the proper owner and group with appropriate rights in the ueventd.rc.