Can we read a NAMED PIPE created in native library .so ( Android) file from a Android Java Application

Viewed 17

I have created a named pipe in Native Android code.

    char * logcatsocfile = "/sdcard/myfifo";
         //setup NAMED pipe
            int freturn = -1;
            freturn = mkfifo(logcatsocfile, 0666);
            if(freturn<0){
                LOGE("mkfifo failed");
                return 0;
            }
  1. mkfifo.txt - file is created

  2. I am using execv( ) call to write logs into this pipe.

  3. Can I read the contents of this mkfifo.txt( named pipe) from Java Android application?

0 Answers
Related