zoukankan      html  css  js  c++  java
  • [置顶] Android系统移植与调试之------->build.prop文件详细赏析

    小知识:什么是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


  • 相关阅读:
    LeetCode 301. Remove Invalid Parentheses
    LeetCode 126. Word Ladder II
    LeetCode 44. Wildcard Matching
    LeetCode 10. Regular Expression Matching
    LeetCode 65. Valid Number
    LeetCode 149. Max Points on a Line
    LeetCode 68. Text Justification
    LeetCode 212. Word Search II
    LeetCode 79. Word Search
    LeetCode 218. The Skyline Problem
  • 原文地址:https://www.cnblogs.com/snake-hand/p/3212310.html
Copyright © 2011-2022 走看看