Modify the default time zone and time zone .....
First version:
In the source code directory build/target/board/generic, modify the file system. Prop and add the following at the end of the file:
ro.product.locale.language=zhro.product.locale.region=CNpersist.sys.timezone=Asia/Shanghai
After modification:
## system.prop for generic sdk #rild.libpath=/system/lib/libreference-ril.sorild.libargs=-d /dev/ttyS0ro.product.locale.language=zhro.product.locale.region=CNpersist.sys.defaulttimezone=Asia/Shanghai
On the simulator, make the entire project and import the simulator (command emulator-system. IMG-data userdata. IMG-ramdisk. IMG!
Note:
1. Create an emulator on your disk and configure the environment variables.
2. system. IMG userdata. IMG ramdisk. IMG is a compiled file in the out directory.
3. CD source code/out/××, and then execute emulator-system. IMG-data userdata. IMG-ramdisk. IMG.
Version 2:
In the source code directory/build/tools, modify buildinfo. SH and add:
echo"ro.product.locale.language=zh"echo"ro.product.locale.region=CN"echo"persist.sys.timezone=Asia/Shanghai"
On the simulator, make the entire project and import the simulator (command emulator-system. IMG-data userdata. IMG-ramdisk. IMG!
Version 3:
Go to the build/target/product directory and modify the product_property_overrides value of the file core. mk.
For example, to change to the default Chinese character, add:
"/Persist. SYS. Language = zh/persist. SYS. Country = cn"
The added statement is as follows:
Product_property_overrides: =/
Ro.config.icationication_sound=onthehunt.ogg/
Ro.config.alarm_alertw.alarm_classic.ogg/persist. SYS. Language = zh/persist. SYS. Country = Cn
If you only modify the default languageVersion 4:
Modify build/target/product/Sim. mk and set product_locales: = en_us zh_cn
Change to product_locales: = zh_cn en_us
Versions 3 and 4 can be implemented on hardware devices. Simulator, no test!
Recommended posts:
Http://topic.csdn.net/u/20111207/21/34fa9e98-c657-42de-99a9-f10241a36c28.html#replyachor
If you have a better solution, please leave a message!