Skip to content

Commit

Permalink
only when setup
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jul 31, 2024
1 parent c9e0df0 commit fd64096
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/assets/Scripts
2 changes: 1 addition & 1 deletion app/src/main/java/org/andbootmgr/app/DroidBootFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private fun Flash(vm: WizardActivityState) {
if (vm.deviceInfo.postInstallScript) {
terminal.add(vm.activity.getString(R.string.term_device_setup))
vm.logic.runShFileWithArgs(
"BOOTED=${vm.deviceInfo.isBooted(vm.logic)} " +
"BOOTED=${vm.deviceInfo.isBooted(vm.logic)} DOSETUP=true " +
"${File(vm.logic.assetDir, "Scripts/install/${vm.deviceInfo.codename}.sh").absolutePath} real"
).to(terminal).exec()
}
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/org/andbootmgr/app/FixDroidBootFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ private fun Flash(vm: WizardActivityState) {
terminal.add(if (e.message != null) e.message!! else "(null)")
terminal.add(vm.activity.getString(R.string.term_consult_doc))
}
if (vm.deviceInfo.postInstallScript) {
terminal.add(vm.activity.getString(R.string.term_device_setup))
vm.logic.runShFileWithArgs(
"BOOTED=${vm.deviceInfo.isBooted(vm.logic)} DOSETUP=false " +
"${File(vm.logic.assetDir, "Scripts/install/${vm.deviceInfo.codename}.sh").absolutePath} real"
).to(terminal).exec()
}
terminal.add(vm.activity.getString(R.string.term_success))
vm.activity.runOnUiThread {
vm.btnsOverride = true
Expand Down

0 comments on commit fd64096

Please sign in to comment.