Commit graph

4 commits

Author SHA1 Message Date
Peter Wu
05564d5ffe dump-file.py: allow skipping part of a file
Reading a file (or partition like /dev/block/mmcblk0p1) from an offset
was requested in #26.
2017-12-01 03:57:11 +00:00
Peter Wu
39c9872ca0 dump-file.py: allow custom size
Files like /proc/kmsg are reported as zero size. It can be useful to
assume a larger size to avoid empty output.

Some devices are locked down and do not support all shell commands. If
you know the size (or just want to try to read 1 byte), then you can
avoid executing shell commands.
2017-12-01 03:46:44 +00:00
tuxuser
47b3f41f5d dump_file: Switch from "stat" to "ls" for getting filesize - recent firmware prevents using "stat", "ls" however is supported on old and new firmware. 2017-11-25 23:45:05 +01:00
Peter Wu
6c1f8e78c9 dump-file.py: added
Also adds G2 and G4 from @invisiblek to the tested devices list.
2016-01-03 22:22:38 +01:00