title: Android: Reading files currently held by the OS (e.g., /dev/log/main, /dev/input/event*)
body: <p>Files like <code>/dev/log/main</code>,  <code>/dev/input/event*</code> are always hold by the OS. If you cat the file , the end of the file will not show and new words will be appended to your "cat" results continuously.</p>
  
  <p>When I use <code>new FileInputStream</code> to open such files, it always responds with permission denied (probably because they are being used by other purposes as I mentioned before).
  Permission is not denied for files like <code>/proc/cpuinfo</code>.</p>
  
  <p>Is there any way to read such files? I want to know whether there is any user input  from  <code>/dev/input/event*</code>.</p>