diff --git a/recovery.cpp b/recovery.cpp
index 53fc938..47334b6 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -139,7 +139,7 @@ static const int BATTERY_READ_TIMEOUT_IN_SEC = 10;
static const int BATTERY_OK_PERCENTAGE = 20;
static const int BATTERY_WITH_CHARGER_OK_PERCENTAGE = 15;
static constexpr const char* RECOVERY_WIPE = "/etc/recovery.wipe";
-static constexpr const char* DEFAULT_LOCALE = "en-US";
+static constexpr const char* DEFAULT_LOCALE = "zh";
// We define RECOVERY_API_VERSION in Android.mk, which will be picked up by build system and packed
// into target_files.zip. Assert the version defined in code and in Android.mk are consistent.
@@ -1683,7 +1683,7 @@ int main(int argc, char **argv) {
if (locale.empty()) {
if (has_cache) {
- locale = load_locale_from_cache();
+ locale = DEFAULT_LOCALE;//load_locale_from_cache();//从cache中读取值
}
if (locale.empty()) {
02-27
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
07-13
898
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountBlack.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交