android常用的小改动

1,android显示密度修改

在device/***/system.prop

ro.sf.lcd_density=240

                               320

 

2,android在ui中去除一些功能

frameworks/base/core/res/res/values/config.xml

 

3,android修改默认休眠时间

framesworks/base/packages/SettingProvider/res/values/default.xml

<integer> name="def_screen_off_timeout">60000</integer> 

 

4,修改默认时区

在device/***/system.prop

persist.sys.timezone=Asia/Shangha

 

5,修改默认语言

在device/***/*.mk

PRODUCT_LOCALES := zh_CN \
       en_US \
       zh_TW \
       en_GB \
       fr_FR \
       it_IT \
       cs_CZ \
       de_DE \
       da_DK \
       el_GR \
       es_ES \
       ko_KR \
       nl_NL \
       pt_BR \
       ru_RU \
       sv_SE \
       ar_EG \
       ar_IL

6,触摸屏配置文件的增加(当屏幕出现一个小圆圈,但是不能自由控制的时候,需要增加以下文件)

文件需要拷贝到out/target/product/***/system/usr/idc/

文件名和触摸屏驱动要关联如(ft5x0x_ts.idc)

文件内容如下:


# Basic Parameters
touch.deviceType = touchScreen
touch.orientationAware = 1

# Size
# Based on empirical measurements, we estimate the size of the contact
# using size = sqrt(area) * 43 + 0.
touch.size.calibration = area
touch.size.scale = 43
touch.size.bias = 0
touch.size.isSummed = 0

# Pressure
# Driver reports signal strength as pressure.
#
# A normal thumb touch typically registers about 80 signal strength
# units although we don't expect these values to be accurate.
touch.pressure.calibration = amplitude
touch.pressure.scale = 0.0125

# Orientation
touch.orientation.calibration = none

 7,蓝牙名字修改

在external/bluetooth/bluez/src/main.c中红色部分

ic void init_defaults(void)
{
 char prop_value[PROPERTY_VALUE_MAX];
 /* Default HCId settings */
 memset(&main_opts, 0, sizeof(main_opts));
 main_opts.mode = MODE_CONNECTABLE;
  main_opts.name = g_strdup(“android”)

 main_opts.discovto = DEFAULT_DISCOVERABLE_TIMEOUT;

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值