-
Notifications
You must be signed in to change notification settings - Fork 10
/
FP2.mk
181 lines (154 loc) · 7.24 KB
/
FP2.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
TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
# Audio configuration file
PRODUCT_COPY_FILES += \
device/fairphone/FP2/audio/audio_policy.conf:system/etc/audio_policy.conf \
device/fairphone/FP2/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
device/fairphone/FP2/audio/mixer_paths.xml:system/etc/mixer_paths.xml \
device/fairphone/FP2/audio/mixer_paths_auxpcm.xml:system/etc/mixer_paths_auxpcm.xml
PRODUCT_COPY_FILES += \
device/fairphone/FP2/media/media_profiles_8974.xml:system/etc/media_profiles.xml \
device/fairphone/FP2/media/media_codecs_8974.xml:system/etc/media_codecs.xml
PRODUCT_PROPERTY_OVERRIDES += \
ubuntu.widi.supported=1 \
sys.usb.config=mtp,adb
PRODUCT_PACKAGES += \
audiod \
audio.a2dp.default \
audio_policy.msm8974 \
audio.primary.msm8974 \
audio.r_submix.default \
audio.usb.default \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
tinymix \
ip libiprouteutil \
iptables libiptc libext
# Feature definition files for 8974
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml
# Graphics
PRODUCT_PACKAGES += \
copybit.msm8974 \
gralloc.msm8974 \
hwcomposer.msm8974 \
memtrack.msm8974 \
liboverlay
#fstab.qcom
PRODUCT_PACKAGES += fstab.qcom
# Power
PRODUCT_PACKAGES += \
power.msm8974
# Keylayouts and Keychars
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/atmel_mxt_ts.kl:system/usr/keylayout/atmel_mxt_ts.kl \
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl
#wlan driver
PRODUCT_COPY_FILES += \
device/fairphone/FP2/wifi/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
device/fairphone/FP2/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin
PRODUCT_PACKAGES += \
wpa_supplicant_overlay.conf \
p2p_supplicant_overlay.conf
#PRODUCT_PACKAGES += wcnss_service
#ANT stack
PRODUCT_PACKAGES += \
AntHalService \
libantradio \
ANTRadioService \
antradio_app
# Media
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libdivxdrmdecrypt \
libdashplayer \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVdecHevc \
libOmxVenc \
libstagefrighthw \
qcmediaplayer
# Misc dependency packages
PRODUCT_PACKAGES += \
ebtables \
ethertypes \
libnl_2 \
libbson \
libcnefeatureconfig \
libtinyxml \
libxml2
PRODUCT_PACKAGES += \
conn_init
# Charger
PRODUCT_PACKAGES += \
charger_res_images
# Ramdisk
PRODUCT_COPY_FILES += \
device/fairphone/FP2/rootdir/root/init.qcom.modem_links.sh:root/init.qcom.modem_links.sh \
device/fairphone/FP2/rootdir/root/init_bt.sh:root/init_bt.sh \
device/fairphone/FP2/rootdir/root/init.wcnss.wifi.sh:root/init.wcnss.wifi.sh \
device/fairphone/FP2/rootdir/root/fstab.qcom:root/fstab.qcom \
device/fairphone/FP2/rootdir/root/recovery.fstab:recovery/root/etc/recovery.fstab \
device/fairphone/FP2/rootdir/root/recovery.fstab:recovery/root/etc/fstab \
device/fairphone/FP2/rootdir/root/twrp.fstab:root/twrp.fstab \
device/fairphone/FP2/rootdir/root/init.qcom.rc:root/init.qcom.rc \
device/fairphone/FP2/rootdir/root/init.qcom.syspart_fixup.sh:root/init.qcom.syspart_fixup.sh \
device/fairphone/FP2/rootdir/root/init.qcom.ssr.sh:root/init.qcom.ssr.sh \
device/fairphone/FP2/rootdir/root/init.qcom.modem_links.sh:root/init.qcom.modem_links.sh \
device/fairphone/FP2/rootdir/root/init.qcom.factory.sh:root/init.qcom.factory.sh \
device/fairphone/FP2/rootdir/root/init.qcom.early_boot.sh:root/init.qcom.early_boot.sh \
device/fairphone/FP2/rootdir/root/init.qcom.class_core.sh:root/init.qcom.class_core.sh \
device/fairphone/FP2/rootdir/root/init.mdm.sh:root/init.mdm.sh \
device/fairphone/FP2/rootdir/root/init.class_main.sh:root/init.class_main.sh \
device/fairphone/FP2/rootdir/root/init.target.rc:root/init.target.rc \
device/fairphone/FP2/rootdir/root/init.qcom.usb.rc:root/init.qcom.usb.rc \
device/fairphone/FP2/rootdir/root/init.qcom.usb.sh:root/init.qcom.usb.sh \
device/fairphone/FP2/rootdir/root/ueventd.qcom.rc:root/ueventd.qcom.rc \
device/fairphone/FP2/rootdir/root/init.rc:root/init.rc
# Configs
PRODUCT_COPY_FILES += \
device/fairphone/FP2/rootdir/system/etc/usf_post_boot.sh:system/etc/usf_post_boot.sh \
device/fairphone/FP2/rootdir/system/etc/init_wlan_bt.sh:system/etc/init_wlan_bt.sh \
device/fairphone/FP2/rootdir/system/etc/usf_settings.sh:system/etc/usf_settings.sh
# Enable strict operation
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.strict_op_enable=false \
persist.sys.usb.config=mtp,adb
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
PRODUCT_BOOT_JARS += \
qcmediaplayer \
org.codeaurora.Performance \
vcard \
tcmiface
# Ubuntu Overlay Files
PRODUCT_COPY_FILES += \
device/fairphone/FP2/ubuntu/adbd.conf:system/ubuntu/etc/init/adbd.conf \
device/fairphone/FP2/ubuntu/bluetooth-touch-FP2.conf:system/ubuntu/etc/init/bluetooth-touch-FP2.conf \
device/fairphone/FP2/ubuntu/FP2.conf:system/ubuntu/etc/ubuntu-touch-session.d/FP2.conf \
device/fairphone/FP2/ubuntu/set-brightness-fp2.conf:system/ubuntu/etc/set-brightness-fp2.conf \
device/fairphone/FP2/ubuntu/ubuntu-location-service.conf:system/ubuntu/etc/ubuntu-location-service.conf \
device/fairphone/FP2/ubuntu/70-FP2.rules:system/ubuntu/usr/lib/lxc-android-config/70-FP2.rules \
device/fairphone/FP2/ubuntu/config.xml:system/ubuntu/usr/share/repowerd/device-configs/config-FP2.xml \
device/fairphone/FP2/ubuntu/ofono.override:system/ubuntu/etc/init/ofono.override \
device/fairphone/FP2/audio/mixer_paths.xml:system/ubuntu/etc/mixer_paths.xml \
device/fairphone/FP2/audio/mixer_paths_auxpcm.xml:system/ubuntu/etc/mixer_paths_auxpcm.xml \
device/fairphone/FP2/ubuntu/android.conf:system/ubuntu/etc/ubuntu-touch-session.d/android.conf \
device/fairphone/FP2/ubuntu/android.conf:system/ubuntu/etc/ubuntu-touch-session.d/FP2.conf
#This keeps time correct across reboots
PRODUCT_PACKAGES += timekeep
# include an expanded selection of fonts for the SDK.
EXTENDED_FONT_FOOTPRINT := true
$(call inherit-product, device/fairphone/FP2/mdt.mk)
$(call inherit-product, hardware/qcom/display-caf/msm8974/Android.mk)