Tizen OS Upgrade Progress Interface
From Tizen Wiki
※ When you develop OS upgrade UI app, you can read the current progress with these interfaces
RO progress
- Current progress(%)
- File path : /tmp/upgrade/ro_progress
- Value
- 0~100 : current progress(%)
- -1 : Request to terminate RO progress UI app
void print_ro_progress(void) { int progress = -1; FILE *fp = NULL; fp = fopen("/tmp/upgrade/ro_progress", "r"); if (fp) { if (fscanf(fp, "%d", &progress) < 1) LOG("Failed to read RO upgrade progress"); } if (progress == -1) LOG("RO progress is finished"); else LOG("RO progress : %d percent", progress); }
RW progress
- The number of executed RW upgrade scripts
- File path : /tmp/upgrade/progress
- The number of RW upgrade scripts
- File path : /tmp/upgrade/total
void print_rw_progress(void) { int executed = -1; int total = -1; FILE *fp = NULL; fp = fopen("/tmp/upgrade/progress", "r"); if (fp) { if (fscanf(fp, "%d", &executed) < 1) LOG("Failed to read the number of executed scripts"); } fp = fopen("/tmp/upgrade/total", "r"); if (fp) { if (fscanf(fp, "%d", &total) < 1) LOG("Failed to read the number of RW upgrade scripts"); } LOG("RW progress : %d/%d", executed, total); }
Reference UI
- ※ Caution : Manufacturer is required to make own update system ui
- Binary name : /usr/bin/fota_gui
- Git : profile/common/apps/native/firmware-update-system-ui