Android: reading files currently stored by the OS (e.g. / dev / log / main, / dev / input / event *)

Files, such as /dev/log/main, /dev/input/event*are always stored by the OS. If you rolled the file, the end of the file will not be displayed, and new words will be added to your "cat" results continuously.

When I use new FileInputStreamto open such files, it always responds with a permitted permission (probably because they are used by other purposes, as I mentioned earlier). Permissions are not denied for type files /proc/cpuinfo.

Is there any way to read such files? I want to know if there is any user input from /dev/input/event*.

+3
source share
2 answers

Linux, Windows, , - . HTC Desire :

$ ls -l /dev/input
crw-rw---- root     input     13,  73 2012-03-02 19:19 event9
crw-rw---- root     input     13,  72 2012-03-02 19:19 event8
(etc)

, "root" "input" .

/proc/cpuinfo , , . , /proc : /proc , , .

0

Android /data/local root . , bin , BusyBox, ls -l , .

, , , - su bin, .

, , .

, .

https://github.com/jjNford/android-shell

+1

All Articles