-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_vigor.mk
executable file
·142 lines (119 loc) · 6.39 KB
/
full_vigor.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
#
# Copyright (C) 2012 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Overlays
DEVICE_PACKAGE_OVERLAYS := device/htc/vigor/overlay
# The gps config appropriate for this device
PRODUCT_COPY_FILES += device/common/gps/gps.conf_US:system/etc/gps.conf
# Get the sample verizon list of APNs
PRODUCT_COPY_FILES := device/sample/etc/apns-conf_verizon.xml:system/etc/apns-conf.xml
# Recovery and custom charging
PRODUCT_COPY_FILES += \
device/htc/vigor/recovery/sbin/choice_fn:recovery/root/sbin/choice_fn \
device/htc/vigor/recovery/sbin/power_test:recovery/root/sbin/power_test \
device/htc/vigor/recovery/sbin/offmode_charging:recovery/root/sbin/offmode_charging \
device/htc/vigor/recovery/sbin/detect_key:recovery/root/sbin/detect_key \
device/htc/vigor/recovery/sbin/htcbatt:recovery/root/sbin/htcbatt
# Ramdisk
PRODUCT_COPY_FILES += \
device/htc/vigor/ramdisk/init.rc:root/init.rc \
device/htc/vigor/ramdisk/init.vigor.rc:root/init.vigor.rc \
device/htc/vigor/ramdisk/ueventd.vigor.rc:root/ueventd.vigor.rc \
device/htc/vigor/ramdisk/init.vigor.usb.rc:root/init.vigor.usb.rc \
device/htc/vigor/ramdisk/sbin/gzip_recvy:root/sbin/gzip_recvy \
device/htc/vigor/ramdisk/sbin/htc_ebdlogd_recvy:root/sbin/htc_ebdlogd_recvy \
device/htc/vigor/ramdisk/sbin/logcat2_recvy:root/sbin/logcat2_recvy \
device/htc/vigor/ramdisk/sbin/mfgsrv:root/sbin/mfgsrv
# QCOM
PRODUCT_COPY_FILES += \
device/htc/vigor/prebuilt/etc/init.qcom.modem_links.sh:system/etc/init.qcom.modem_links.sh \
device/htc/vigor/prebuilt/etc/init.qcom.mdm_links.sh:system/etc/init.qcom.mdm_links.sh
# Vold
PRODUCT_COPY_FILES += device/htc/vigor/configs/vold.fstab:system/etc/vold.fstab
# Misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-verizon \
ro.com.google.locationfeatures=1 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.dexopt-flags=m=y
# Permissions
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
# Misc
PRODUCT_PACKAGES += gps.vigor Stk FileManager
# HTC BT Audio tune
PRODUCT_COPY_FILES += device/htc/vigor/dsp/AudioBTID.csv:system/etc/AudioBTID.csv
PRODUCT_PACKAGES += \
hcitool \
hciconfig \
## cm dsp manager
PRODUCT_PACKAGES += \
DSPManager \
libcyanogen-dsp
# Sound DSP
PRODUCT_COPY_FILES += \
device/htc/vigor/dsp/AdieHWCodec.csv:system/etc/AdieHWCodec.csv \
device/htc/vigor/dsp/AdieHWCodec_BEATS_HW.csv:system/etc/AdieHWCodec_BEATS_HW.csv \
device/htc/vigor/dsp/AIC3254_REG.csv:system/etc/AIC3254_REG.csv \
device/htc/vigor/dsp/AIC3254_REG_DualMic.csv:system/etc/AIC3254_REG_DualMic.csv \
device/htc/vigor/dsp/CodecDSPID.txt:system/etc/CodecDSPID.txt \
device/htc/vigor/dsp/TPA2051_CFG.csv:system/etc/TPA2051_CFG.csv
# Sound Image DSP
PRODUCT_COPY_FILES += \
device/htc/vigor/dsp/soundimage/Sound_Original.txt:system/etc/soundimage/Sound_Original.txt \
device/htc/vigor/dsp/soundimage/srs_bypass.cfg:system/etc/soundimage/srs_bypass.cfg \
device/htc/vigor/dsp/soundimage/srs_geq10.cfg:system/etc/soundimage/srs_geq10.cfg \
device/htc/vigor/dsp/soundimage/srs_global.cfg:system/etc/soundimage/srs_global.cfg \
device/htc/vigor/dsp/soundimage/srsfx_trumedia_51.cfg:system/etc/soundimage/srsfx_trumedia_51.cfg \
device/htc/vigor/dsp/soundimage/srsfx_trumedia_movie.cfg:system/etc/soundimage/srsfx_trumedia_movie.cfg \
device/htc/vigor/dsp/soundimage/srsfx_trumedia_music.cfg:system/etc/soundimage/srsfx_trumedia_music.cfg \
device/htc/vigor/dsp/soundimage/srsfx_trumedia_music_wide.cfg:system/etc/soundimage/srsfx_trumedia_music_wide.cfg \
device/htc/vigor/dsp/soundimage/srsfx_trumedia_voice.cfg:system/etc/soundimage/srsfx_trumedia_voice.cfg
# Keylayouts and Keychars
PRODUCT_COPY_FILES += \
device/htc/vigor/keychars/BT_HID.kcm.bin:system/usr/keychars/BT_HID.kcm.bin \
device/htc/vigor/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
device/htc/vigor/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
device/htc/vigor/keychars/vigor-keypad.kcm.bin:system/usr/keychars/vigor-keypad.kcm.bin \
device/htc/vigor/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl\
device/htc/vigor/keylayout/vigor-keypad.kl:system/usr/keylayout/vigor-keypad.kl \
device/htc/vigor/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/htc/vigor/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl\
device/htc/vigor/keylayout/atmel-touchscreen.kl:system/usr/keylayout/atmel-touchscreen.kl \
device/htc/vigor/prebuilt/atmel-touchscreen.idc:system/usr/idc/atmel-touchscreen.idc
# Firmware
PRODUCT_COPY_FILES += \
device/htc/vigor/firmware/default_bak.acdb:system/etc/firmware/default_bak.acdb
# Graphics
PRODUCT_COPY_FILES += device/htc/vigor/configs/adreno_config.txt:system/etc/adreno_config.txt
# QC thermald config
PRODUCT_COPY_FILES += device/htc/vigor/prebuilt/thermald.conf:system/etc/thermald.conf
# Wifi
PRODUCT_COPY_FILES += device/htc/vigor/configs/wpa_supplicant.conf:/system/etc/wifi/wpa_supplicant.conf
BOARD_WLAN_DEVICE_REV := bcm4330_b2
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_LOCALES += en_US
# Inherit configs
$(call inherit-product-if-exists, vendor/htc/vigor/vigor-vendor.mk)
$(call inherit-product, device/htc/msm8660-common/msm8660.mk)
$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk)
$(call inherit-product, build/target/product/full_base_telephony.mk)