Skip to content

Conversation

baschi29
Copy link

As discussed in #864.

I also slightly updates the scripts descriptions in DEVELOPMENT.md.

@baschi29 baschi29 changed the title [A15] Fix android studio emulator scrips [A15] Fix android studio emulator scripts Oct 11, 2025
@grote grote requested a review from stevesoltys October 13, 2025 11:58
echo "Waiting for emulator to boot..."
$ADB wait-for-device shell "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"
$ADB wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'

Check warning

Code scanning / Shellcheck (reported by Codacy)

Expressions don't expand in single quotes, use double quotes for that. Warning

Expressions don't expand in single quotes, use double quotes for that.
echo "Waiting for emulator to boot..."
$ADB wait-for-device shell "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"
$ADB wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'

Check warning

Code scanning / Shellcheck (reported by Codacy)

Expressions don't expand in single quotes, use double quotes for that. Warning

Expressions don't expand in single quotes, use double quotes for that.
$ADB reboot
$ADB wait-for-device shell "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"
$ADB wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
$ADB root

Check warning

Code scanning / Shellcheck (reported by Codacy)

Expressions don't expand in single quotes, use double quotes for that. Warning

Expressions don't expand in single quotes, use double quotes for that.

echo "Downloading and extracting test backup to '/sdcard/seedvault_baseline'..."
com1='while [[ -z $('
com2=' shell mount | grep "/system " | grep "(rw,") ]]; do sleep 1; done;'

Check warning

Code scanning / Shellcheck (reported by Codacy)

Expressions don't expand in single quotes, use double quotes for that. Warning

Expressions don't expand in single quotes, use double quotes for that.
com2=' shell mount | grep "/system " | grep "(rw,") ]]; do sleep 1; done;'
timeout 180s bash -c "${com1}${ADB}${com2}";
$ADB wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'

Check warning

Code scanning / Shellcheck (reported by Codacy)

Expressions don't expand in single quotes, use double quotes for that. Warning

Expressions don't expand in single quotes, use double quotes for that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant