change recovery images to android with spinner
Also make writing the locale a bit more robust. Change-Id: I803dd0aa0b9d6661fad74ea13fb085682402323c
21
recovery.cpp
|
@ -277,6 +277,18 @@ finish_recovery(const char *send_intent) {
|
|||
}
|
||||
}
|
||||
|
||||
// Save the locale to cache, so if recovery is next started up
|
||||
// without a --locale argument (eg, directly from the bootloader)
|
||||
// it will use the last-known locale.
|
||||
if (locale != NULL) {
|
||||
LOGI("Saving locale \"%s\"\n", locale);
|
||||
FILE* fp = fopen_path(LOCALE_FILE, "w");
|
||||
fwrite(locale, 1, strlen(locale), fp);
|
||||
fflush(fp);
|
||||
fsync(fileno(fp));
|
||||
check_and_fclose(fp, LOCALE_FILE);
|
||||
}
|
||||
|
||||
// Copy logs to cache so the system can find out what happened.
|
||||
copy_log_file(TEMPORARY_LOG_FILE, LOG_FILE, true);
|
||||
copy_log_file(TEMPORARY_LOG_FILE, LAST_LOG_FILE, false);
|
||||
|
@ -286,15 +298,6 @@ finish_recovery(const char *send_intent) {
|
|||
chmod(LAST_LOG_FILE, 0640);
|
||||
chmod(LAST_INSTALL_FILE, 0644);
|
||||
|
||||
// Save the locale to cache, so if recovery is next started up
|
||||
// without a --locale argument (eg, directly from the bootloader)
|
||||
// it will use the last-known locale.
|
||||
if (locale != NULL) {
|
||||
FILE* fp = fopen(LOCALE_FILE, "w");
|
||||
fwrite(locale, 1, strlen(locale), fp);
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
// Reset to normal system boot so recovery won't cycle indefinitely.
|
||||
struct bootloader_message boot;
|
||||
memset(&boot, 0, sizeof(boot));
|
||||
|
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 7.8 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 9.8 KiB After Width: | Height: | Size: 7.4 KiB |
BIN
res/images/icon_installing_overlay08.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
res/images/icon_installing_overlay09.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
res/images/icon_installing_overlay10.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
res/images/icon_installing_overlay11.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
res/images/icon_installing_overlay12.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
BIN
res/images/icon_installing_overlay13.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
res/images/icon_installing_overlay14.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
res/images/icon_installing_overlay15.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
res/images/icon_installing_overlay16.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
res/images/icon_installing_overlay17.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
res/images/icon_installing_overlay18.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
res/images/icon_installing_overlay19.png
Normal file
After Width: | Height: | Size: 7.1 KiB |
BIN
res/images/icon_installing_overlay20.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
res/images/icon_installing_overlay21.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
res/images/icon_installing_overlay22.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
res/images/icon_installing_overlay23.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
res/images/icon_installing_overlay24.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
res/images/icon_installing_overlay25.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
res/images/icon_installing_overlay26.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
res/images/icon_installing_overlay27.png
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
res/images/icon_installing_overlay28.png
Normal file
After Width: | Height: | Size: 8.6 KiB |
BIN
res/images/icon_installing_overlay29.png
Normal file
After Width: | Height: | Size: 8.7 KiB |
BIN
res/images/icon_installing_overlay30.png
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
res/images/icon_installing_overlay31.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
res/images/icon_installing_overlay32.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
res/images/icon_installing_overlay33.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
res/images/icon_installing_overlay34.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
res/images/icon_installing_overlay35.png
Normal file
After Width: | Height: | Size: 7 KiB |
BIN
res/images/icon_installing_overlay36.png
Normal file
After Width: | Height: | Size: 7 KiB |
BIN
res/images/icon_installing_overlay37.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
res/images/icon_installing_overlay38.png
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
res/images/icon_installing_overlay39.png
Normal file
After Width: | Height: | Size: 8 KiB |
BIN
res/images/icon_installing_overlay40.png
Normal file
After Width: | Height: | Size: 8.1 KiB |
BIN
res/images/icon_installing_overlay41.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
res/images/icon_installing_overlay42.png
Normal file
After Width: | Height: | Size: 8 KiB |
BIN
res/images/icon_installing_overlay43.png
Normal file
After Width: | Height: | Size: 7.5 KiB |
BIN
res/images/icon_installing_overlay44.png
Normal file
After Width: | Height: | Size: 7.3 KiB |
BIN
res/images/icon_installing_overlay45.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
res/images/icon_installing_overlay46.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
res/images/icon_installing_overlay47.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
res/images/icon_installing_overlay48.png
Normal file
After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 592 B |
Before Width: | Height: | Size: 687 B After Width: | Height: | Size: 607 B |
Before Width: | Height: | Size: 661 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 665 B After Width: | Height: | Size: 568 B |
Before Width: | Height: | Size: 683 B After Width: | Height: | Size: 559 B |
Before Width: | Height: | Size: 676 B After Width: | Height: | Size: 577 B |
BIN
res/images/indeterminate07.png
Normal file
After Width: | Height: | Size: 590 B |
BIN
res/images/indeterminate08.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
res/images/indeterminate09.png
Normal file
After Width: | Height: | Size: 597 B |
BIN
res/images/indeterminate10.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
res/images/indeterminate11.png
Normal file
After Width: | Height: | Size: 603 B |
BIN
res/images/indeterminate12.png
Normal file
After Width: | Height: | Size: 612 B |
BIN
res/images/indeterminate13.png
Normal file
After Width: | Height: | Size: 616 B |
BIN
res/images/indeterminate14.png
Normal file
After Width: | Height: | Size: 608 B |
BIN
res/images/indeterminate15.png
Normal file
After Width: | Height: | Size: 627 B |
BIN
res/images/indeterminate16.png
Normal file
After Width: | Height: | Size: 617 B |
|
@ -75,10 +75,10 @@ ScreenRecoveryUI::ScreenRecoveryUI() :
|
|||
// that overrides Init() to set these values appropriately and
|
||||
// then call the superclass Init().
|
||||
animation_fps(20),
|
||||
indeterminate_frames(6),
|
||||
installing_frames(7),
|
||||
install_overlay_offset_x(13),
|
||||
install_overlay_offset_y(190) {
|
||||
indeterminate_frames(16),
|
||||
installing_frames(48),
|
||||
install_overlay_offset_x(65),
|
||||
install_overlay_offset_y(106) {
|
||||
pthread_mutex_init(&updateMutex, NULL);
|
||||
self = this;
|
||||
}
|
||||
|
|