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 += \ | |
23 | $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml | |
24 | ||
85a78b61 CH |
25 | |
26 | PRODUCT_PACKAGES += \ | |
27 | libtfa98xx \ | |
28 | audio_amplifier.universal7580 \ | |
29 | libtinycompress | |
30 | ||
90886336 DW |
31 | # Boot animation |
32 | TARGET_BOOTANIMATION_PRELOAD := true | |
33 | TARGET_BOOTANIMATION_TEXTURE_CACHE := true | |
34 | TARGET_SCREEN_HEIGHT := 1920 | |
35 | TARGET_SCREEN_WIDTH := 1080 | |
36 | ||
6d65e77e DW |
37 | # Bluetooth |
38 | PRODUCT_COPY_FILES += \ | |
39 | $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf | |
40 | ||
41 | PRODUCT_PACKAGES += \ | |
42 | android.hardware.bluetooth@1.0-service | |
7edd0756 | 43 | |
f1b0c81b DW |
44 | # Fingerprint |
45 | PRODUCT_PACKAGES += \ | |
46 | fingerprint.exynos5 \ | |
4a17e468 | 47 | libbauthtzcommon_shim \ |
f1b0c81b DW |
48 | android.hardware.biometrics.fingerprint@2.1-impl \ |
49 | android.hardware.biometrics.fingerprint@2.1-service | |
50 | ||
61fb7f1b S |
51 | # Camera |
52 | PRODUCT_PACKAGES += \ | |
53 | Snap | |
54 | ||
ecece76e DW |
55 | # GPS |
56 | PRODUCT_COPY_FILES += \ | |
57 | $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \ | |
58 | $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml | |
6d65e77e | 59 | |
1c8ed26b S |
60 | # hardware/samsung/AdvancedDisplay (MDNIE) |
61 | PRODUCT_PACKAGES += \ | |
62 | AdvancedDisplay | |
63 | ||
052ed8e8 S |
64 | # Graphics |
65 | # Device uses high-density artwork where available | |
66 | PRODUCT_AAPT_CONFIG := xlarge | |
67 | PRODUCT_AAPT_PREF_CONFIG := xhdpi | |
68 | # A list of dpis to select prebuilt apk, in precedence order. | |
69 | PRODUCT_AAPT_PREBUILT_DPI := hdpi mdpi | |
70 | ||
522165c0 DW |
71 | # HIDL Manifest |
72 | PRODUCT_COPY_FILES += \ | |
73 | $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml | |
74 | ||
7edd0756 DW |
75 | # Keylayouts |
76 | PRODUCT_COPY_FILES += \ | |
77 | $(LOCAL_PATH)/keylayout/gpio_keys.kl:system/usr/keylayout/gpio_keys.kl \ | |
78 | $(LOCAL_PATH)/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl | |
79 | ||
de585bf9 DW |
80 | # NFC |
81 | PRODUCT_COPY_FILES += \ | |
82 | $(LOCAL_PATH)/configs/nfc/libnfc-sec-hal.conf:system/etc/libnfc-sec-hal.conf \ | |
7ad6af22 | 83 | $(LOCAL_PATH)/configs/nfc/libnfc-sec.conf:system/etc/libnfc-nci.conf \ |
de585bf9 DW |
84 | $(LOCAL_PATH)/configs/nfc/nfcee_access.xml:system/etc/nfcee_access.xml |
85 | ||
86 | PRODUCT_PACKAGES += \ | |
87 | libnfc-nci \ | |
88 | libnfc_nci_jni \ | |
89 | NfcNci \ | |
90 | Tag \ | |
91 | com.android.nfc_extras \ | |
92 | android.hardware.nfc@1.0-impl | |
93 | ||
7902124f DW |
94 | # Permissions |
95 | PRODUCT_COPY_FILES += \ | |
96 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ | |
97 | frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \ | |
98 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ | |
99 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ | |
100 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ | |
101 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \ | |
102 | frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \ | |
103 | frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ | |
104 | frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \ | |
105 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ | |
106 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ | |
107 | frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \ | |
108 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ | |
109 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ | |
110 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ | |
111 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ | |
112 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ | |
e34c559a | 113 | frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \ |
f1b0c81b | 114 | frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml \ |
e34c559a L |
115 | $(LOCAL_PATH)/configs/permissions/com.samsung.permission.HRM_EXT.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.HRM_EXT.xml \ |
116 | $(LOCAL_PATH)/configs/permissions/com.samsung.permission.SSENSOR.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.samsung.permission.SSENSOR.xml | |
7902124f | 117 | |
318eac2f DW |
118 | # Ramdisk |
119 | PRODUCT_PACKAGES += \ | |
120 | init.target.rc | |
121 | ||
f5829732 DW |
122 | # Radio |
123 | PRODUCT_PACKAGES += \ | |
124 | libprotobuf-cpp-full \ | |
125 | libsecril-client \ | |
126 | modemloader \ | |
127 | libxml2 \ | |
128 | rild \ | |
129 | libril \ | |
130 | libreference-ril \ | |
131 | libsecril-client-sap \ | |
132 | android.hardware.radio@1.1 \ | |
133 | android.hardware.radio.deprecated@1.0 | |
134 | ||
135 | PRODUCT_COPY_FILES += \ | |
3bafbfa5 | 136 | device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.legacy.rc |
f5829732 | 137 | |
aebc8381 DW |
138 | # Overlays |
139 | DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay | |
140 | ||
9911d4bc DW |
141 | # Vendor security patch level (vendor blobs from A510FXXS8CSC1) |
142 | PRODUCT_PROPERTY_OVERRIDES += \ | |
143 | ro.lineage.build.vendor_security_patch=2019-04-01 | |
144 | ||
6391a6c2 DW |
145 | # Wi-fi |
146 | PRODUCT_COPY_FILES += \ | |
147 | $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \ | |
148 | $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ | |
149 | $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ | |
150 | $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie | |
151 | ||
e820d3bb DW |
152 | # Properties |
153 | -include $(LOCAL_PATH)/system_prop.mk | |
154 | ||
318eac2f DW |
155 | # Inherit from universal7580-common |
156 | $(call inherit-product, device/samsung/universal7580-common/device-common.mk) | |
f5829732 | 157 | |
1d6309ec DW |
158 | # Call the proprietary setup |
159 | $(call inherit-product, vendor/samsung/a7xelte/a7xelte-vendor.mk) |