20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文
2023/11/29 10:46


适用于SOC以及系统版本:
RK3399:Android10/11/12
RK3568:Android11/12
RK3588:Android12


Andorid12的默认语言为英语(美国),一般看得懂,但是还是有些菜单看得不舒服。
在大陆的人,我们还是用简体中文吧!


百度:
RK3399 默认中文语言菜单

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第1张图片

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第2张图片

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第3张图片


方法一:
https://blog.csdn.net/caoshunxin01/article/details/121080142
安卓源码层设置默认语言为中文
杭城江城子 于 2021-11-01 14:54:49 发布


方案一:
修改android/build/make/tools/buildinfo.sh,追加如下一行代码:
echo "persist.sys.locale=zh-Hans-CN"

方案二:
修改android/build/make/target/product/languages_full.mk文件中PRODUCT_LOCALES变量,注意zh_CH放在第一位,如:

PRODUCT_LOCALES += zh_CN zh_TW en_XC
修改android/build/make/target/product/full.mk文件,在此文件中调用languages_full.mk

$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)

$(call inherit-product, $(SRC_TARGET_DIR)/product/emulator.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic/device.mk)
 
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
 
# Enable dynamic partition size
PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
 
# Overrides
PRODUCT_NAME := full
PRODUCT_DEVICE := generic
PRODUCT_BRAND := Android
PRODUCT_MODEL := AOSP on ARM Emulator


Z:\rk_android12_220722\build\target\product\languages_full.mk
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This is a build configuration that contains the default list of languages,
# as well as the en_XC pseudo-locale, which is useful for localization test
# builds.

$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
PRODUCT_LOCALES += en_XC

修改为:
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_default.mk)
PRODUCT_LOCALES += zh_CN en_XC

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第4张图片

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第5张图片


方法二:
https://www.jianshu.com/p/d7ef3f13dfb8
[rk3399][Android 6.0] 系统默认语言为简体中文

福later  IP属地: 上海  2018.06.12 15:04:43

build/target/product/full_base.mk 文件
修改:PRODUCT_LOCALES := zh_CN


# Additional settings used in all AOSP builds
PRODUCT_VENDOR_PROPERTIES := \
    ro.config.ringtone?=Ring_Synth_04.ogg \
    ro.config.notification_sound?=pixiedust.ogg

# Put en_US first in the list, so make it default.
PRODUCT_LOCALES := en_US

修改为:
# Additional settings used in all AOSP builds
PRODUCT_PROPERTY_OVERRIDES := \
    ro.config.ringtone=Ring_Synth_04.ogg \
    ro.config.notification_sound=pixiedust.ogg

# Put en_US first in the list, so make it default.
PRODUCT_LOCALES := zh_CN en_US

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第6张图片20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第7张图片


方法三:
【将 zh_CN \ 挪到最前面】

Z:\rk_android12_220722\build\make\target\product\languages_default.mk
#
# Copyright (C) 2009 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

# This is a build configuration that just contains a list of languages, with
# en_US set as the default language.
PRODUCT_LOCALES := \
        zh_CN \
        en_US \
        af_ZA \
        am_ET \
        ar_EG \
        ar_XB \
        as_IN \
        az_AZ \
        be_BY \
        bg_BG \
        bn_BD \
        bs_BA \
        ca_ES \
        cs_CZ \
        da_DK \
        de_DE \
        el_GR \
        en_AU \
        en_CA \
        en_GB \
        en_IN \
        en_XA \
        es_ES \
        es_US \
        et_EE \
        eu_ES \
        fa_IR \
        fi_FI \
        fr_CA \
        fr_FR \
        gl_ES \
        gu_IN \
        hi_IN \
        hr_HR \
        hu_HU \
        hy_AM \
        in_ID \
        is_IS \
        it_IT \
        iw_IL \
        ja_JP \
        ka_GE \
        kk_KZ \
        km_KH \
        kn_IN \
        ko_KR \
        ky_KG \
        lo_LA \
        lt_LT \
        lv_LV \
        mk_MK \
        ml_IN \
        mn_MN \
        mr_IN \
        ms_MY \
        my_MM \
        nb_NO \
        ne_NP \
        nl_NL \
        or_IN \
        pa_IN \
        pl_PL \
        pt_BR \
        pt_PT \
        ro_RO \
        ru_RU \
        si_LK \
        sk_SK \
        sl_SI \
        sq_AL \
        sr_Latn_RS \
        sr_RS \
        sv_SE \
        sw_TZ \
        ta_IN \
        te_IN \
        th_TH \
        tl_PH \
        tr_TR \
        uk_UA \
        ur_PK \
        uz_UZ \
        vi_VN \
        zh_HK \
        zh_TW \
        zu_ZA \

20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第8张图片20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第9张图片20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第10张图片20231129将RK3399的挖掘机开发板在Andorid12系统下的默认语言改为中文_第11张图片

你可能感兴趣的:(杂质,杂质)