a3xelte: add permissions
[GitHub/LineageOS/android_device_samsung_a3xelte.git] / device.mk
CommitLineData
58309e5e
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
17LOCAL_PATH := device/samsung/a3xelte
18
19$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
20
d894092f
DW
21# Audio
22PRODUCT_COPY_FILES += \
23 $(LOCAL_PATH)/configs/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_0.xml
24
8da9a22f
DW
25# Boot animation
26TARGET_BOOTANIMATION_PRELOAD := true
27TARGET_BOOTANIMATION_TEXTURE_CACHE := true
28TARGET_SCREEN_HEIGHT := 1080
29TARGET_SCREEN_WIDTH := 720
30
a69ea8d7
DW
31# Bluetooth
32PRODUCT_COPY_FILES += \
33 $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
34
35PRODUCT_PACKAGES += \
36 android.hardware.bluetooth@1.0-service
0829adfd
DW
37
38# GPS
39PRODUCT_COPY_FILES += \
40 $(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
41 $(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
a69ea8d7 42
15d924c6
DW
43# HIDL Manifest
44PRODUCT_COPY_FILES += \
45 $(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
46
0b3edefc
DW
47# Permissions
48PRODUCT_COPY_FILES += \
49 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
50 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
51 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
52 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
53 frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
54 frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
55 frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml \
56 frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
57 frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
58 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
59 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
60 frameworks/native/data/etc/android.hardware.sensor.heartrate.xml:system/etc/permissions/android.hardware.sensor.heartrate.xml \
61 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
62 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
63 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
64 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
65 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
66 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
67
58309e5e
DW
68# Ramdisk
69PRODUCT_PACKAGES += \
70 init.target.rc
71
26b7ac7d
DW
72# Radio
73PRODUCT_PACKAGES += \
74 libprotobuf-cpp-full \
75 libsecril-client \
76 modemloader \
77 libxml2 \
78 rild \
79 libril \
80 libreference-ril \
81 libsecril-client-sap \
82 android.hardware.radio@1.1 \
83 android.hardware.radio.deprecated@1.0
84
85PRODUCT_COPY_FILES += \
86 device/samsung/universal7580-common/configs/init/rild.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/rild.rc
87
e2c4401d
DW
88# Wi-fi
89PRODUCT_COPY_FILES += \
90 $(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
91 $(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
92 $(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
93 $(LOCAL_PATH)/configs/wifi/filter_ie:system/etc/wifi/filter_ie
94
807da357
DW
95# Properties
96-include $(LOCAL_PATH)/system_prop.mk
97
58309e5e
DW
98# Inherit from universal7580-common
99$(call inherit-product, device/samsung/universal7580-common/device-common.mk)
26b7ac7d 100
3b1e3674
DW
101# Call the proprietary setup
102$(call inherit-product, vendor/samsung/a3xelte/a3xelte-vendor.mk)