build.prop参数详解和部分修改

来源:互联网 发布:数据恢复软件比较 编辑:程序博客网 时间:2024/04/30 03:51
 

build.prop参数详解和部分修改


build.prop是Android系统中的一个重要的属性文件,它记录了Android系统的一些重要的设置信息,类似於/etc中的文件,改变它能够取得一些意想不到的效果,但是也正是因为.prop的重要性,如果不明白具体的含义的话,绝对不要随便动它。
build/tools/buildinfo.sh 脚本就是专门用于生成build.prop文件
build/core/Makefile中使用build/tools/buildinfo.sh 脚本生成build.prop文件,
并把系统默认的system.prop以及定制的system.prop中的设定追加到build.prop文件中
后面还有一些设备相关的配置追加到build.prop
今天,我们来看看如何对build.prop文件进行修改,以达成省电和加快上网速度的效果。
注意:修改前请先备份好build.prop文件!
第一步:打开你的R.E,并改成读/写模式
第二步:进入system目录,找到build.prop
第三步:右击(长按这个文件),会弹出菜单
第四步:找到“以文本编辑器打开”
第五步:加入下面的行,并最后保存。
第六步:重启两次

*Note*
You can play with the "ro.ril.hsxpa=2" & "ro.ril.gprsclass=10" values depending on your location. The hsxpa Values range from 0-2 and the gprsclass is either 10,11 or 12. IF YOU GET WORSE SPEEDS..JUST CHANGE THE "GPRSCLASS" TO 12
To save power while phone is asleep
//在手机休眠时更省电
ro.ril.disable.power.collapse=1
To make the phone ring faster when dialing out...
//使电话拨出时更快接通
ro.telephony.call_ring.delay=1000
To make UI more responsive
//使界面反应更快
windowsmgr.max_events_per_sec=150
To save battery by decreasing the amount of time Wifi looks for an access point
//使WIFI在查找接入点时更省电
wifi.supplicant_scan_interval=150
**Now wifi will scan once every 1.5 minutes when not around a known location instead of once every minute which will save battery.**
//现在wifi将每隔1.5分钟查找一次接入点而不是每分钟查一次。当你在一个没有已知接入点的地方。(估计是,如果你开WIFI了,如果没有连接到接入点,查找接入点的时间间隔改成了一分半钟)
Change the Dalvik VM heap size
(??? heapsize是栈的大小,是不是影响速度??)
dalvik.vm.heapsize=32m
**If on CM7 then you can just go into CM setting/Proformace to change this.**
To enable the hard key lights to stay on while the screen is on and not timeout
(保持屏幕常亮。。。。汗。。)
ro.mot.buttonlight.timeout=0
**Try disabling BLN if your having trouble getting this to work**
To make the phone come off of the "black screen" in the middle of, or the end of phone calls when you pull the phone away from your face
(在通话中或通话结束时,当电话离开脸时,隔多久??重新亮屏?)
mot.proximity.delay=150
***May kill the dialer***
To disable usb debugging popup
(禁止USB调试提示)
persist.adb.notify=0
**Some devs already have this disabled, or have an app to disable it.**
To give your phone an HD effect fitting a little more on the screen, look for this in you current build.prop and change the 240 to...
(给你的电话一个宽屏感觉??)
ro.sf.lcd_density=X (225 or 230)
。。。。。。这样修改后,手机可能启动用时会长一点。。。。。
**Phone will take a little more time booting when changing this value**
To enable Stagefright..Helps stream Video/Music Faster but may not let you watch recorded videos...
(使能stagefrigh,视频和音乐会更快?但可能不能看你自己录的视频了。。)
(Press the enter key after every line typed)
media.stagefright.enable-player=true
media.stagefright.enable-meta=true
media.stagefright.enable-scan=true
media.stagefright.enable-http=true
To enable hardware acceleration where the GPU controls the UI instead of the CPU, giving u a much better UI experience....
(使能硬件加速,用GPU而不是CPU,给你一个更好的体验)
debug.sf.hw=1
。。。你可能会也可能不会注意到性能上有改变,因为vibrant有一个很好的cpu,哈哈
**You may or may not notice a difference because the Vibrant has a very good processor thats capable of handling the UI very well**
To turn off the bootanimation speeding up the boot time....
debug.sf.nobootanimation=1
To enable the menu button too unlock the phone...
ro.config.hw_menu_unlockscreen=true
To stop the phone from waking up when pressing the volume key...
ro.config.hwfeature_wakeupkey=0

ro.build.version.sdk=8?
2.2ROM
ro.build.version.release=2.2.1?
ROM版本 可以修改成你的版本
ro.build.date=三 12月 15 20:41:26 CST 2010?
时区时间CST可以代表4个时区,这个百度一下
ro.build.host=HPA008?
这个好像是机器的CID代码一样,不确定,修改后关系不大
ro.product.model=Desire HD?
型号
ro.build.description=1.75.1400.4 CL303327 release-keys?
内部版本号,ROM的作者信息都可以修改
ro.sf.lcd_density=240?
这个好像和一些软件全屏有关系,调小有些软件不能全屏好像是
# Default network type.?
默认网络类型,貌似是这样
# 0 =< WCDMApreferred.
ro.telephony.default_network=0
wifi.interface=eth0
wifi.supplicant_scan_interval=15?
WIFI扫描时间
ro.product.cpu.abi=armeabi-v6j?
这个应该是CPU的型号
wifi.supplicant_scan_interval=30?
这是WIFI扫描时间
settings.display.autobacklight=1?
自动背光默认为开
ro.sf.lcd_density=160?
打开软件全屏大小,不建议改这个,原版界面的,改了你会后悔的。
dalvik.vm.execution-mode=int:jit?
打开超频模式
dalvik.vm.heapsize=32m?
虚拟内存
ro.config.msg_notification=F1_New_SMS.ogg?
默认信息通知铃声
ro.setupwizard.mode=OPTIONAL?
这里是第一次开机的向导,optional是可选!ENABLED为显示,DISABLED为禁止
ro.semc.timescape_keys=Sony_Ericsson_Xperia
debug.sf.nobootanimation=0?
这里是控制开机动画的,0为关闭,1为开启!
ro.config.hwfeature_wakeupkey=3
ro.config.hw_menu_unlockscreen=true
——这两个是控制唤醒屏幕的设置,3应该是菜单键
ro.setupwizard.mode=DISABLED?
开机出现的帐号设置向导,ENABLED为显示,DISABLED为禁用,
OPTIONAL为可选
ro.config.ringtone=QuietlyBrilliant.mp3?
默认来电铃声
ro.config.notification_sound=Zeta.mp3?
默认通知铃声
ro.config.alarm_alert=NewDay.mp3?
默认闹钟铃声
ro.config.hwfeature_wakeupkey=3,修改完成后重启手机,就可用电源键、确认键、挂机键、接听键唤醒屏幕
ro.sf.lcd_density=240?
这个是DPI,sense rom根本不要改,改了会后悔的,cm系列rom可以改成200甚至180
ro.build.date=三 12月 15 20:41:26 CST 2010?
这个根本不用管,这个是官方ROM的做成的日期
ro.product.locale.language=zh?
刷机后默认语言
ro.product.locale.region=CN?
刷机后启动的默认语言?
这个不是刷机后的默认语言,这个只是强制区域,
也就是出现第一次锁屏还没有连接基站的时候,强制设置区域为zh_CN
刷机后默认语言是在system/customize/default.xml里面改的
ro.config.hw_temperature_warn=true?
这就是论坛上那个温度检测关机的开关
ro.config.lowbattery_shutdown=1?
低电量自动关机
ro.config.hwfeature_wakeupkey=0?
ro.config.endkeybehavior=true?
关机键行为开启
ro.config.haptic_disable=true?
关闭触感反应
view.touch_slop=15?
(触摸屏灵敏度,数值越大越灵敏)
view.minimum_fling_velocity=25?
(滑动速度)
view.scroll_friction=0.008?
(滑动误差)
# RIL specific configuration.?
(特定设置)
red]ro.ril.def.agps.mode=2 (打开AGPS服务支持,可改为ro.ril.def.agps.mode=0?
改后能省电但GPS定位速度会变慢)
ro.product.multi_touch_enabled=true?
支持多点触摸
ro.product.max_num_touch=2?
触摸点为最多2点!

ro.ril.hsdpa.category :
1 = 1.2 Mbit/s
2 = 1.2 Mbit/s
3 = 1.8 Mbit/s
4 = 1.8 Mbit/s
5 = 3.6 Mbit/s
6 = 3.6 Mbit/s
7 = 7.2 Mbit/s
8 = 7.2 Mbit/s
9 = 10.1 Mbit/s
10 = 14.0 Mbit/s
11 = 0.9 Mbit/s
12 = 1.8 Mbit/s
13 = 17.6 Mbit/s
14 = 21.1 Mbit/s
15 = 23.4 Mbit/s
16 = 27.9 Mbit/s
19 = 35.3 Mbit/s
20 = 42.2 Mbit/s
21 = 23.4 Mbit/s
22 = 27.9 Mbit/s
23 = 35.3 Mbit/s
24 = 42.2 Mbit/s
25 = 46.8 Mbit/s
26 = 55.9 Mbit/s
27 = 70.6 Mbit/s
28 = 84.4 Mbit/s
HSDPA(High Speed Downlink Packet Access):高速下行分组接入

ro.ril.hsupa.category :
1 = 0.73 Mbit/s
2 = 1.46 Mbit/s
3 = 1.46 Mbit/s
4 = 2.93 Mbit/s
5 = 2.00 Mbit/s
6 = 5.76 Mbit/s
7 = 11.5 Mbit/s
HSUPA (high speed uplink packet access):高速上行链路分组接入

ro.ril.hsxpa : 3G数据标准选择
0 – UMTS r99
1 – HSDPA
2 – HSDPA/HSUPA

ro.ril.enable.amr.wideband:
0 – 关闭对AMR wideband /HD Audio的支持
1 – 打开对AMR wideband /HD Audio的支持
? ? AMR WideBand,语音带宽范围,全称为“Adaptive Multi-rate - Wideband”,即“自适应多速率宽带编码”,
采样频率为16kHz,是一种同时被国际标准化组织 ITU-T和3GPP采用的宽带语音编码标准,也称 为G722.2标准。
AMR-WB提供语音带宽范围达到50~7000Hz,用户可主观感受到话音比以前更加自 然、舒适和易于分辨。
AMR-WB应用于EDGE、3G可充分体现其优势。足够的传输带宽保证AMR-WB可采用从6.6kb/s到23.85kb/s共九种编码,语音质量超越PSTN固定电话 。
PS:这里需要注意的是有些版本的Radio不支持AMR wideband,那样就算设置为1也支持不了这功能。

wifi.supplicant_scan_interval:
wifi无线局域网扫描间隔时间,单位为秒。
调大这个值可节约耗电。

dalvik.vm.heapsize=24m:
虚拟内存大小,单位为Mb,调大这个可以略微提高性能,对于某些FC问题确实有用。
在hdpi下,不设置成24m以上,就会导致系统无法启动。

ro.ril.def.agps.mode:AGPS模式选择
0 – 关闭AGPS服务支持。可以节约耗电和网络流量,不过会延长GPS定位时间。
1 –
2 – 打开AGPS服务支持。

0 0