How to write data to a file outside sandbox

@jyijyi i run into same problem trying to write from sandboxed app to a file outside the sandbox.


            size_t len = strlen(logBuf);
   
            // write logbuf into file
            res = eFailed;
            const char* kTempPath = "/home/root/emmc/temp.log"; 
   
            _logFd = open(kTempPath, O_RDWR | O_APPEND | O_CREAT);
            LE_ERROR_IF(_logFd < 0, "couldn't write to temp file %s", kTempPath);
   
            if (_logFd >= 0)
            {
                write(_logFd, logBuf, len);
                close(_logFd);
                res = eOk;
            }

in the .adef file of the sandboxed app

     requires:
     {
         dir:
         {
             [wx] /home/root/emmc /home/root/
         }
     }

now i can write from sandboxed to the temp.log file outside of the sandbox.