Chinaunix首页 | 论坛 | 博客
  • 博客访问: 515322
  • 博文数量: 107
  • 博客积分: 927
  • 博客等级: 大尉
  • 技术积分: 865
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-13 17:50
文章分类

全部博文(107)

文章存档

2014年(2)

2013年(13)

2012年(16)

2011年(76)

分类: Java

2011-11-23 20:30:20

build.prop是Android系统中的一个重要的属性文件,它记录了Android系统的一些重要的设置信息,改变它能够取得一些意想不到的效果,但是也正是因为.prop的重要性,如果不明白具体的含义的话,绝对不要随便动它。
 
今天,我们来看看如何对build.prop文件进行修改,以达成省电和加快上网速度的效果。
 
注意:修改前请先备份好build.prop文件!
 
第一步:打开你的R.E,并改成读/写模式
第二步:进入system目录,找到build.prop
第三步:右击(长按这个文件),会弹出菜单
第四步:找到“以文本编辑器打开”
第五步:加入下面的行,并最后保存。
第六步:重启两次
 
调整build.prop文件以取得更好的信号和数据传输速度:
 
ro.ril.hsxpa=2
ro.ril.gprsclass=10 
ro.ril.hep=1
ro.ril.enable.dtm=1
ro.ril.hsdpa.category=10
ro.ril.enable.a53=1
ro.ril.enable.3g.prefix=1
ro.ril.htcmaskw1.bitmask=4294967295
ro.ril.htcmaskw1=14449
ro.ril.hsupa.category=5
 
X最大测试到10,超过硬件限制,数据在高速下更稳定? 估计是WCDMA才有用??
(我們的MB860 要用10的哈哈---ro.ril.hsdpa.category="X"
 
CAT Speeds
Cat 1 = 1.2 Mbit/s
Cat 2 = 1.2 Mbit/s
Cat 3 = 1.8 Mbit/s
Cat 4 = 1.8 Mbit/s
Cat 5 = 3.6 Mbit/s
Cat 6 = 3.6 Mbit/s
Cat 7 = 7.2 Mbit/s
Cat 8 = 7.2 Mbit/s
Cat 9 = 10.1 Mbit/s
Cat 10 = 14.0 Mbit/s
 
*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
 
小知识:什么是build.prop?
 
/system/build.prop 是一个属性文件,在Android系统中.prop文件很重要,记录了系统的设置和改变,类似於/etc中的文件。这个文件是如何生成的呢?
 
build/tools/buildinfo.sh 脚本就是专门用于生成build.prop文件
build/core/Makefile中使用build/tools/buildinfo.sh 脚本生成build.prop文件,
并把系统默认的system.prop以及定制的system.prop中的设定追加到build.prop文件中
后面还有一些设备相关的配置追加到build.prop
阅读(2170) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~