-
Notifications
You must be signed in to change notification settings - Fork 1
/
device.mk
195 lines (163 loc) · 6.54 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
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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# Copyright 2015 The Android Open-Source 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.
# Overlay path
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Pixel density
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_BOOT_JARS += qcmediaplayer
# Boot animation
TARGET_SCREEN_HEIGHT := 800
TARGET_SCREEN_WIDTH := 480
# Bootsplash image
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ARIESVE.rle:root/ARIESVE.rle
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml
# Media configuration
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/init.qcom.rc:root/init.qcom.rc \
$(LOCAL_PATH)/ramdisk/init.qcom.usb.rc:root/init.qcom.usb.rc \
$(LOCAL_PATH)/ramdisk/ueventd.qcom.rc:root/ueventd.qcom.rc \
$(LOCAL_PATH)/ramdisk/fstab.qcom:root/fstab.qcom
# Recovery stuff
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/init.qcom.usb.rc:recovery/root/init.qcom.usb.rc \
$(LOCAL_PATH)/ramdisk/fstab.qcom:recovery/root/fstab.qcom \
$(LOCAL_PATH)/recovery/twrp.fstab:recovery/root/etc/twrp.fstab
# BT stuff
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/get_macaddrs:system/bin/get_macaddrs
# Touchscreen calibration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/quantom-touchscreen.idc:system/usr/idc/quantom-touchscreen.idc
# Keychars and keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keyfiles/7k_handset.kl:system/usr/keylayout/7k_handset.kl \
$(LOCAL_PATH)/keyfiles/ariesve_handset.kl:system/usr/keylayout/ariesve_handset.kl \
$(LOCAL_PATH)/keyfiles/ariesve_keypad.kl:system/usr/keylayout/ariesve_keypad.kl \
$(LOCAL_PATH)/keyfiles/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
$(LOCAL_PATH)/keyfiles/melfas_touchkey.kl:system/usr/keylayout/melfas_touchkey.kl
# GPS config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf
# Build packages
PRODUCT_PACKAGES += \
camera.msm7x30 \
copybit.msm7x30 \
gralloc.msm7x30 \
libgenlock \
hwcomposer.msm7x30 \
memtrack.msm7x30 \
gps.msm7x30 \
lights.msm7x30 \
power.msm7x30 \
audio.primary.msm7x30 \
audio.a2dp.default \
audio.usb.default \
libaudio-resampler \
libaudioparameter
PRODUCT_PACKAGES += \
libmm-omxcore \
libOmxCore \
libOmxVenc \
libOmxVdec \
libstagefrighthw \
libc2dcolorconvert \
libdashplayer
# Filesystem management tools
PRODUCT_PACKAGES += \
badblocks \
e2fsck \
mke2fs \
mke2fs.conf \
resize2fs \
tune2fs \
make_ext4fs \
setup_fs
# Usb accessory and Wifi
PRODUCT_PACKAGES += \
fsck.f2fs \
mkfs.f2fs
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Device-specific packages
PRODUCT_PACKAGES += \
sensors.ariesve \
AriesParts
# qcmediaplayer
PRODUCT_PACKAGES += qcmediaplayer
# IPv6 tethering
PRODUCT_PACKAGES += \
ebtables \
ethertypes
# Charger images
PRODUCT_PACKAGES += \
charger_res_images
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.locale.language=en \
ro.product.locale.region=GB
# WPA supplicant
PRODUCT_PACKAGES += \
dhcpcd.conf \
hostapd \
libwpa_client \
wpa_supplicant \
wpa_supplicant.conf
# Build properties
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0 \
ro.adb.secure=0 \
ro.debuggable=1 \
persist.service.adb.enable=1
# For applications to determine if they should turn off specific memory-intensive
# features that work poorly on low-memory devices.
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true
# ART
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-filter=balanced \
dalvik.vm.dex2oat-flags=--no-watch-dog \
dalvik.vm.image-dex2oat-filter=speed
# WiFi
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
# Dalvik heap
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
# Wifi Calibration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/nvram_net.txt:system/vendor/firmware/nvram_net.txt
# Vendor stuff
$(call inherit-product-if-exists, vendor/samsung/ariesve/device-vendor.mk)