I want to create files with different sizes on an Android device.
The one approach I have already tried was to create dummy files using fsutil and push it to devices.
Is there any way to achieve similar result with a command inside adb shell?
I want to create files with different sizes on an Android device.
The one approach I have already tried was to create dummy files using fsutil and push it to devices.
Is there any way to achieve similar result with a command inside adb shell?
Copyright © 2021 Jogjafile Inc.
Yes, you can do it using
ddcommand. I am not pretty sure it's available in your device. It works fine in my device, you can give a try.In your host which connects with your Android device, with
adbdebug turn on, using the following command to create dummy file.The command above will get data from
/dev/zeroand output to/data/local/tmp/test.img(a public writable directory for Android device), adjustbsandcountvalue in your situation.