-
Notifications
You must be signed in to change notification settings - Fork 4
/
fb0.mk
266 lines (232 loc) · 11.1 KB
/
fb0.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
$(call inherit-product-if-exists, vendor/fih/fb0/fb0-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/fih/fb0/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/fih/fb0/kernel/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
PRODUCT_PACKAGES += \
lights.fb0 \
gps.fb0
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio_policy.msm7x30 \
audio.primary.msm7x30 \
libaudioutils \
libtinyalsa
# Video
PRODUCT_PACKAGES += \
copybit.msm7x30 \
gralloc.msm7x30 \
hwcomposer.msm7x30 \
libgenlock \
libmemalloc \
liboverlay \
libQcomUI \
libtilerenderer
# Camera
#PRODUCT_PACKAGES += \
# camera.fb0
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Omx
PRODUCT_PACKAGES += \
libOmxCore \
libOmxVenc \
libOmxVdec \
libmm-omxcore \
ibOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxAmrEnc \
libOmxAacEnc \
libdivxdrmdecrypt \
libstagefrighthw
# Live Wallpapers
PRODUCT_PACKAGES += \
Basic \
HoloSpiralWallpaper \
MagicSmokeWallpapers \
NoiseField \
Galaxy4 \
PhaseBeam \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
# Applications
PRODUCT_PACKAGES += \
Camera \
Development \
FileManager \
LatinIME \
Mms \
Stk \
VideoEditor \
VoiceDialer \
SpareParts \
SyncProvider \
Superuser \
su
# CyanogenMod Packages
PRODUCT_PACKAGES += \
CMSettings \
DSPManager \
libcyanogen-dsp \
audio_effects.conf
# Init files
PRODUCT_COPY_FILES += \
device/fih/fb0/kernel/init.fb0.rc:root/init.fb0.rc \
device/fih/fb0/kernel/init.fb0.usb.rc:root/init.fb0.usb.rc \
device/fih/fb0/kernel/ueventd.fb0.rc:root/ueventd.fb0.rc
# init.d
PRODUCT_COPY_FILES += \
device/fih/fb0/prebuilt/etc/08hostapd:/system/etc/init.d/08hostapd \
device/fih/fb0/prebuilt/etc/100complete:/system/etc/init.d/100complete
# Gsensor & Ecompass
PRODUCT_COPY_FILES += \
device/fih/fb0/prebuilt/app/ECompassCalibration.apk:/system/app/ECompassCalibration.apk \
device/fih/fb0/prebuilt/app/GSensorCalibration.apk:/system/app/GSensorCalibration.apk
# vold
PRODUCT_COPY_FILES += \
device/fih/fb0/vold.fstab:system/etc/vold.fstab
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:/system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:/system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:/system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.camera.xml:/system/etc/permissions/android.hardware.camera.xml \
frameworks/base/data/etc/android.hardware.camera.front.xml:/system/etc/permissions/android.hardware.camera.front.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:/system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:/system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:/system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:/system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:/system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:/system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:/system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# init scripts
PRODUCT_COPY_FILES += \
device/fih/fb0/files/etc/init.qcom.bt.sh:/system/etc/init.qcom.bt.sh \
device/fih/fb0/files/etc/init.qcom.fm.sh:/system/etc/init.qcom.fm.sh \
device/fih/fb0/files/etc/init.qcom.sdio.sh:/system/etc/init.qcom.sdio.sh \
device/fih/fb0/files/etc/init.qcom.wifi.sh:/system/etc/init.qcom.wifi.sh
# Keychars
PRODUCT_COPY_FILES += \
device/fih/fb0/keychars/fih_headsethook.kcm.bin:system/usr/keychars/fih_headsethook.kcm.bin \
device/fih/fb0/keychars/fih_ringswitch.kcm.bin:system/usr/keychars/fih_ringswitch.kcm.bin \
device/fih/fb0/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
device/fih/fb0/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
device/fih/fb0/keychars/sf6_kybd.kcm.bin:system/usr/keychars/sf6_kybd.kcm.bin \
device/fih/fb0/keychars/sf8_kybd.kcm.bin:system/usr/keychars/sf8_kybd.kcm.bin \
device/fih/fb0/keychars/surf_keypad.kcm.bin:system/usr/keychars/surf_keypad.kcm.bin \
device/fih/fb0/keychars/surf_keypad_qwerty.kcm.bin:system/usr/keychars/surf_keypad_qwerty.kcm.bin \
device/fih/fb0/keychars/surf_keypad_numeric.kcm.bin:system/usr/keychars/surf_keypad_numeric.kcm.bin
# Keylayouts
PRODUCT_COPY_FILES += \
device/fih/fb0/keylayout/bu21018mwvkey.kl:system/usr/keylayout/bu21018mwvkey.kl \
device/fih/fb0/keylayout/fih_headsethook.kl:system/usr/keylayout/fih_headsethook.kl \
device/fih/fb0/keylayout/fih_ringswitch.kl:system/usr/keylayout/fih_ringswitch.kl \
device/fih/fb0/keylayout/fluid-keypad.kl:system/usr/keylayout/fluid-keypad.kl \
device/fih/fb0/keylayout/fbx_kybd.kl:system/usr/keylayout/fbx_kybd.kl \
device/fih/fb0/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
device/fih/fb0/keylayout/sf6_kybd.kl:system/usr/keylayout/sf6_kybd.kl \
device/fih/fb0/keylayout/sf8_kybd.kl:system/usr/keylayout/sf8_kybd.kl \
device/fih/fb0/keylayout/msm_tma300_ts.kl:system/usr/keylayout/msm_tma300_ts.kl \
device/fih/fb0/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/fih/fb0/keylayout/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
device/fih/fb0/keylayout/surf_keypad.kl:system/usr/keylayout/surf_keypad.kl \
device/fih/fb0/keylayout/Generic.kl:system/usr/keylayout/Generic.kl
# Video firmware
PRODUCT_COPY_FILES += \
device/fih/fb0/files/etc/firmware/vidc_720p_command_control.fw:/system/etc/firmware/vidc_720p_command_control.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_h263_dec_mc.fw:/system/etc/firmware/vidc_720p_h263_dec_mc.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_h264_dec_mc.fw:/system/etc/firmware/vidc_720p_h264_dec_mc.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_h264_enc_mc.fw:/system/etc/firmware/vidc_720p_h264_enc_mc.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_mp4_dec_mc.fw:/system/etc/firmware/vidc_720p_mp4_dec_mc.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_mp4_enc_mc.fw:/system/etc/firmware/vidc_720p_mp4_enc_mc.fw \
device/fih/fb0/files/etc/firmware/vidc_720p_vc1_dec_mc.fw:/system/etc/firmware/vidc_720p_vc1_dec_mc.fw \
device/fih/fb0/files/etc/firmware/yamato_pfp.fw:/system/etc/firmware/yamato_pfp.fw \
device/fih/fb0/files/etc/firmware/yamato_pm4.fw:/system/etc/firmware/yamato_pm4.fw \
device/fih/fb0/files/etc/firmware/a225_pfp.fw:/system/etc/firmware/a225_pfp.fw \
device/fih/fb0/files/etc/firmware/a225_pm4.fw:/system/etc/firmware/a225_pm4.fw \
device/fih/fb0/files/etc/firmware/a225p5_pm4.fw:/system/etc/firmware/a225p5_pm4.fw \
device/fih/fb0/files/etc/firmware/a300_pfp.fw:/system/etc/firmware/a300_pfp.fw \
device/fih/fb0/files/etc/firmware/a300_pm4.fw:/system/etc/firmware/a300_pm4.fw \
device/fih/fb0/files/etc/firmware/leia_pfp_470.fw:/system/etc/firmware/leia_pfp_470.fw \
device/fih/fb0/files/etc/firmware/leia_pm4_470.fw:/system/etc/firmware/leia_pm4_470.fw \
# Wifi and filesystems
PRODUCT_COPY_FILES += \
device/fih/fb0/modules/libra.ko:/system/lib/modules/libra.ko \
device/fih/fb0/modules/librasdioif.ko:/system/lib/modules/librasdioif.ko \
device/fih/fb0/modules/libra_ftm.ko:/system/lib/modules/libra_ftm.ko \
device/fih/fb0/files/etc/firmware/wlan/qcom_fw.bin:/system/etc/firmware/wlan/qcom_fw.bin \
device/fih/fb0/files/etc/firmware/wlan/qcom_wapi_fw.bin:/system/etc/firmware/wlan/qcom_wapi_fw.bin \
device/fih/fb0/files/etc/firmware/wlan/qcom_wlan_nv.bin:/system/etc/firmware/wlan/qcom_wlan_nv.bin \
device/fih/fb0/files/etc/firmware/wlan/cfg.dat:/system/etc/firmware/wlan/cfg.dat \
device/fih/fb0/files/etc/firmware/wlan/hostapd_default.conf:/system/etc/firmware/wlan/hostapd_default.conf \
device/fih/fb0/files/etc/firmware/wlan/qcom_cfg.ini:/system/etc/firmware/wlan/qcom_cfg.ini \
device/fih/fb0/files/etc/wifi/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf
# GPS
PRODUCT_COPY_FILES += \
device/fih/fb0/files/etc/loc_parameter.ini:system/etc/loc_parameter.ini \
device/fih/fb0/files/etc/gps.conf:/system/etc/gps.conf
# idc
PRODUCT_COPY_FILES += \
device/fih/fb0/files/usr/idc/bu21018mwv-ics.idc:/system/usr/idc/bu21018mwv-ics.idc \
device/fih/fb0/files/usr/idc/bi041p.idc:/system/usr/idc/bi041p.idc
# xml config
PRODUCT_COPY_FILES += \
device/fih/fb0/files/etc/media_profiles.xml:system/etc/media_profiles.xml
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number
PRODUCT_PROPERTY_OVERRIDES += \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
ro.telephony.default_network=0 \
ro.telephony.call_ring.multiple=false \
ro.telephony.ril_class=LGEQualcommRIL \
ro.telephony.ril.v3=icccardstatus,skipbrokendatacall,datacall,signalstrength,facilitylock \
keyguard.no_require_sim=true \
ro.com.google.locationfeatures=1 \
dalvik.vm.dexopt-flags=m=y \
dalvik.vm.dexopt-data-only=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.execution-mode=int:jit \
ro.sf.lcd_density=240 \
dalvik.vm.checkjni=false \
ro.opengles.version=131072 \
ro.compcache.default=0 \
ro.product.locale.language=en \
ro.product.locale.region=US \
ro.use_data_netmgrd=true \
hwui.render_dirty_regions=false
# hwui.render_dirty_regions=false \
# ro.cm.version=9-${DATE}-SNAPSHOT-FB0 \
# ro.modversion=9-${DATE}-SNAPSHOT-FB0
# High-density art, but English locale
PRODUCT_LOCALES += en
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
$(call inherit-product, build/target/product/full_base.mk)
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=fb0 \
TARGET_DEVICE=fb0 \
BUILD_FINGERPRINT="google/yakju/maguro:4.0.4/IMM76D/299849:user/release-keys" \
PRIVATE_BUILD_DESC="yakju-user 4.0.4 IMM76D 299849 release-keys" \
BUILD_NUMBER=${DATE} \
BUILD_VERSION_TAGS=release-keys \
TARGET_BUILD_TYPE=user