blob: 483cabcb4919f8fefc03457f39ab92fa66ece4de
1 | # Copyright (C) 2011 Amlogic Inc |
2 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | # you may not use this file except in compliance with the License. |
5 | # You may obtain a copy of the License at |
6 | # |
7 | # http://www.apache.org/licenses/LICENSE-2.0 |
8 | # |
9 | # Unless required by applicable law or agreed to in writing, software |
10 | # distributed under the License is distributed on an "AS IS" BASIS, |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. |
14 | |
15 | # |
16 | # This file is the build configuration for a full Android |
17 | # build for Meson reference board. |
18 | # |
19 | |
20 | # Set display related config |
21 | PRODUCT_PROPERTY_OVERRIDES += \ |
22 | ro.platform.has.mbxuimode=true \ |
23 | ro.platform.has.realoutputmode=true \ |
24 | ro.platform.support.4k=false \ |
25 | |
26 | #camera max to 720p |
27 | PRODUCT_PROPERTY_OVERRIDES += \ |
28 | #ro.camera.preview.MaxSize=1280x720 \ |
29 | #ro.camera.preview.LimitedRate=1280x720x30,640x480x30,320x240x28 |
30 | |
31 | #camera max to 1080p |
32 | PRODUCT_PROPERTY_OVERRIDES += \ |
33 | ro.camera.preview.MaxSize=1920x1080 \ |
34 | ro.camera.preview.LimitedRate=1920x1080x30,1280x720x30,640x480x30,320x240x28 \ |
35 | ro.camera.preview.UseMJPEG=1 |
36 | |
37 | #if wifi Only |
38 | PRODUCT_PROPERTY_OVERRIDES += \ |
39 | ro.radio.noril=false \ |
40 | |
41 | #if need pppoe |
42 | PRODUCT_PROPERTY_OVERRIDES += \ |
43 | ro.net.pppoe=true |
44 | |
45 | # Low memory platform |
46 | PRODUCT_PROPERTY_OVERRIDES += \ |
47 | ro.config.low_ram=true |
48 | |
49 | #the prop is used for enable or disable |
50 | #DD+/DD force output when HDMI EDID is not supported |
51 | #by default,the force output mode is enabled. |
52 | #Note,please do not set the prop to true by default |
53 | #only for netflix,just disable the feature.so set the prop to true |
54 | PRODUCT_PROPERTY_OVERRIDES += \ |
55 | ro.platform.disable.audiorawout=false |
56 | |
57 | #Dolby DD+ decoder option |
58 | #this prop to for videoplayer display the DD+/DD icon when playback |
59 | PRODUCT_PROPERTY_OVERRIDES += \ |
60 | ro.platform.support.dolby=true |
61 | |
62 | #DTS decoder option |
63 | #display dts icon when playback |
64 | PRODUCT_PROPERTY_OVERRIDES += \ |
65 | ro.platform.support.dts=true |
66 | |
67 | #DTS-HD support prop |
68 | #ro.platform.support.dtstrans=true |
69 | #ro.platform.support.dtsmulasset=true |
70 | #DTS-HD prop end |
71 | # Enable player buildin |
72 | PRODUCT_PROPERTY_OVERRIDES += \ |
73 | media.amplayer.seekkeyframe=true \ |
74 | media.amsuperplayer.enable=true \ |
75 | media.amplayer.enable-acodecs=ac3,eac3,rm,dts \ |
76 | media.amplayer.enable=true \ |
77 | media.amsuperplayer.m4aplayer=STAGEFRIGHT_PLAYER \ |
78 | media.amsuperplayer.defplayer=PV_PLAYER \ |
79 | media.amplayer.thumbnail=true \ |
80 | media.amplayer.dsource4local=1 \ |
81 | media.amplayer.dropwaitxms=100 \ |
82 | media.arm.audio.decoder=ape,flac,dts,ac3,eac3,wma,wmapro,mp3,aac,vorbis,raac,cook,amr,pcm,adpcm,aac_latm,rm \ |
83 | media.wfd.use-pcm-audio=false \ |
84 | media.wfd.videoresolution-type=1 \ |
85 | media.wfd.videoresolution-group=0 \ |
86 | media.wfd.videoframerate=24 \ |
87 | media.wfd.video-bitrate=2000000 \ |
88 | media.html5videowin.enable=1 \ |
89 | media.decoder.vfm.defmap=decoder ppmgr deinterlace amvideo \ |
90 | media.decoder.vfm.drmmap=decoder amvideo \ |
91 | persist.sys.dts.edid=false |
92 | |
93 | #add for video boot, 1 means use video boot, others not . |
94 | PRODUCT_PROPERTY_OVERRIDES += \ |
95 | service.bootvideo=0 |
96 | |
97 | # Define drm for this device |
98 | PRODUCT_PROPERTY_OVERRIDES += \ |
99 | drm.service.enabled=1 |
100 | |
101 | #used forward seek for libplayer |
102 | PRODUCT_PROPERTY_OVERRIDES += \ |
103 | media.libplayer.seek.fwdsearch=1 |
104 | |
105 | #set memory upper limit for extractor process |
106 | PRODUCT_PROPERTY_OVERRIDES += \ |
107 | ro.media.maxmem=419430400 |
108 | |
109 | #fix hls sync |
110 | PRODUCT_PROPERTY_OVERRIDES += \ |
111 | libplayer.livets.softdemux=1 \ |
112 | libplayer.netts.recalcpts=1 |
113 | |
114 | #map volume |
115 | PRODUCT_PROPERTY_OVERRIDES += \ |
116 | ro.audio.mapvalue=0,0,0,0 |
117 | |
118 | #By default, primary storage is physical |
119 | #ro.vold.primary_physical=true |
120 | |
121 | #Support storage visible to apps |
122 | PRODUCT_PROPERTY_OVERRIDES += \ |
123 | persist.fw.force_adoptable=true |
124 | |
125 | #add livhls,libcurl as default hls |
126 | PRODUCT_PROPERTY_OVERRIDES += \ |
127 | media.libplayer.curlenable=true \ |
128 | media.libplayer.modules=vhls_mod,dash_mod,curl_mod,prhls_mod,vm_mod,bluray_mod |
129 | |
130 | #Do note send inactive cmd when disable cec service |
131 | PRODUCT_PROPERTY_OVERRIDES += \ |
132 | sys.ignore.inativecec=true |
133 | |
134 | #Hdmi In |
135 | PRODUCT_PROPERTY_OVERRIDES += \ |
136 | ro.sys.hdmiin.enable=true \ |
137 | mbx.hdmiin.switchfull=false \ |
138 | mbx.hdmiin.videolayer=false |
139 | |
140 | #adb |
141 | PRODUCT_PROPERTY_OVERRIDES += \ |
142 | service.adb.tcp.port=5555 |
143 | |
144 | PRODUCT_PROPERTY_OVERRIDES += \ |
145 | sys.open.deepcolor=true |
146 | |
147 | ######## UBOOTENV VARIBLES - r/w as system properties ########## |
148 | # |
149 | # Now we can load ubootenv varibles to system properties. |
150 | # We use a special prefix ("ubootenv.var" as default) to indicate that the 'property' |
151 | # actually is an ubootenv varible. |
152 | # |
153 | # A ubootenv 'property' will be initialized during system booting. And when user set |
154 | # a different value, it will be written back to ubootenv device immediately. |
155 | # |
156 | ## prefix of ubootenv varibles - should less than 16 chars. |
157 | #UBOOTENV MTD NAME |
158 | #ubootenv.var.bootcmd= |
159 | #ubootenv.var.cpuclock= |
160 | #ubootenv.var.gpuclock= |
161 | #ubootenv.var.memsize= |
162 | #ubootenv.var.ethaddr= |
163 | #ubootenv.var.ipaddr= |
164 | #ubootenv.var.gatewayip= |
165 | PRODUCT_PROPERTY_OVERRIDES += \ |
166 | ubootenv.var.outputmode= |
167 | #ubootenv.var.screenratio= |
168 | #ubootenv.var.oobeflag= |
169 | PRODUCT_PROPERTY_OVERRIDES += \ |
170 | ubootenv.var.480p_x= \ |
171 | ubootenv.var.480p_y= \ |
172 | ubootenv.var.480p_w= \ |
173 | ubootenv.var.480p_h= \ |
174 | ubootenv.var.480i_x= \ |
175 | ubootenv.var.480i_y= \ |
176 | ubootenv.var.480i_w= \ |
177 | ubootenv.var.480i_h= \ |
178 | ubootenv.var.576p_x= \ |
179 | ubootenv.var.576p_y= \ |
180 | ubootenv.var.576p_w= \ |
181 | ubootenv.var.576p_h= \ |
182 | ubootenv.var.576i_x= \ |
183 | ubootenv.var.576i_y= \ |
184 | ubootenv.var.576i_w= \ |
185 | ubootenv.var.576i_h= \ |
186 | ubootenv.var.720p_x= \ |
187 | ubootenv.var.720p_y= \ |
188 | ubootenv.var.720p_w= \ |
189 | ubootenv.var.720p_h= \ |
190 | ubootenv.var.1080p_x= \ |
191 | ubootenv.var.1080p_y= \ |
192 | ubootenv.var.1080p_w= \ |
193 | ubootenv.var.1080p_h= \ |
194 | ubootenv.var.1080i_x= \ |
195 | ubootenv.var.1080i_y= \ |
196 | ubootenv.var.1080i_w= \ |
197 | ubootenv.var.1080i_h= \ |
198 | ubootenv.var.4k2k24hz_x= \ |
199 | ubootenv.var.4k2k24hz_y= \ |
200 | ubootenv.var.4k2k24hz_w= \ |
201 | ubootenv.var.4k2k24hz_h= \ |
202 | ubootenv.var.4k2k25hz_x= \ |
203 | ubootenv.var.4k2k25hz_y= \ |
204 | ubootenv.var.4k2k25hz_w= \ |
205 | ubootenv.var.4k2k25hz_h= \ |
206 | ubootenv.var.4k2k30hz_x= \ |
207 | ubootenv.var.4k2k30hz_y= \ |
208 | ubootenv.var.4k2k30hz_w= \ |
209 | ubootenv.var.4k2k30hz_h= \ |
210 | ubootenv.var.4k2ksmpte_x= \ |
211 | ubootenv.var.4k2ksmpte_y= \ |
212 | ubootenv.var.4k2ksmpte_w= \ |
213 | ubootenv.var.4k2ksmpte_h= \ |
214 | ubootenv.var.digitaudiooutput= \ |
215 | ubootenv.var.defaulttvfrequency= \ |
216 | ubootenv.var.has.accelerometer= \ |
217 | ubootenv.var.cecconfig= \ |
218 | ubootenv.var.cvbsmode= \ |
219 | ubootenv.var.hdmimode= \ |
220 | ubootenv.var.is.bestmode= \ |
221 | ubootenv.var.disp.fromleft= \ |
222 | ubootenv.var.edid.crcvalue= \ |
223 | ubootenv.var.colorattribute= |
224 | |
225 | #720P UI, 1280 * 720 *4 * 5 = 18M, 5 frame is enough |
226 | PRODUCT_PROPERTY_OVERRIDES += \ |
227 | ro.hwui.texture_cache_size=18.0f \ |
228 | ro.hwui.layer_cache_size=15.0f |
229 |