首页 > 技术文章 > build.prop了解

kaspar 2020-03-11 15:26 原文

之前修改EMUI的默认铃声为三全音,ro.config.notification_sound=Bongo.ogg。但是不知道为什么没有生效(到最后都没有生效,取了个折中的办法)。

于是找了这个文件作为参考简单了解一下文件各个部分的作用。

以HUAWEI mate7为例,仅供参考。

  # begin build properties

  # autogenerated by buildinfo.sh

  ro.build.version.sdk=19 sdk版本

  ro.build.version.codename=REL 版本代号

  ro.build.version.release=4.4.2 安卓版本

  ro.build.date=Wed Oct 22 09:03:17 CST 2014 制作者制作的时间

  ro.build.date.utc=1413939797

  ro.build.type=user

  ro.build.user=jenkins

  ro.build.host=shzdcpci11

  ro.product.model=JAZZ 手机型号

  ro.product.cpu.abi=armeabi-v7a cpu的版本

  ro.product.cpu.abi2=armeabi cpu的品牌

  ro.product.manufacturer=HUAWEI 手机制造商

  ro.product.locale.language=zh 刷机后默认语言

  ro.product.locale.region=CN 刷机后启动的默认语言

  ro.wifi.channels=

  ro.board.platform=hi3630

  # ro.build.product is obsolete; use ro.product.device

  ro.build.product=hi3630

  # Do not try to parse ro.build.description or .fingerprint

  ro.build.description=JAZZ-user 4.4.2 KOT49H eng.jenkins.20141022.090132 test-keys

  ro.build.fingerprint=Huawei/JAZZ/hi3630:4.4.2/KOT49H/eng.jenkins.20141022.090132:user/test-keys

  ro.build.characteristics=default

  ro.build.hide=false

  ro.hardware.alter=Kirin925

  # end build properties

  #

  # from device/hisi/hi3630/system.prop

  #

  ro.config.mmu_en=1

  debug.hwc_dump_en=1

  ro.config.hw_sensorhub=true

  ro.opengles.version=196608 开放式绘图介面参数

  persist.sys.thermal=false

  persist.sys.strictmode.disable=true

  ro.sf.lcd_density=480 显示屏分辨率,数值越大分辨率越底

  hw.lcd.density=480

  hw.lcd.density.scale=500

  dalvik.vm.checkjni=false

  af.resampler.quality=4

  ro.bt.bdaddr_path=/data/misc/bluedroid/macbt

  ro.config.keypasstouser=true

  ro.audio.flinger_standbytime_ms=10000

  persist.sys.wfd.sound=false

  ro.hwui.texture_cache_size=72

  ro.hwui.texture_cache_flushrate=0.4

  ro.hwui.layer_cache_size=48

  ro.hwui.path_cache_size=32

  ro.hwui.shape_cache_size=2

  ro.hwui.drop_shadow_cache_size=6

  ro.hwui.gradient_cache_size=1

  ro.hwui.text_large_cache_height=1024

  ro.hwui.text_large_cache_width=2048

  ro.hwui.text_small_cache_height=1024

  ro.hwui.text_small_cache_width=1024

  ro.hwui.r_buffer_cache_size=8

  ro.product.platform.pseudonym=1ARB9CV

  ro.config.hw_navigationbar=true

  persist.sys.hdcp_checking=always

  persist.sys.hispeed_freq=1209600

  persist.sys.hmp_boost_up=871

  persist.sys.hmp_boost_down=448

  persist.sys.hmp_default_up=978

  persist.sys.hmp_default_down=512

  ro.config.hw_testingsettings=true

  ro.config.hw_emerg=on

  ro.config.jankenable=false

  system_init.startjankioinfoservice=0

  #

  # ADDITIONAL_BUILD_PROPERTIES 以下是附加属性定义,可以修改,进行优化

  #

  ro.adb.secure=1 ADB安全 0为打开,1为关闭

  ro.com.android.dateformat=MM-dd-yyyy 默认时间格式,改为yyyy-MM-dd,显示效果就是XXXX年XX月XX日

  ro.config.ringtone=Huawei_Tune.ogg 默认铃声设置,文件在/system/media/audio/ringtones 把喜欢的铃声放这里,比如A.MP3放入ringtones文件夹中,这里代码改为ro.config.ringtone=A.mp3

  ro.config.notification_sound=Bongo.ogg 默认提示音,文件在/system/media/audio/notifications 修改方法同上

  ro.carrier=unknown

  ro.config.alarm_alert=Creamy.ogg 默认闹铃,文件在/system/media/audio/alarms 修改方法同上

  ro.setupwizard.mode=OPTIONAL 安装向导模式

  ro.com.google.gmsversion=4.4.2_r4

  dalvik.vm.heapstartsize=8m

  dalvik.vm.heapgrowthlimit=192m

  dalvik.vm.heapsize=512m 虚拟内存

  dalvik.vm.heaptargetutilization=0.75

  dalvik.vm.heapminfree=2m

  dalvik.vm.heapmaxfree=8m

  persist.sys.dalvik.vm.lib=libdvm.so

  net.bt.name=Android 系统名称

  dalvik.vm.stack-trace-file=/data/anr/traces.txt

  ro.build.tag_id.system=tag_K3V300R001C10B150_M1

  ro.build.tag_time.system=2014-07-19-1718

  ro.build.push_time.system=

  ro.build.update.settings_info=K3V300R001C10B150_M1_p1335

  ro.config.hw_dts=true 开启DTS

  ro.config.hw_dolby=false

  audioril.lib=libhuawei-audio-ril.so

  ro.config.fm_type=libbcmfm_if

  persist.sys.strictmode.visual=false

  ro.config.ringtone2=Huawei_Tune_Piano.ogg

  ro.config.messagesound=Whisper.ogg

  ro.config.emailsound=Letter.ogg

  ro.config.calendarsound=Step.ogg

  install.frobidden=false

  ro.camera.sound.forced=1 拍照声音,1为打开,0为关闭

  keyguard.no_require_sim=true 改为false则隐藏“无sim2”图标

  ro.config.widevine_level3=true

  ro.cellbroadcast.emergencyids=0-65534

  ro.config.hw_flashless=true

  ro.config.modem_hsic=true

  ro.config.hw_addsettingsdbex=1

  ro.config.hw_toolbox=true 改为false则不显示下拉快捷键(Toolbox.apk)

  ro.config.fast_dormancy=false

  ro.config.hwtheme=1 华为主题 1为打开,0为关闭

  ro.config.hw_gcf=false

  ro.config.hw_proximity=true 接近光传感器打开

  ro.config.hw_lockscreen=true

  ro.config.hw_menu_unlockscreen=false true为打开,使用菜单键解锁,据说是在屏幕亮的情况下起作用

  ro.config.helix_enable=true

  ro.config.hwft_PinPukUnlockscr=true

  ro.config.hw_always_allow_mms=false

  ro.config.hw_vcardBase64=true

  ro.config.hw_ecclist_withcard=1+110,6+119,8+118

  ro.config.hw_ecclist_nocard=1+110,6+119,8+118

  ro.config.hw_globalEcc=true

  ro.config.hw_allow_ums_and_mtp=true

  ro.config.incall_notify_mms=true

  ro.config.hw_useCtrlSocket=true

  persist.radio.apm_sim_not_pwdn=1

  ro.config.AM_PM_STYLE=1 状态栏时钟“上午”、“下午”字样显示方式。0为大字体显示,1为小字体显示,2为不显示

  persist.sys.powerup_reason=

  ro.poweroff_alarm=true

  persist.sys.actualpoweron=true

  ro.config.hw_support_ipcall=true

  ro.config.bg_call_twinking=true

  ro.config.hw_power_saving=true

  ro.config.hwft_emerCallDefNum=""

  ro.config.always_animation=true

  ro.config.hw_RemindWifiToPdp=false 改为false,就不会在3G和wifi切换时提示“无线局域网已断开,继续将会产生费用”啦!

  ro.config.app_big_icon_size=153

  ro.config.do_sdcard_upgrade=true

  ro.ril.ecclist=112,911,#911,*911

  ro.config.hw_eapsim=false

  ro.config.disablesmbacklinght=true

  persist.alarm.enable.uhb=0

  ro.config.hw_rightsmgr=1

  persist.sys.phb.enable=1

  persist.sys.phb.debug.enable=1

  ro.config.hw.logsystem.send=0

  ro.config.hw_enable_merge=true

  ro.config.themecolor=true

  ro.config.hw_subtitle_support=true

  modify_ram_show=true

  ro.config.hw_hightLight=true

  ro.config.hw_hightLightValue=200

  persist.sys.alarm.enable.uhb=1

  ro.config.hw_GSensorOptimize=true

  ro.config.hw_omacp=1

  ro.config.hw_multiscreen=true

  ro.thmodem.type=sprd

  ro.config.hw_singlehand=2

  ro.config.hw_singlehand_smart=false

  ril.gsm.deviceid=-1

  ril.cdma.deviceid=-1

  ril.gsm.rssi=-1

  ril.cdma.rssi=-1

  persist.sys.logsystem.neversend=0

  ro.config.hw_shownavisettings=true

  ro.config.dlvs=true

  ro.config.carkitmodenotif=true

  ro.config.hwscope=true

  ro.config.lockscreen_lensflare=true

  ro.config.hw.powerlogserve.send=1

  persist.service.tm2.tofile=true

  ril.hw_modem0.rssi=-1

  ril.hw_modem1.rssi=-1

  ril.hw_modem0.deviceid=000000000000000

  ril.hw_modem1.deviceid=000000000000000

  ro.config.hw.VIS=true

  ro.pwrtmg.aegis.state=20

  ro.cdma.poorstd=-108

  ro.cdma.modstd=-102

  ro.cdma.goodstd=-95

  ro.cdma.greatstd=-85

  ro.cdmaecio.poorstd=-15

  ro.cdmaecio.modstd=-13

  ro.cdmaecio.goodstd=-11

  ro.cdmaecio.greatstd=-9

  ro.cdmasnr.poorstd=1

  ro.cdmasnr.modstd=3

  ro.cdmasnr.goodstd=5

  ro.cdmasnr.greatstd=7

  ro.config.hw_activity_state=true

  ro.cmdaconfig.roamingByPlmn=true

  ro.config.hw_simpleui_enable=1

  ro.cust.cdrom=/cust/preinstalled/public/cdrom/autorun.iso

  ro.config.hw_navi_launcher=false

  ro.config.conn_diagnose=true

  ro.config.hw_gallery_video_edit=true

  ro.config.huawei_smallwindow=0,0,1080,1346

  ro.config.cover_toucharea=40,20,1020,1340

  ro.config.protocol_errors=false

  ro.config.hw_smartcardservice=true

  ro.config.hw_accesscontrol=true

  persist.hw.power.shutdown=1

  ro.anr.warning.enable=false

  ro.config.hw_privacymode=true

  ro.dual.sim.phone=true

  ro.config.small.previewpos=left

  ro.config.hw_camera_nfc_switch=true

  ro.config.hw_nfc_msimce=true

  ro.config.hw_sim2airplane = true

  persist.sys.enable.easywakeup=false

  ro.product.member.level=10011

  ro.config.hw_music_lp=true

  ro.config.toolbox_port_column=5

  ro.config.toolbox_port_row=3

  ro.config.toolbox_land_column=8

  ro.config.toolbox_land_row=2

  ro.networkstatus.delaytimer=6

  ro.config.spare_ntp_server=ntp.sjtu.edu.cn,time.windows.com,time.nist.gov,1.cn.pool.ntp.org

  ro.config.cpu_info_display=Hisilicon Kirin 925 CPU型号

  ro.product.brand=Huawei 机器品牌,随你创造

  ro.product.device=hwmt7 设备名,随你创造

  ro.build.tags=ota-rel-keys,release-keys 系统标记,无意义,不修改

  ro.build.version.emui=EmotionUI_3.0 emui版本

  ro.build.display.id=MT7-V100R001C00B120SP07 手机信息的版本

  ro.build.version.incremental=C00B120SP07 版本的增加说明

  ro.product.board=MT7 机器品牌,随你创造

  ro.product.name=MT7 机器名,随你创造

  ro.build.id=HuaweiMT7 build的标识,一般在编译时产生不必修改

  ro.confg.hw_systemversion=MT7-V100R001C00B120SP07_SYSTEM

上面这些并不适用所有的EMUI的build.prop文件,很多修改并没有起到作用,所以作为了解,仅供学习参考。

推荐阅读