4 ms·
DAYS=(some number); cd /place-to-save-stuff ; adb -e shell "cd /sdcard/; find . -mtime -${DAYS} | cpio -o" | cpio -idmuv # rooting phone not required
by t067633 2y ago
DAYS=(some number);
cd /place-to-save-stuff ;
adb -e shell "cd /sdcard/; find . -mtime -${DAYS} | cpio -o" | cpio -idmuv # rooting phone not required
- koolba 2y ago> find . -mtime -${DAYS} | cpio -o That will break if a file name has new lines.
- grakker 2y agoIs that really an issue? I just haven't seen a file name with a newline in it. If so, couldn't it just be run with -o0?
- ur-whale 2y agoHow does that reach into app folders where adb has no permissions ?
- iggldiggl 2y ago/sdcard is just the user-visible internal storage (the same thing that shows up via MTP if you connect via USB), and ADB can access that fine.