We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1308269 commit b72b42bCopy full SHA for b72b42b
app/src/main/java/org/andbootmgr/app/DroidBootFlow.kt
@@ -261,9 +261,8 @@ private fun Flash(d: DroidBootFlowDataHolder) {
261
return@WizardTerminalWork
262
}
263
264
- val bytes = 4L * 1024L * 1024L * 1024L // 4 GB for now
265
- if (!Shell.cmd("fallocate -l $bytes" +
266
- vm.logic.abmSdLessBootsetImg.absolutePath).to(terminal).exec().isSuccess) {
+ val kilobytes = 4L * 1024L * 1024L // 4 GB for now
+ if (!Shell.cmd("dd if=/dev/zero bs=1024 count=$kilobytes of=${vm.logic.abmSdLessBootsetImg.absolutePath}").to(terminal).exec().isSuccess) {
267
terminal.add(vm.activity.getString(R.string.term_failed_fallocate))
268
269
0 commit comments