-
Notifications
You must be signed in to change notification settings - Fork 86
[A15] Fix android studio emulator scripts #960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: android15
Are you sure you want to change the base?
Conversation
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
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
$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
|
||
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
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
As discussed in #864.
I also slightly updates the scripts descriptions in
DEVELOPMENT.md
.