Modification of the default language
The language support list can be viewed in build/target/product/languages_full.mk.
Temporary modification method
-
System readable and writable
adb shell setprop persist.sys.root_access 3 adb root adb remount -
Modify the value of
ro.product.localein the/system/build.propfile (Android10 and above:/vendor/build.prop)- en-US: English
- zh-CN: Chinese
-
System restart
adb shell reboot
Code modification method
-
Modify the value of
PRODUCT_LOCALESinbuild/target/product/full_base.mk-
Chinese
PRODUCT_LOCALES := zh_CN
-
-
Delete build.prop in the out directory
rm out/target/product/PRODUCT_TYPE/obj/ETC/system_build_prop_intermediates/build.prop

