找回密码
 请使用中文注册

手机号码,快捷登录

手机号码,快捷登录

自定义的诱惑:教你修改build.prop的常用配置

2023-5-5 23:14| 发布者: 开心| 查看: 21| 评论: 0

阅读字号:

摘要:   在Android系统中有一个类似Windows系统注册表的文件build.prop。 位置在system/build.prop,这个文件内定义了系统初始(或永久)的一些参数属性、功能的开放等。通过调 ...
      在Android系统中有一个类似Windows系统注册表的文件build.prop。 位置在system/build.prop,这个文件内定义了系统初始(或永久)的一些参数属性、功能的开放等。通过调整/增加参数可以达到较调系统性能偏重点和附加功能开启的作用,如:更改dpi、更改版本号、更改网络首选项等等。

图1 教你修改build.prop的常用配置
  注意:有些厂商的定制系统修改了一些原生的配置信息路径,也就是说对于部分OS来说,有些修改是不生效的。
  这里以CM为例详解:
  begin build properties (开始设置系统性能)  # autogenerated by buildinfo.sh (通过设置形成系统信息)  ro.build.id=GRI40 (版本ID)  ro.build.display.id=GRJ22 (版本号)  ro.build.version.incremental=eng.buildbot.20110619.060228 (版本增量)  ro.build.version.sdk=10 (sdk版本)  ro.build.version.codename=REL (版本代号)  ro.build.version.release=2.3.4 (Android 2.3.4系統无需修改,也可改为3.0装装B)  ro.build.date=Sun Jun 19 06:02:58 UTC 2011 (制作者制作的时间,可修改2011年X月X日 某某某制作)  ro.build.date.utc=0  ro.build.type=user  ro.build.user=buildbot  ro.build.host=bb1  ro.build.tags=test-keys  ro.product.model=HTC Wildfire (HTC内部手机代号也就是手机名)  ro.product.brand=htc_wwe (手机品牌,改为中国山寨机)  ro.product.name=htc_buzz (手机正式名称)  ro.product.device=buzz (采用的设备,改为China G8)  ro.product.board=buzz (采用的处理器,改为China 800.8Ghz)  ro.product.cpu.abi=armeabi-v6j (cpu的版本)  ro.product.cpu.abi2=armeabi (cpu的品牌)  ro.product.manufacturer=HTC (手机制造商,改为中国智造)  ro.product.locale.language=en (手机默认语言,把en改为zh)  ro.product.locale.region=US (地区语言,美国毛多呀美国,干掉US改为CN)  ro.wifi.channels= (WIFI连接的渠道)  ro.board.platform=msm7k (主板平台)  # ro.build.product is obsolete;use ro.product.device (旧代码ro.build.product,使用代码ro.product.device)  ro.build.product=buzz (建立产品)  # Do not try to parse ro.build.description or .fingerprint (不要试图修改description和fingerprint)  ro.build.description=passion-user 2.3.3 GRI40 102588 release-keys (用户的KEY)  ro.build.fingerprint=google/passion/passion:2.3.3/GRI40/102588:user/release-keys (机身码的啥玩意)  # end build properties (性能代码完毕)  #  # system.prop for buzz (系统技术支持由BUZZ提供)  #  # Density in DPI of the LCD of this board. This is used to scale the UI (高密度的液晶的DPI板。这是用来大规模UI的)  # appropriately. If this property is not defined, the default value is 160 dpi. (appropriately.如果这个属性没有定义,缺省值是160 dpi的分辨率)  ro.sf.lcd_density=120 (显示屏分辨率,数值越大分辨率越底)  # View configuration for QVGA. (屏幕的设置)  view.fading_edge_length=8  view.touch_slop=15 (触摸屏灵敏度,数值越大越灵敏)  view.minimum_fling_velocity=25 (滑动速度)  view.scroll_friction=0.008 (滑动误差)  # RIL specific configuration. (特定设置)  rild.libpath=/system/lib/libhtc_ril.so  ro.ril.ecc.HTC-WWE=999  ro.ril.ecc.HTC-ELL=92,93,94  ro.ril.enable.a52.HTC-ITA=1  ro.ril.enable.a53.HTC-ITA=1  ro.ril.enable.a52=0  ro.ril.enable.a53=1  ro.ril.vmail.23415=1571,BT  ro.ril.hsdpa.category=8 (hsdpa全称High Speed Downlink Packet Access中文意思:高速下行分组接入,设置的数越大传输越快)  ro.ril.htcmaskw1.bitmask=4294967295  ro.ril.htcmaskw1=14449  ro.ril.def.agps.mode=2 (打开AGPS服务支持,可改为ro.ril.def.agps.mode=0 改后能省电但GPS定位速度会变慢)  ro.ril.gprsclass=12 (GPRS设置)  # For HSDPA low throughput (HSDPA低输量)  ro.ril.disable.power.collapse=1 (关闭电源)  # Modify MMS APN retry timer from 5s to 2s. (修改短信的APN设置5秒为2秒)  ro.gsm.2nd_data_retry_config=max_retries=3, 2000, 2000, 2000  # Time between scans in seconds. Keep it high to minimize battery drain.(扫描在几秒之内,可降低用电量)  # This only affects the case in which there are remembered access points, (这个修改仅能影响此文件)  # but none are in range.(但是没有一项是在范围内的)  wifi.interface=eth0 (WIFI界面)  wifi.supplicant_scan_interval=45 (WIFI扫描间隔时间,这里设置是45秒。把这个时间设置长点能省电)  # Mobile data interfaces (移动数据的接口)  mobiledata.interfaces=rmnet0,rmnet1,rmnet2  # Allow or deny tethering. (允许和拒绝绑定)  ro.tether.denied=false  # Default network type. (默认的网络类型)  # 0 => WCDMA Preferred. (0=WCDMA优先)  ro.telephony.default_network=0  # Enable Google-specific location features, (谷歌特定地点的设置)  # like NetworkLocationProvider and LocationCollector.(如网络服务器提供商和服务器位置)  ro.com.google.locationfeatures=1  # The OpenGL ES API level that is natively supported by this device. (开放式绘图介面)  # This is a 16.16 fixed point number. (界面有16个点,16个不动点数量)  ro.opengles.version=65536 (开放式绘图介面参数)  # Disable fs check on boot by default. (开机时默认禁用FS检查)  sys.checkfs.fat=false  # Performance settings. (性能设置)  dalvik.vm.execution-mode=int:jit  dalvik.vm.heapsize=24m (虚拟内存大小,可设置为16m或24m或32m或48m)  persist.sys.use_dithering=1  persist.sys.purgeable_assets=1  # Increase SKIA decode memory capability for progressive jpg file.   ro.media.dec.jpeg.memcap=20000000  #  # ADDITIONAL_BUILD_PROPERTIES (其他性能设置)  #  keyguard.no_require_sim=true (手机卡保护设置)  ro.rommanager.developerid=cyanogenmodnightly (固件管理器开发者是CM大神)  ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html  ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html  ro.com.google.clientidbase=android-google (谷歌客户身份)  ro.com.android.wifi-watchlist=GoogleGuest (WIFI用户名单)  ro.setupwizard.enterprise_mode=1 (默认情景模式)  ro.com.android.dateformat=MM-dd-yyyy (默认时间格式,改为yyyy-MM-dd,显示效果就是XXXX年XX月XX日)  ro.com.android.dataroaming=false (漫游设置)  ro.config.ringtone=Playa.ogg (默认铃声设置,文件在/system/media/audio/ringtones 把喜欢的铃声放这里,比如123.MP3放入ringtones文件夹中,这里代码改为ro.config.ringtone=123.mp3)  ro.config.notification_sound=regulus.ogg (默认提示音,文件在/system/media/audio/notifications 修改方法同上)  ro.config.alarm_alert=Alarm_Beep_03.ogg (默认闹铃,文件在/system/media/audio/alarms 修改方法同上)   ro.modversion=CyanogenMod-7-06192011-NIGHTLY-buzz (版本信息,改这个能让你大名出现系统关于中)  ro.setupwizard.mode=OPTIONAL (安装向导模式)  net.bt.name=Android (系统名称)  dalvik.vm.stack-trace-file=/data/anr/traces.txt
  优化 Build.prop 教程:
  1.更好的录像.照相优化(根据不同手机,修改不同的尺寸及fps等等)  ro.media.capture.maxres=8m  ro.media.capture.fast.fps=4  ro.media.capture.slow.fps=120  ro.media.panorama.defres=3264x1840  ro.media.panorama.frameres=1280x720  ro.camcorder.videoModes=true   2.wifi速度优化  net.ipv4.tcp_ecn=0  net.ipv4.route.flush=1  net.ipv4.tcp_rfc1337=1  net.ipv4.ip_no_pmtu_disc=0  net.ipv4.tcp_sack=1  net.ipv4.tcp_fack=1  net.ipv4.tcp_window_scaling=1net.ipv4.tcp_times tamps=1net.ipv4.tcp_rmem=4096 39000 187000  net.ipv4.tcp_wmem=4096 39000 187000  net.ipv4.tcp_mem=187000 187000 187000  net.ipv4.tcp_no_metrics_save=1  net.ipv4.tcp_moderate_rcvbuf=1  3.提高jpg质量100%  ro.media.enc.jpeg.quality=100  4.渲染GPU的UI  debug.sf.hw=1  5.拨号时间减少  ro.telephony.call_ring.delay=0  6.提高滚动反映  windowsmgr.max_events_per_sec=150  7.电池优化  wifi.supplicant_scan_interval=180  pm.sleep_mode=1  ro.ril.disable.power.collapse=0  8.提高整体触摸反应  debug.performance.tuning=1  video.accelerate.hw=1  9.网络调整  ro.ril.hsxpa=2  ro.ril.gprsclass=12  ro.ril.hep=1  ro.ril.hsdpa.category=10  ro.ril.enable.3g.prefix=1  ro.ril.htcmaskw1.bitmask=4294967295  ro.ril.htcmaskw1=14449  ro.ril.hsupa.category=6  ro.ril.def.agps.mode=2  ro.ril.def.agps.feature=1  ro.ril.enable.sdr=1  ro.ril.enable.gea3=1  ro.ril.enable.fd.plmn.prefix=23402,23410,23411  ro.ril.enable.a52=1  ro.ril.enable.a53=1  ro.ril.enable.dtm=1  10.网络速度调整  net.tcp.buffersize.default=4096,87380,256960,4096,16384,256960  net.tcp.buffersize.wifi=4096,87380,256960,4096,16384,256960  net.tcp.buffersize.umts=4096,87380,256960,4096,16384,256960  net.tcp.buffersize.gprs=4096,87380,256960,4096,16384,256960  net.tcp.buffersize.edge=4096,87380,256960,4096,16384,256960  11.修复通话结束后黑屏问题  ro.lge.proximity.delay=25  mot.proximity.delay=25  12.修复一些应用问题  ro.kernel.android.checkjni=0  14.禁用开机动画  debug.sf.nobootanimation=1  15.使用Stagefright让视频和音乐更快  media.stagefright.enable-player=true  media.stagefright.enable-meta=true  media.stagefright.enable-scan=true  media.stagefright.enable-http=true
  以上信息在build.prop最后另起一行添加即可,由于build.prop为极其重要的系统文件,建议在修改build.prop系统文件之前备份一份,若是引起不开机等情况重刷固件方能解决。
  我是《家电维修》技术论坛的编辑:hcrt,负责“网络”“手机”“工具”“发现”“口碑”“观点”栏目的编辑工作,开启投稿与下载分互换模式。多多投稿与支持! 联系方式:QQ1669528969 邮箱:1669528969@qq.com

路过

雷人

握手

鲜花

鸡蛋

最新评论

QQ|Archiver|手机版|家电维修论坛 ( 蜀ICP备19011473号-4 川公网安备51102502000164号 )

GMT+8, 2025-6-11 17:19 , Processed in 0.122987 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

返回顶部