forked from intervigilium/android_device_htc_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_ruby.mk
150 lines (131 loc) · 7.23 KB
/
device_ruby.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
#
# 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.
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# common msm8660 configs
$(call inherit-product, device/htc/msm8660-common/msm8660.mk)
DEVICE_PACKAGE_OVERLAYS += device/htc/ruby/overlay
# GPS
PRODUCT_PACKAGES += \
gps.ruby
# NFC
PRODUCT_PACKAGES += \
libnfc \
libnfc_jni \
Nfc \
Tag \
com.android.nfc_extras
# Wifi
PRODUCT_PACKAGES += \
dhcpcd.conf \
hostapd.conf \
wpa_supplicant.conf \
tiwlan.ini \
TQS_D_1.7.ini \
TQS_D_1.7_127x.ini \
calibrator
# wifi firmware
PRODUCT_COPY_FILES += \
device/htc/ruby/firmware/ti-connectivity/wl127x-fw-4-mr.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-mr.bin \
device/htc/ruby/firmware/ti-connectivity/wl127x-fw-4-plt.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-plt.bin \
device/htc/ruby/firmware/ti-connectivity/wl127x-fw-4-sr.bin:system/etc/firmware/ti-connectivity/wl127x-fw-4-sr.bin \
device/htc/ruby/firmware/ti-connectivity/wl1271-nvs.bin:system/etc/firmware/ti-connectivity/wl1271-nvs.bin \
device/htc/ruby/firmware/fmc_init_1273.2.bts:system/etc/firmware/fmc_init_1273.2.bts \
device/htc/ruby/firmware/fm_rx_init_1273.2.bts:system/etc/firmware/fm_rx_init_1273.2.bts \
device/htc/ruby/firmware/htc_1271fw.bin:system/etc/firmware/htc_1271fw.bin \
device/htc/ruby/firmware/htc_1271fw_196_header.bin:system/etc/firmware/htc_1271fw_196_header.bin \
device/htc/ruby/firmware/TIInit_7.6.15.bts:system/etc/firmware/TIInit_7.6.15.bts \
device/htc/ruby/firmware/WL127x_2.0_2.25.bts:system/etc/firmware/WL127x_2.0_2.25.bts \
device/htc/ruby/firmware/vac_config.ini:system/etc/firmware/vac_config.ini \
device/htc/ruby/firmware/version:system/etc/firmware/version \
device/htc/ruby/firmware/firmware.bin:system/etc/wifi/firmware.bin \
device/htc/ruby/firmware/firmware_ap.bin:system/etc/wifi/firmware_ap.bin
# Ramdisk files
PRODUCT_COPY_FILES += \
device/htc/ruby/ramdisk/fstab.ruby:root/fstab.ruby \
device/htc/ruby/ramdisk/init.qcom.sh:root/init.qcom.sh \
device/htc/ruby/ramdisk/init.ruby.rc:root/init.ruby.rc \
device/htc/ruby/ramdisk/init.ruby.usb.rc:root/init.ruby.usb.rc \
device/htc/ruby/ramdisk/ueventd.ruby.rc:root/ueventd.ruby.rc
# recovery and custom charging
PRODUCT_COPY_FILES += \
device/htc/ruby/recovery/root/sbin/choice_fn:recovery/root/sbin/choice_fn \
device/htc/ruby/recovery/root/sbin/power_test:recovery/root/sbin/power_test \
device/htc/ruby/recovery/root/sbin/offmode_charging:recovery/root/sbin/offmode_charging \
device/htc/ruby/recovery/root/sbin/detect_key:recovery/root/sbin/detect_key \
device/htc/ruby/recovery/root/sbin/htcbatt:recovery/root/sbin/htcbatt
# Vold
PRODUCT_COPY_FILES += \
device/htc/ruby/vold.fstab:system/etc/vold.fstab
# Keylayouts and Keychars
PRODUCT_COPY_FILES += \
device/htc/ruby/keychars/ruby-keypad.kcm:system/usr/keychars/ruby-keypad.kcm \
device/htc/ruby/keylayout/atmel-touchscreen.kl:system/usr/keylayout/atmel-touchscreen.kl \
device/htc/ruby/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl \
device/htc/ruby/keylayout/h2w_headset.kl:system/usr/keylayout/h2w_headset.kl \
device/htc/ruby/keylayout/ruby-keypad.kl:system/usr/keylayout/ruby-keypad.kl
# Input device config
PRODUCT_COPY_FILES += \
device/htc/ruby/idc/atmel-touchscreen.idc:system/usr/idc/atmel-touchscreen.idc \
device/htc/ruby/idc/ruby-keypad.idc:system/usr/idc/ruby-keypad.idc
# Sound configs
PRODUCT_COPY_FILES += \
device/htc/ruby/dsp/AdieHWCodec.csv:system/etc/AdieHWCodec.csv \
device/htc/ruby/dsp/AIC3254_REG_DualMic.csv:system/etc/AIC3254_REG_DualMic.csv \
device/htc/ruby/dsp/AIC3254_REG_DualMic_XD.csv:system/etc/AIC3254_REG_DualMic_XD.csv \
device/htc/ruby/dsp/AudioBTID.csv:system/etc/AudioBTID.csv \
device/htc/ruby/dsp/CodecDSPID.txt:system/etc/CodecDSPID.txt \
device/htc/ruby/dsp/TPA2051_CFG.csv:system/etc/TPA2051_CFG.csv \
device/htc/ruby/dsp/TPA2051_CFG_XC.csv:system/etc/TPA2051_CFG_XC.csv \
device/htc/ruby/dsp/TPA2051_CFG_XC.csv:system/etc/TPA2051_CFG_XB.csv \
device/htc/ruby/dsp/soundimage/Sound_MFG.txt:system/etc/soundimage/Sound_MFG.txt \
device/htc/ruby/dsp/soundimage/Sound_Original_Recording.txt:system/etc/soundimage/Sound_Original_Recording.txt \
device/htc/ruby/dsp/soundimage/Sound_Original_SPK.txt:system/etc/soundimage/Sound_Original_SPK.txt \
device/htc/ruby/dsp/soundimage/Sound_Original.txt:system/etc/soundimage/Sound_Original.txt \
device/htc/ruby/dsp/soundimage/Sound_Phone_Original_HP.txt:system/etc/soundimage/Sound_Phone_Original_HP.txt \
device/htc/ruby/dsp/soundimage/Sound_Phone_Original_REC.txt:system/etc/soundimage/Sound_Phone_Original_REC.txt \
device/htc/ruby/dsp/soundimage/Sound_Phone_Original_SPK.txt:system/etc/soundimage/Sound_Phone_Original_SPK.txt \
device/htc/ruby/dsp/soundimage/Sound_Rec_Landscape.txt:system/etc/soundimage/Sound_Rec_Landscape.txt \
device/htc/ruby/dsp/soundimage/Sound_Rec_Portrait.txt:system/etc/soundimage/Sound_Rec_Portrait.txt \
device/htc/ruby/dsp/soundimage/Sound_Recording.txt:system/etc/soundimage/Sound_Recording.txt \
device/htc/ruby/dsp/soundimage/srs_geq10.cfg:system/etc/soundimage/srs_geq10.cfg \
device/htc/ruby/dsp/soundimage/srsfx_trumedia_51.cfg:system/etc/soundimage/srsfx_trumedia_51.cfg \
device/htc/ruby/dsp/soundimage/srsfx_trumedia_movie.cfg:system/etc/soundimage/srsfx_trumedia_movie.cfg \
device/htc/ruby/dsp/soundimage/srsfx_trumedia_music.cfg:system/etc/soundimage/srsfx_trumedia_music.cfg \
device/htc/ruby/dsp/soundimage/srsfx_trumedia_voice.cfg:system/etc/soundimage/srsfx_trumedia_voice.cfg
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
# misc
PRODUCT_PROPERTY_OVERRIDES += \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
ro.com.google.locationfeatures=1 \
dalvik.vm.dexopt-flags=m=y
# call proprietary setup
$(call inherit-product-if-exists, vendor/htc/ruby/ruby-vendor.mk)
# htc audio settings
$(call inherit-product, device/htc/ruby/media_a1026.mk)
$(call inherit-product, device/htc/ruby/media_htcaudio.mk)
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
# Discard inherited values and use our own instead.
PRODUCT_DEVICE := ruby
PRODUCT_NAME := ruby
PRODUCT_BRAND := htc
PRODUCT_MODEL := Amaze 4G
PRODUCT_MANUFACTURER := HTC