forked from emirunlu/android_device_samsung_ariesve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ariesve.mk
182 lines (158 loc) · 8.11 KB
/
ariesve.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
# Copyright (C) 2012 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.
# Overlay path
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# Pixel density
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Bootsplash and charging image
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ARIESVE.rle:root/ARIESVE.rle \
$(LOCAL_PATH)/lpm/charging.rle:root/charging.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
# Media configuration
PRODUCT_COPY_FILES += \
$(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/vold.fstab:system/etc/vold.fstab \
$(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/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
# 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/ariesve_keypad_numeric.kcm.bin:system/usr/keychars/ariesve_keypad_numeric.kcm.bin \
$(LOCAL_PATH)/keyfiles/ariesve_keypad_qwerty.kcm.bin:system/usr/keychars/ariesve_keypad_qwerty.kcm.bin \
$(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
# LPM
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/lpm/bin/charging_mode:system/bin/charging_mode \
$(LOCAL_PATH)/lpm/bin/playlpm:system/bin/playlpm \
$(LOCAL_PATH)/lpm/lib/libQmageDecoder.so:system/lib/libQmageDecoder.so \
$(LOCAL_PATH)/lpm/media/Disconnected.qmg:system/media/Disconnected.qmg \
$(LOCAL_PATH)/lpm/media/battery_batteryerror.qmg:system/media/battery_batteryerror.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_5.qmg:system/media/battery_charging_5.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_10.qmg:system/media/battery_charging_10.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_15.qmg:system/media/battery_charging_15.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_20.qmg:system/media/battery_charging_20.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_25.qmg:system/media/battery_charging_25.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_30.qmg:system/media/battery_charging_30.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_35.qmg:system/media/battery_charging_35.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_40.qmg:system/media/battery_charging_40.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_45.qmg:system/media/battery_charging_45.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_50.qmg:system/media/battery_charging_50.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_55.qmg:system/media/battery_charging_55.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_60.qmg:system/media/battery_charging_60.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_65.qmg:system/media/battery_charging_65.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_70.qmg:system/media/battery_charging_70.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_75.qmg:system/media/battery_charging_75.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_80.qmg:system/media/battery_charging_80.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_85.qmg:system/media/battery_charging_85.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_90.qmg:system/media/battery_charging_90.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_95.qmg:system/media/battery_charging_95.qmg \
$(LOCAL_PATH)/lpm/media/battery_charging_100.qmg:system/media/battery_charging_100.qmg \
$(LOCAL_PATH)/lpm/media/battery_error.qmg:system/media/battery_error.qmg \
$(LOCAL_PATH)/lpm/media/chargingwarning.qmg:system/media/chargingwarning.qmg
# Build packages
PRODUCT_PACKAGES += \
camera.msm7x30 \
copybit.msm7x30 \
gralloc.msm7x30 \
hwcomposer.msm7x30 \
gps.msm7x30 \
lights.msm7x30 \
power.msm7x30 \
audio.primary.msm7x30 \
audio_policy.msm7x30 \
audio.a2dp.default \
audio.usb.default \
libaudio-resampler \
libaudioparameter
PRODUCT_PACKAGES += \
libmm-omxcore \
libOmxCore \
libOmxVenc \
libOmxVdec \
libstagefrighthw \
libc2dcolorconvert
PRODUCT_PACKAGES += \
badblocks \
e2fsck \
mke2fs \
mke2fs.conf \
resize2fs \
tune2fs \
make_ext4fs \
setup_fs
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
libnetcmdiface \
AriesParts
# Kernel
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/prebuilt/zImage
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# Modules
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/cifs.ko:root/lib/modules/cifs.ko \
$(LOCAL_PATH)/prebuilt/dhd.ko:root/lib/modules/dhd.ko \
$(LOCAL_PATH)/prebuilt/scsi_wait_scan.ko:root/lib/modules/scsi_wait_scan.ko \
$(LOCAL_PATH)/prebuilt/cifs.ko:system/lib/modules/cifs.ko \
$(LOCAL_PATH)/prebuilt/dhd.ko:system/lib/modules/dhd.ko \
$(LOCAL_PATH)/prebuilt/scsi_wait_scan.ko:system/lib/modules/scsi_wait_scan.ko
# Build properties
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# WiFi
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
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)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)