VulpesOS/gaia/apps/gallery/test/images/push.sh
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

13 lines
476 B
Shell
Executable file

#!/bin/bash
# push the images to the sdcard of the attached device.
# push them in reverse numerical order and give them timestamps that
# are one second apart, so that when Gallery lists them from newest to
# oldest, we'll see image 01 first and image 65 last.
(( t = `date +%s` ))
for i in `ls ??.{jpg,png,gif,bmp} x??.{jpg,png,gif,bmp} | sort -r`; do
adb push $i /storage/sdcard0/TestImages/$i
(( t += 1 ))
adb shell touch -t $t /storage/sdcard0/TestImages/$i
done