Commit | Line | Data |
---|---|---|
318eac2f DW |
1 | # |
2 | # Copyright (C) 2018 The LineageOS Project | |
3 | # | |
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
5 | # you may not use this file except in compliance with the License. | |
6 | # You may obtain a copy of the License at | |
7 | # | |
8 | # http://www.apache.org/licenses/LICENSE-2.0 | |
9 | # | |
10 | # Unless required by applicable law or agreed to in writing, software | |
11 | # distributed under the License is distributed on an "AS IS" BASIS, | |
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | # See the License for the specific language governing permissions and | |
14 | # limitations under the License. | |
15 | # | |
16 | ||
17 | LOCAL_PATH := device/samsung/a7xelte | |
18 | ||
19 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) | |
20 | ||
9c199338 DW |
21 | # Audio |
22 | PRODUCT_COPY_FILES += \ | |
b830f4de DW |
23 | $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml \ |
24 | $(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml | |
9c199338 | 25 | |
85a78b61 CH |
26 | |
27 | PRODUCT_PACKAGES += \ | |
28 | libtfa98xx \ | |
29 | audio_amplifier.universal7580 \ | |
30 | libtinycompress | |
31 | ||
90886336 DW |
32 | # Boot animation |
33 | TARGET_BOOTANIMATION_PRELOAD := true | |
34 | TARGET_BOOTANIMATION_TEXTURE_CACHE := true | |
35 | TARGET_SCREEN_HEIGHT := 1920 | |
36 | TARGET_SCREEN_WIDTH := 1080 | |
37 | ||
6d65e77e DW |
38 | # Bluetooth |
39 | PRODUCT_COPY_FILES += \ | |
40 | $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf | |
41 | ||
42 | PRODUCT_PACKAGES += \ | |
43 | android.hardware.bluetooth@1.0-service | |
7edd0756 | 44 | |
f1b0c81b DW |
45 | # Fingerprint |
46 | PRODUCT_PACKAGES += \ | |
4a17e468 | 47 | libbauthtzcommon_shim \ |
9bb68de0 | 48 | android.hardware.biometrics.fingerprint@2.1-service.samsung |
f1b0c81b | 49 | |
3990846f FC |
50 | # FastCharge |
51 | PRODUCT_PACKAGES += \ | |
52 | vendor.lineage.fastcharge@1.0-service.samsung | |
53 | ||
61fb7f1b S |
54 | # Camera |
55 | PRODUCT_PACKAGES += \ | |
67162c6e | 56 | camera.universal7580 \ |
61fb7f1b S |
57 | Snap |
58 | ||
1c8ed26b S |
59 | # hardware/samsung/AdvancedDisplay (MDNIE) |
60 | PRODUCT_PACKAGES += \ | |
61 | AdvancedDisplay | |
62 | ||
052ed8e8 S |
63 | # Graphics |
64 | # Device uses high-density artwork where available | |
65 | PRODUCT_AAPT_CONFIG := xlarge | |
66 | PRODUCT_AAPT_PREF_CONFIG := xhdpi | |
67 | # A list of dpis to select prebuilt apk, in precedence order. | |
68 | PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi | |
69 | ||
7edd0756 DW |
70 | # Keylayouts |
71 | PRODUCT_COPY_FILES += \ | |
72 | $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \ | |
73 | $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl | |
74 | ||
56a65324 DT |
75 | # Livedisplay |
76 | PRODUCT_PACKAGES += \ | |
77 | vendor.lineage.livedisplay@2.0-service.samsung-exynos | |
78 | ||
de585bf9 DW |
79 | # NFC |
80 | PRODUCT_COPY_FILES += \ | |
81 | $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \ | |
7ad6af22 | 82 | $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-nci.conf \ |
de585bf9 DW |
83 | $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml |
84 | ||
85 | PRODUCT_PACKAGES += \ | |
86 | libnfc-nci \ | |
87 | libnfc_nci_jni \ | |
88 | NfcNci \ | |
89 | Tag \ | |
90 | com.android.nfc_extras \ | |
91 | android.hardware.nfc@1.0-impl | |
92 | ||
7902124f DW |
93 | # Permissions |
94 | PRODUCT_COPY_FILES += \ | |
f8ea8420 JA |
95 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \ |
96 | frameworks/native/data/etc/android.hardware.camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.xml \ | |
97 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ | |
98 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ | |
99 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \ | |
100 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \ | |
101 | frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \ | |
102 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml \ | |
103 | frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \ | |
104 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \ | |
105 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \ | |
106 | frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.heartrate.xml \ | |
107 | frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \ | |
108 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ | |
109 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml \ | |
110 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ | |
111 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ | |
112 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ | |
113 | frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \ | |
e34c559a L |
114 | $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \ |
115 | $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml | |
7902124f | 116 | |
318eac2f DW |
117 | # Ramdisk |
118 | PRODUCT_PACKAGES += \ | |
119 | init.target.rc | |
120 | ||
f5829732 DW |
121 | # Radio |
122 | PRODUCT_PACKAGES += \ | |
123 | libprotobuf-cpp-full \ | |
124 | libsecril-client \ | |
125 | modemloader \ | |
126 | libxml2 \ | |
127 | rild \ | |
128 | libril \ | |
129 | libreference-ril \ | |
130 | libsecril-client-sap \ | |
131 | android.hardware.radio@1.1 \ | |
132 | android.hardware.radio.deprecated@1.0 | |
133 | ||
134 | PRODUCT_COPY_FILES += \ | |
3bafbfa5 | 135 | device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc |
f5829732 | 136 | |
aebc8381 DW |
137 | # Overlays |
138 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay | |
139 | ||
25279b88 | 140 | # Vendor security patch level (vendor blobs from A710FXXU2CRK1) |
9911d4bc | 141 | PRODUCT_PROPERTY_OVERRIDES += \ |
25279b88 | 142 | ro.lineage.build.vendor_security_patch=2018-11-01 |
9911d4bc | 143 | |
6391a6c2 DW |
144 | # Wi-fi |
145 | PRODUCT_COPY_FILES += \ | |
146 | $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \ | |
f8ea8420 JA |
147 | $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ |
148 | $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ | |
6391a6c2 DW |
149 | $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie |
150 | ||
e820d3bb DW |
151 | # Properties |
152 | -include $(LOCAL_PATH)/system_prop.mk | |
153 | ||
318eac2f DW |
154 | # Inherit from universal7580-common |
155 | $(call inherit-product, device/samsung/universal7580-common/device-common.mk) | |
f5829732 | 156 | |
1d6309ec DW |
157 | # Call the proprietary setup |
158 | $(call inherit-product, vendor/samsung/a7xelte/a7xelte-vendor.mk) |