I'm trying to make a sparse file on android. For this I'm using Android Terminal Emulator. I have installed Busybox so I can use the dd command. Other commands like truncate aren't installed. My question: does anyone know how to make a sparse file with android terminal?
I've tried some commands I found on internet:
dd if=/dev/zero of=/sdcard/file.img bs=1 count=0 seek="wanted size"
But no file would be made. I also tried:
dd if=/dev/zero of=/sdcard/file.img bs="wanted size" count=1.
But I would get the following error:
dd "path of if" invalid argument
Does anyone know how to get it right?