-
Notifications
You must be signed in to change notification settings - Fork 72
/
ancora.mk
177 lines (148 loc) · 6 KB
/
ancora.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
# 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.
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
# This device is hdpi
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
# Support files
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 \
frameworks/av/media/libstagefright/data/media_codecs_ffmpeg.xml:system/etc/media_codecs_ffmpeg.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
# Audio configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/init.qcom.rc:root/init.qcom.rc \
$(LOCAL_PATH)/rootdir/init.qcom.usb.rc:root/init.qcom.usb.rc \
$(LOCAL_PATH)/rootdir/ueventd.qcom.rc:root/ueventd.qcom.rc \
$(LOCAL_PATH)/rootdir/fstab.qcom:root/fstab.qcom \
$(LOCAL_PATH)/recovery/twrp.fstab:recovery/root/etc/twrp.fstab
# Wifi calibration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/nvram_net.txt:system/vendor/firmware/nvram_net.txt
# Wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf
# MAC adress tool
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/get_macaddrs:system/bin/get_macaddrs
# Input device calibration files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc
# Keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
$(LOCAL_PATH)/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \
$(LOCAL_PATH)/keylayout/sec_power_key.kl:system/usr/keylayout/sec_power_key.kl \
$(LOCAL_PATH)/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl
# GPS config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/gps.conf:system/etc/gps.conf
PRODUCT_PACKAGES += \
camera.msm7x30 \
copybit.msm7x30 \
gralloc.msm7x30 \
hwcomposer.msm7x30 \
memtrack.msm7x30 \
gps.msm7x30 \
lights.msm7x30 \
power.msm7x30 \
audio.primary.msm7x30 \
audio.a2dp.default \
audio.usb.default \
libaudio-resampler \
libaudioparameter \
libgenlock
PRODUCT_PACKAGES += \
libmm-omxcore \
libOmxCore \
libOmxVenc \
libOmxVdec \
libstagefrighthw \
libc2dcolorconvert \
libdashplayer
PRODUCT_PACKAGES += \
badblocks \
e2fsck \
mke2fs \
mke2fs.conf \
resize2fs \
tune2fs \
make_ext4fs \
setup_fs
PRODUCT_PACKAGES += \
fsck.f2fs \
mkfs.f2fs
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
PRODUCT_PACKAGES += \
libexifa \
libjpega
# qcmediaplayer
PRODUCT_PACKAGES += \
qcmediaplayer
# IPv6 tethering
PRODUCT_PACKAGES += \
ebtables \
ethertypes
# Charger images
PRODUCT_PACKAGES += \
charger_res_images
# WPA supplicant
PRODUCT_PACKAGES += \
dhcpcd.conf \
hostapd \
libwpa_client \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.locale.language=en \
ro.product.locale.region=GB
# ART
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-flags=--no-watch-dog
# For userdebug builds
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0 \
ro.adb.secure=0 \
ro.debuggable=1 \
persist.service.adb.enable=1
$(call inherit-product-if-exists, vendor/samsung/ancora/device-vendor.mk)
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)