build.prop位于手機(jī)的/system/build.prop中
build.prop記錄一些系統(tǒng)設(shè)置牍鞠,是一個(gè)屬性文件,相當(dāng)于Windows系統(tǒng)的注冊(cè)表爹土。
build.prop生成:
Make系統(tǒng)解析build/core/Makefile甥雕,調(diào)用build/tools/buildinfo.sh執(zhí)行腳本生成build.prop文件,并把系統(tǒng)默認(rèn)的system.prop以及定制的system.prop中的屬性追加到build.prop文件中胀茵。
附build.prop代碼
# begin build properties #開始設(shè)置系統(tǒng)性能
# autogenerated by buildinfo.sh #以下內(nèi)容由腳本在編譯時(shí)自動(dòng)產(chǎn)生
ro.build.id=JRO03C #build的標(biāo)識(shí),一般在編譯時(shí)產(chǎn)生不必修改
ro.build.display.id=TBDG1073-eng 4.1.1 JRO03C 20130723.v016 test-keys #顯示的標(biāo)識(shí),可以任意修改,顯示為手機(jī)信息的版本
ro.build.version.incremental=20130723.v016 #版本的增加說明,一般不顯示也沒必要修改
ro.build.version.sdk=16 #系統(tǒng)編譯時(shí),使用的SDK的版本,勿修改.
ro.build.version.codename=REL #版本編碼名稱,一般不顯示也沒必要修改
ro.build.version.release=4.1.1 #公布的版本,顯示為手機(jī)信息的系統(tǒng)版本
ro.build.date=Tue Jul 23 17:14:43 CST 2013 #系統(tǒng)編譯的時(shí)間,沒必要修改
ro.build.date.utc=1374570883 #系統(tǒng)編譯的時(shí)間(數(shù)字版),沒必要修改
ro.build.type=eng #系統(tǒng)編譯類型,一般不顯示也沒必要修改
ro.build.user=pyou #系統(tǒng)用戶名,可以修改成自己的名字
ro.build.host=roco-ubuntu #系統(tǒng)主機(jī)名,隨便起個(gè)名字,英文字母表示
ro.build.tags=test-keys #系統(tǒng)標(biāo)記,無意義,不修改
ro.product.model=TBDG1073_OuyangPeng #機(jī)器型號(hào),隨你創(chuàng)造
ro.product.brand=TBDG1073 #機(jī)器品牌,隨你創(chuàng)造
ro.product.name=TBDG1073 #機(jī)器名,隨你創(chuàng)造
ro.product.device=TBDG1073 #設(shè)備名,隨你創(chuàng)造
ro.product.board=TBDG1073 #主板名,隨你創(chuàng)造
ro.product.cpu.abi=armeabi-v7a #CPU,最好別修改,避免有些軟件在識(shí)別機(jī)器時(shí),出現(xiàn)錯(cuò)亂
ro.product.cpu.abi2=armeabi #CPU品牌
ro.product.manufacturer=TBDG1073 #制造商,隨你創(chuàng)造
ro.product.locale.language=en #系統(tǒng)語(yǔ)言
ro.product.locale.region=US #系統(tǒng)所在地區(qū)
ro.wifi.channels=11 #無線局域網(wǎng)絡(luò)的通信信道,空白表示自動(dòng)識(shí)別
ro.board.platform=meson6 #主板系統(tǒng)
# ro.build.product is obsolete; use ro.product.device
ro.build.product=TBDG1073 #設(shè)備名,被廢棄了,修改也沒用
# Do not try to parse ro.build.description or .fingerprint #以下的內(nèi)容不要試圖修改
ro.build.description=TBDG1073-eng 4.1.1 JRO03C 20130723.v016 test-keys #用戶的KEY
ro.build.fingerprint=TBDG1073/TBDG1073/TBDG1073:4.1.1/JRO03C/20130723.v016:eng/test-keys #機(jī)身碼
ro.build.characteristics=tablet
# end build properties #創(chuàng)建屬性結(jié)束
# system.prop for M1 reference board #系統(tǒng)技術(shù)支持由M1提供
# This overrides settings in the products/generic/system.prop file
#
#rild.libpath=/system/lib/libreference-ril.so
#rild.libargs=-d /dev/ttyS0
ro.sf.lcd_density=120 #顯示屏分辨率社露,數(shù)值越大分辨率越底
keyguard.no_require_sim=1 #無需SIM卡也可操作手機(jī)
#set font
ro.fontScale=1.0 #字體大小縮放
#set keyguard.enable=false to disable keyguard
keyguard.enable=true #鎖屏
ro.statusbar.widget=true
ro.statusbar.button=true
ro.statusbar.yearmonthdayweek=true
#wifi.interface=ra0 #WIFI界面
# 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.supplicant_scan_interval = 60 #WIFI掃描間隔時(shí)間,這里設(shè)置是45秒宰掉。把這個(gè)時(shí)間設(shè)置長(zhǎng)點(diǎn)能省電
#alsa.mixer.playback.master=DAC2 Analog
#alsa.mixer.capture.master=Analog
#configure the Dalvik heap for a standard tablet device.
#frameworks/base/build/tablet-dalvik-heap.mk
dalvik.vm.heapstartsize=5m #單個(gè)應(yīng)用程序分配的初始內(nèi)存
dalvik.vm.heapgrowthlimit=48m #單個(gè)應(yīng)用程序最大內(nèi)存限制呵哨,超過將被Kill,這或許是某些大體積程序閃退的原因
dalvik.vm.heapsize=256m #dalvik的虛擬內(nèi)存大小
hwui.render_dirty_regions=false
# Disable un-supported Android feature
hw.nopm=false
hw.nobattery=false
hw.nophone=true
hw.novibrate=true
hw.cameras=1
hw.hasethernet=false
#hw.hasdata=true
ro.platform.has.touch=true
hw.nodatausage=true
# Wi-Fi sleep policy
ro.platform.has.sleeppolicy=false
#set to 0 temporarily so touch works without other changes
ro.sf.hwrotation=270 #0的話自動(dòng)轉(zhuǎn)屏
#0~7 You are required to get the correct install direction according the sensor placement on target board
#ro.sf.gsensorposition=6
ro.sf.ecompassposition=4
allow_all_orientations=1
# Set Camera Orientation
ro.camera.orientation.front=270
ro.camera.orientation.back=90
# Use OSD2 mouse patch
ro.ui.cursor=osd2
ro.hardware=amlogic
# Enable 32-bit OSD
sys.fb.bits=32
# Disable GPS
gps.enable=false
# Enable player buildin
media.amsuperplayer.enable=true
media.amplayer.enable-acodecs=asf,ape,flac,dts
media.amplayer.enable=true
media.amsuperplayer.m4aplayer=STAGEFRIGHT_PLAYER
media.amsuperplayer.defplayer=PV_PLAYER
media.amplayer.thumbnail=true
media.amplayer.stopbuflevel=0.05
media.amplayer.widevineenable=true
media.amplayer.html5_stretch=true
media.libplayer.fastswitch=0
media.libplayer.ipv4only=1
media.amplayer.dsource4local=1
#media.amplayer.hdmicloseauthen=1
media.amplayer.delaybuffering=2
media.amplayer.buffertime=5
media.amplayer.v4osd.enable=1
media.arm.audio.decoder=ape
#fix doubleTwist apk can not play radio
media.player.forcemp3softdec=true
#fix online video block issue
libplayer.livets.softdemux=1
libplayer.netts.recalcpts=1
# Nand write need force sync when gadget
gadget.nand.force_sync=true
# Status bar customization
ro.statusbar.widget.power=true
ro.statusbar.yearmonthdayweek=true
# HDMI
#ro.hdmi480p.enable=true
#rw.fb.need2xscale=ok
#media.amplayer.osd2xenable=true
#camera DCIM dir. 0:sd only; 1:nand only; 2,sd first
ro.camera.dcim=1
# Disable preload-class
ro.amlogic.no.preloadclass=0
# App optimization
ro.app.optimization=true
persist.sys.timezone=America/New_York #強(qiáng)制時(shí)區(qū),此處為美洲紐約時(shí)間
#Dual display
ro.vout.dualdisplay3=true
ro.vout.player.exit=false
# CPU settings
ro.has.cpu.setting=true
# CPU freq customized in setting menu
# normal, performance, powersaving
ro.cpumode.maxfreq=1200000,1320000,800000
# when usbstorage, CPU mode and freq
ro.usbstorage.cpumode=performance
ro.usbstorage.maxfreq=600000
ro.bootanimation.rotation=0
#used to set default surface size, set 1 when hwrotation is 270, set 3 when hwrotation is 90;need set ro.bootanimation.rotation 0;
debug.default.dimention=1
#support media poll uevent,can use sd cardread on usb port
has.media.poll=true
#used forward seek for libplayer
media.libplayer.seek.fwdsearch=1
#for tabletui display
ro.ui.tabletui=true
#enable address bar cover issue fixing
ro.flashplayer.surfacehack=1
#add vol button in statusbar.
ro.statusbar.volume=true
ro.screen.has.usbstorage=true
hw.erase.internalSdcard=true
#media partition name
ro.media.partition.label=OuyangPeng
#USB PID and VID name
#ro.usb.vendor.string=AML
#ro.usb.product.string=MID
#CTS
#media.amplayer.widevineenable=true
#media.amplayer.dsource4local=true
ro.com.google.gmsversion=4.1_r5
ro.com.google.clientidbase=android-fih #谷歌客戶身份
ro.setupwizard.mode=OPTIONAL #安裝向?qū)J?開機(jī)出現(xiàn)的帳號(hào)設(shè)置向?qū)Ч煅伲珽NABLED為顯示孟害,DISABLED為禁用,OPTIONAL為可選
ro.statusbar.screenshot=true
#
# ADDITIONAL_BUILD_PROPERTIES
#
ro.com.android.dateformat=MM-dd-yyyy #默認(rèn)時(shí)間格式挪拟,改為yyyy-MM-dd挨务,顯示效果就是XXXX年XX月XX日
ro.config.ringtone=Ring_Synth_04.ogg #默認(rèn)響鈴鈴聲,文件在/system/media/audio/ringtones 把喜歡的鈴聲放這里
ro.config.notification_sound=pixiedust.ogg #默認(rèn)提示音,文件在/system/media/audio/notifications 修改方法同上
ro.carrier=unknown
ro.opengles.version=131072 #開放式繪圖介面參數(shù)
ro.config.alarm_alert=Alarm_Classic.ogg #默認(rèn)鬧鈴玉组,文件在/system/media/audio/alarms 修改方法同上
drm.service.enabled=true
ro.setupwizard.mode=OPTIONAL #默認(rèn)開機(jī)時(shí)使用設(shè)置向?qū)?ro.com.google.gmsversion=4.1_r4
ro.kernel.android.checkjni=1
net.bt.name=Android #藍(lán)牙網(wǎng)絡(luò)中顯示的名稱,可以修改
dalvik.vm.stack-trace-file=/data/anr/traces.txt
參考: