小知識:什么是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
以下是build.prop的代碼
# begin build properties #開始設置系統性能 # autogenerated by buildinfo.sh #以下內容由腳本在編譯時自動產生 ro.build.id=JRO03C #build的標識,一般在編譯時產生不必修改 ro.build.display.id=TBDG1073-eng 4.1.1 JRO03C 20130723.v016 test-keys #顯示的標識,可以任意修改,顯示為手機信息的版本 ro.build.version.incremental=20130723.v016 #版本的增加說明,一般不顯示也沒必要修改 ro.build.version.sdk=16 #系統編譯時,使用的SDK的版本,勿修改. ro.build.version.codename=REL #版本編碼名稱,一般不顯示也沒必要修改 ro.build.version.release=4.1.1 #公布的版本,顯示為手機信息的系統版本 ro.build.date=Tue Jul 23 17:14:43 CST 2013 #系統編譯的時間,沒必要修改 ro.build.date.utc=1374570883 #系統編譯的時間(數字版),沒必要修改 ro.build.type=eng #系統編譯類型,一般不顯示也沒必要修改 ro.build.user=pyou #系統用戶名,可以修改成自己的名字 ro.build.host=roco-ubuntu #系統主機名,隨便起個名字,英文字母表示 ro.build.tags=test-keys #系統標記,無意義,不修改 ro.product.model=TBDG1073_OuyangPeng #機器型號,隨你創造 ro.product.brand=TBDG1073 #機器品牌,隨你創造 ro.product.name=TBDG1073 #機器名,隨你創造 ro.product.device=TBDG1073 #設備名,隨你創造 ro.product.board=TBDG1073 #主板名,隨你創造 ro.product.cpu.abi=armeabi-v7a #CPU,最好別修改,避免有些軟件在識別機器時,出現錯亂 ro.product.cpu.abi2=armeabi #CPU品牌 ro.product.manufacturer=TBDG1073 #制造商,隨你創造 ro.product.locale.language=en #系統語言 ro.product.locale.region=US #系統所在地區 ro.wifi.channels=11 #無線局域網絡的通信信道,空白表示自動識別 ro.board.platform=meson6 #主板系統 # ro.build.product is obsolete; use ro.product.device ro.build.product=TBDG1073 #設備名,被廢棄了,修改也沒用 # Do not try to parse ro.build.description or .fingerprint #以下的內容不要試圖修改 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 #機身碼 ro.build.characteristics=tablet # end build properties #創建屬性結束 # system.prop for M1 reference board #系統技術支持由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 #顯示屏分辨率,數值越大分辨率越底 keyguard.no_require_sim=1 #無需SIM卡也可操作手機 #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掃描間隔時間,這里設置是45秒。把這個時間設置長點能省電 #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 #單個應用程序分配的初始內存 dalvik.vm.heapgrowthlimit=48m #單個應用程序最大內存限制,超過將被Kill,這或許是某些大體積程序閃退的原因 dalvik.vm.heapsize=256m #dalvik的虛擬內存大小 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的話自動轉屏 #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 #強制時區,此處為美洲紐約時間 #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 #安裝向導模式 開機出現的帳號設置向導,ENABLED為顯示,DISABLED為禁用,OPTIONAL為可選 ro.statusbar.screenshot=true # # ADDITIONAL_BUILD_PROPERTIES # ro.com.android.dateformat=MM-dd-yyyy #默認時間格式,改為yyyy-MM-dd,顯示效果就是XXXX年XX月XX日 ro.config.ringtone=Ring_Synth_04.ogg #默認響鈴鈴聲,文件在/system/media/audio/ringtones 把喜歡的鈴聲放這里 ro.config.notification_sound=pixiedust.ogg #默認提示音,文件在/system/media/audio/notifications 修改方法同上 ro.carrier=unknown ro.opengles.version=131072 #開放式繪圖介面參數 ro.config.alarm_alert=Alarm_Classic.ogg #默認鬧鈴,文件在/system/media/audio/alarms 修改方法同上 drm.service.enabled=true ro.setupwizard.mode=OPTIONAL #默認開機時使用設置向導 ro.com.google.gmsversion=4.1_r4 ro.kernel.android.checkjni=1 net.bt.name=Android #藍牙網絡中顯示的名稱,可以修改 dalvik.vm.stack-trace-file=/data/anr/traces.txt