From 7bad7c4646ee8fd8d6e6ed0ffd3ddbb0c1b41a2f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 28 Apr 2015 17:24:24 -0700 Subject: Check all lseek calls succeed. Also add missing TEMP_FAILURE_RETRYs on read, write, and lseek. Bug: http://b/20625546 Change-Id: I03b198e11c1921b35518ee2dd005a7cfcf4fd94b --- tools/ota/check-lost+found.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/ota/check-lost+found.c b/tools/ota/check-lost+found.c index cbf792629..8ce12d39f 100644 --- a/tools/ota/check-lost+found.c +++ b/tools/ota/check-lost+found.c @@ -78,7 +78,7 @@ int main(int argc __attribute__((unused)), char **argv __attribute__((unused))) snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "dirty"); fd = open(fn, O_WRONLY|O_CREAT, 0444); if (fd >= 0) { // Don't sweat it if we can't write the file. - write(fd, fn, sizeof(fn)); // write, you know, some data + TEMP_FAILURE_RETRY(write(fd, fn, sizeof(fn))); // write, you know, some data close(fd); unlink(fn); } -- cgit v1.2.3 From cc79490fa83fe2dea6cbcd219751d346645ca7ec Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 22 Mar 2016 21:18:58 -0700 Subject: Move recovery_l10n here from development/tools. Bug: http://b/27837319 (cherry picked from commit 3d0153a807042dd1bdb7e9fd81d16429a205d9ce) Change-Id: Iec2cd10fa77ed1881d55ac4e0ab48e45172f0cf7 --- tools/recovery_l10n/Android.mk | 12 + tools/recovery_l10n/AndroidManifest.xml | 18 ++ tools/recovery_l10n/res/layout/main.xml | 31 ++ tools/recovery_l10n/res/values-af/strings.xml | 8 + tools/recovery_l10n/res/values-am/strings.xml | 8 + tools/recovery_l10n/res/values-ar/strings.xml | 8 + tools/recovery_l10n/res/values-az-rAZ/strings.xml | 8 + tools/recovery_l10n/res/values-bg/strings.xml | 8 + tools/recovery_l10n/res/values-bn-rBD/strings.xml | 8 + tools/recovery_l10n/res/values-ca/strings.xml | 8 + tools/recovery_l10n/res/values-cs/strings.xml | 8 + tools/recovery_l10n/res/values-da/strings.xml | 8 + tools/recovery_l10n/res/values-de/strings.xml | 8 + tools/recovery_l10n/res/values-el/strings.xml | 8 + tools/recovery_l10n/res/values-en-rAU/strings.xml | 8 + tools/recovery_l10n/res/values-en-rGB/strings.xml | 8 + tools/recovery_l10n/res/values-en-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-es-rUS/strings.xml | 8 + tools/recovery_l10n/res/values-es/strings.xml | 8 + tools/recovery_l10n/res/values-et-rEE/strings.xml | 8 + tools/recovery_l10n/res/values-eu-rES/strings.xml | 8 + tools/recovery_l10n/res/values-fa/strings.xml | 8 + tools/recovery_l10n/res/values-fi/strings.xml | 8 + tools/recovery_l10n/res/values-fr-rCA/strings.xml | 8 + tools/recovery_l10n/res/values-fr/strings.xml | 8 + tools/recovery_l10n/res/values-gl-rES/strings.xml | 8 + tools/recovery_l10n/res/values-gu-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-hi/strings.xml | 8 + tools/recovery_l10n/res/values-hr/strings.xml | 8 + tools/recovery_l10n/res/values-hu/strings.xml | 8 + tools/recovery_l10n/res/values-hy-rAM/strings.xml | 8 + tools/recovery_l10n/res/values-in/strings.xml | 8 + tools/recovery_l10n/res/values-is-rIS/strings.xml | 8 + tools/recovery_l10n/res/values-it/strings.xml | 8 + tools/recovery_l10n/res/values-iw/strings.xml | 8 + tools/recovery_l10n/res/values-ja/strings.xml | 8 + tools/recovery_l10n/res/values-ka-rGE/strings.xml | 8 + tools/recovery_l10n/res/values-kk-rKZ/strings.xml | 8 + tools/recovery_l10n/res/values-km-rKH/strings.xml | 8 + tools/recovery_l10n/res/values-kn-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-ko/strings.xml | 8 + tools/recovery_l10n/res/values-ky-rKG/strings.xml | 8 + tools/recovery_l10n/res/values-lo-rLA/strings.xml | 8 + tools/recovery_l10n/res/values-lt/strings.xml | 8 + tools/recovery_l10n/res/values-lv/strings.xml | 8 + tools/recovery_l10n/res/values-mk-rMK/strings.xml | 8 + tools/recovery_l10n/res/values-ml-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-mn-rMN/strings.xml | 8 + tools/recovery_l10n/res/values-mr-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-ms-rMY/strings.xml | 8 + tools/recovery_l10n/res/values-my-rMM/strings.xml | 8 + tools/recovery_l10n/res/values-nb/strings.xml | 8 + tools/recovery_l10n/res/values-ne-rNP/strings.xml | 8 + tools/recovery_l10n/res/values-nl/strings.xml | 8 + tools/recovery_l10n/res/values-pa-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-pl/strings.xml | 8 + tools/recovery_l10n/res/values-pt-rBR/strings.xml | 8 + tools/recovery_l10n/res/values-pt-rPT/strings.xml | 8 + tools/recovery_l10n/res/values-pt/strings.xml | 8 + tools/recovery_l10n/res/values-ro/strings.xml | 8 + tools/recovery_l10n/res/values-ru/strings.xml | 8 + tools/recovery_l10n/res/values-si-rLK/strings.xml | 8 + tools/recovery_l10n/res/values-sk/strings.xml | 8 + tools/recovery_l10n/res/values-sl/strings.xml | 8 + tools/recovery_l10n/res/values-sq-rAL/strings.xml | 8 + tools/recovery_l10n/res/values-sr/strings.xml | 8 + tools/recovery_l10n/res/values-sv/strings.xml | 8 + tools/recovery_l10n/res/values-sw/strings.xml | 8 + tools/recovery_l10n/res/values-ta-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-te-rIN/strings.xml | 8 + tools/recovery_l10n/res/values-th/strings.xml | 8 + tools/recovery_l10n/res/values-tl/strings.xml | 8 + tools/recovery_l10n/res/values-tr/strings.xml | 8 + tools/recovery_l10n/res/values-uk/strings.xml | 8 + tools/recovery_l10n/res/values-ur-rPK/strings.xml | 8 + tools/recovery_l10n/res/values-uz-rUZ/strings.xml | 8 + tools/recovery_l10n/res/values-vi/strings.xml | 8 + tools/recovery_l10n/res/values-zh-rCN/strings.xml | 8 + tools/recovery_l10n/res/values-zh-rHK/strings.xml | 8 + tools/recovery_l10n/res/values-zh-rTW/strings.xml | 8 + tools/recovery_l10n/res/values-zu/strings.xml | 8 + tools/recovery_l10n/res/values/strings.xml | 34 +++ .../src/com/android/recovery_l10n/Main.java | 319 +++++++++++++++++++++ 83 files changed, 1038 insertions(+) create mode 100644 tools/recovery_l10n/Android.mk create mode 100644 tools/recovery_l10n/AndroidManifest.xml create mode 100644 tools/recovery_l10n/res/layout/main.xml create mode 100644 tools/recovery_l10n/res/values-af/strings.xml create mode 100644 tools/recovery_l10n/res/values-am/strings.xml create mode 100644 tools/recovery_l10n/res/values-ar/strings.xml create mode 100644 tools/recovery_l10n/res/values-az-rAZ/strings.xml create mode 100644 tools/recovery_l10n/res/values-bg/strings.xml create mode 100644 tools/recovery_l10n/res/values-bn-rBD/strings.xml create mode 100644 tools/recovery_l10n/res/values-ca/strings.xml create mode 100644 tools/recovery_l10n/res/values-cs/strings.xml create mode 100644 tools/recovery_l10n/res/values-da/strings.xml create mode 100644 tools/recovery_l10n/res/values-de/strings.xml create mode 100644 tools/recovery_l10n/res/values-el/strings.xml create mode 100644 tools/recovery_l10n/res/values-en-rAU/strings.xml create mode 100644 tools/recovery_l10n/res/values-en-rGB/strings.xml create mode 100644 tools/recovery_l10n/res/values-en-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-es-rUS/strings.xml create mode 100644 tools/recovery_l10n/res/values-es/strings.xml create mode 100644 tools/recovery_l10n/res/values-et-rEE/strings.xml create mode 100644 tools/recovery_l10n/res/values-eu-rES/strings.xml create mode 100644 tools/recovery_l10n/res/values-fa/strings.xml create mode 100644 tools/recovery_l10n/res/values-fi/strings.xml create mode 100644 tools/recovery_l10n/res/values-fr-rCA/strings.xml create mode 100644 tools/recovery_l10n/res/values-fr/strings.xml create mode 100644 tools/recovery_l10n/res/values-gl-rES/strings.xml create mode 100644 tools/recovery_l10n/res/values-gu-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-hi/strings.xml create mode 100644 tools/recovery_l10n/res/values-hr/strings.xml create mode 100644 tools/recovery_l10n/res/values-hu/strings.xml create mode 100644 tools/recovery_l10n/res/values-hy-rAM/strings.xml create mode 100644 tools/recovery_l10n/res/values-in/strings.xml create mode 100644 tools/recovery_l10n/res/values-is-rIS/strings.xml create mode 100644 tools/recovery_l10n/res/values-it/strings.xml create mode 100644 tools/recovery_l10n/res/values-iw/strings.xml create mode 100644 tools/recovery_l10n/res/values-ja/strings.xml create mode 100644 tools/recovery_l10n/res/values-ka-rGE/strings.xml create mode 100644 tools/recovery_l10n/res/values-kk-rKZ/strings.xml create mode 100644 tools/recovery_l10n/res/values-km-rKH/strings.xml create mode 100644 tools/recovery_l10n/res/values-kn-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-ko/strings.xml create mode 100644 tools/recovery_l10n/res/values-ky-rKG/strings.xml create mode 100644 tools/recovery_l10n/res/values-lo-rLA/strings.xml create mode 100644 tools/recovery_l10n/res/values-lt/strings.xml create mode 100644 tools/recovery_l10n/res/values-lv/strings.xml create mode 100644 tools/recovery_l10n/res/values-mk-rMK/strings.xml create mode 100644 tools/recovery_l10n/res/values-ml-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-mn-rMN/strings.xml create mode 100644 tools/recovery_l10n/res/values-mr-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-ms-rMY/strings.xml create mode 100644 tools/recovery_l10n/res/values-my-rMM/strings.xml create mode 100644 tools/recovery_l10n/res/values-nb/strings.xml create mode 100644 tools/recovery_l10n/res/values-ne-rNP/strings.xml create mode 100644 tools/recovery_l10n/res/values-nl/strings.xml create mode 100644 tools/recovery_l10n/res/values-pa-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-pl/strings.xml create mode 100644 tools/recovery_l10n/res/values-pt-rBR/strings.xml create mode 100644 tools/recovery_l10n/res/values-pt-rPT/strings.xml create mode 100644 tools/recovery_l10n/res/values-pt/strings.xml create mode 100644 tools/recovery_l10n/res/values-ro/strings.xml create mode 100644 tools/recovery_l10n/res/values-ru/strings.xml create mode 100644 tools/recovery_l10n/res/values-si-rLK/strings.xml create mode 100644 tools/recovery_l10n/res/values-sk/strings.xml create mode 100644 tools/recovery_l10n/res/values-sl/strings.xml create mode 100644 tools/recovery_l10n/res/values-sq-rAL/strings.xml create mode 100644 tools/recovery_l10n/res/values-sr/strings.xml create mode 100644 tools/recovery_l10n/res/values-sv/strings.xml create mode 100644 tools/recovery_l10n/res/values-sw/strings.xml create mode 100644 tools/recovery_l10n/res/values-ta-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-te-rIN/strings.xml create mode 100644 tools/recovery_l10n/res/values-th/strings.xml create mode 100644 tools/recovery_l10n/res/values-tl/strings.xml create mode 100644 tools/recovery_l10n/res/values-tr/strings.xml create mode 100644 tools/recovery_l10n/res/values-uk/strings.xml create mode 100644 tools/recovery_l10n/res/values-ur-rPK/strings.xml create mode 100644 tools/recovery_l10n/res/values-uz-rUZ/strings.xml create mode 100644 tools/recovery_l10n/res/values-vi/strings.xml create mode 100644 tools/recovery_l10n/res/values-zh-rCN/strings.xml create mode 100644 tools/recovery_l10n/res/values-zh-rHK/strings.xml create mode 100644 tools/recovery_l10n/res/values-zh-rTW/strings.xml create mode 100644 tools/recovery_l10n/res/values-zu/strings.xml create mode 100644 tools/recovery_l10n/res/values/strings.xml create mode 100644 tools/recovery_l10n/src/com/android/recovery_l10n/Main.java (limited to 'tools') diff --git a/tools/recovery_l10n/Android.mk b/tools/recovery_l10n/Android.mk new file mode 100644 index 000000000..937abd1e1 --- /dev/null +++ b/tools/recovery_l10n/Android.mk @@ -0,0 +1,12 @@ +# Copyright 2012 Google Inc. All Rights Reserved. + +LOCAL_PATH := $(call my-dir) + +include $(CLEAR_VARS) + +LOCAL_PACKAGE_NAME := RecoveryLocalizer +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := $(call all-java-files-under, src) + +include $(BUILD_PACKAGE) diff --git a/tools/recovery_l10n/AndroidManifest.xml b/tools/recovery_l10n/AndroidManifest.xml new file mode 100644 index 000000000..8c51a4e08 --- /dev/null +++ b/tools/recovery_l10n/AndroidManifest.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + diff --git a/tools/recovery_l10n/res/layout/main.xml b/tools/recovery_l10n/res/layout/main.xml new file mode 100644 index 000000000..0900b1102 --- /dev/null +++ b/tools/recovery_l10n/res/layout/main.xml @@ -0,0 +1,31 @@ + + + + + +