-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.mk
93 lines (75 loc) · 2.91 KB
/
device.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
#
# Copyright (C) 2016 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.
#
# Inherit from gv-common
$(call inherit-product, device/samsung/gv-common/device-common.mk)
LOCAL_PATH := device/samsung/gvwifi
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += device/samsung/gvwifi/overlay
# Tablet
PRODUCT_CHARACTERISTICS := tablet
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := xlarge
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_AAPT_PREBUILT_DPI := xhdpi hdpi
# Boot animation
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/audio/mixer_paths.xml:system/etc/mixer_paths.xml
# GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/configs/gps/gps.xml:system/etc/gps.xml
# Lights
PRODUCT_PACKAGES += \
lights.universal7580
# Flat device tree for boot image
PRODUCT_PACKAGES += \
dtbhtoolExynos
# Shims
PRODUCT_PACKAGES += \
libsamsung_symbols
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
# Media profile
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/media_profiles.xml:system/etc/media_profiles.xml
# Power
PRODUCT_PACKAGES += \
power.universal7580
# Ramdisk
PRODUCT_PACKAGES += \
fstab.samsungexynos7580 \
init.samsung.rc \
init.samsungexynos7580.rc \
init.samsungexynos7580.usb.rc \
init.wifi.rc \
ueventd.samsungexynos7580.rc
# Wi-fi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wifi/nvram_mfg.txt:system/etc/wifi/nvram_mfg.txt \
$(LOCAL_PATH)/configs/wifi/nvram_net.txt:system/etc/wifi/nvram_net.txt \
$(LOCAL_PATH)/configs/wifi/cred.conf:system/etc/wifi/cred.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf
# Get non-open-source specific aspects
$(call inherit-product-if-exists, vendor/samsung/gvwifi/gvwifi-vendor.mk)