The locales are merged with following policy. - Don't change UI locale. - Don't add unsupported locales. - Don't add duplicated locales. Bug: 35391006 Test: com.android.providers.settings.SettingsHelperTest Test: Did the following tests manually. 1. Login with Google account during SUW. 2. Set locale to "zh-TW,en-US" 3. adb shell bmgr backupnow com.android.providers.settings 4. fastboot flash userdata && fastboot reboot 5. adb reboot bootloader 6. fastboot flash userdata && fastboot reboot 7. Choose "Japanese" as the first menu on the SUW. 8. Backup from cloud with logging in to the Google account. 9. After compete SUW, verify the device locale is "ja-JP,zh-TW,en-US" Change-Id: I1e6c7ba5b7abb6bde8b01ce0f647c04a5caa81a6
26 lines
723 B
Makefile
26 lines
723 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Note we statically link several classes to do some unit tests. It's not accessible otherwise
|
|
# because this test is not an instrumentation test. (because the target runs in the system process.)
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files) \
|
|
../src/com/android/providers/settings/SettingsState.java \
|
|
../src/com/android/providers/settings/SettingsHelper.java
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
|
|
|
|
LOCAL_JAVA_LIBRARIES := legacy-android-test
|
|
|
|
LOCAL_PACKAGE_NAME := SettingsProviderTest
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
|
|
|
include $(BUILD_PACKAGE)
|