I found a version of findutils compiled for Android here
I did the following.
- I copied the find binary to my phone
- I moved it to /data/local/tmp/find
chmod +x /data/local/tmp/find
- Ran the find command I wished to run
(I am rooted, but I did not use the
su command here, so I'm not certain if this requires root or not. I have an unrooted phone I can test this on later to see if it's still possible in those circumstances.)
I made a shell script to assist with my ultimate goal.
cp /sdcard/find.bin /data/local/tmp/find.bin > /dev/null 2>&1
chmod +x /data/local/tmp/find.bin > /dev/null 2>&1
/data/local/tmp/find.bin "$1" -type f -printf 'touch -t %TY%Tm%Td%TH%TM '"'"'%p'"'"'\n'
rm /data/local/tmp/find.bin > /dev/null 2>&1
EDIT: This appears to work on an unrooted phone as well!!!!
EDIT2: While this step works, you need to be rooted to change the modification time with touch, so this isn't useful for what would come next.