-
Notifications
You must be signed in to change notification settings - Fork 3
/
device_callisto.mk
176 lines (147 loc) · 6.67 KB
/
device_callisto.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
# Copyright (C) 2011 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.
#
DEVICE_PACKAGE_OVERLAYS += device/samsung/callisto/overlay
PRODUCT_PACKAGES += \
brcm_patchram_plus \
copybit.callisto \
gps.callisto \
gralloc.callisto \
libOmxCore \
lights.msm7k \
rzscontrol \
screencap \
setup_fs
# Recovery tools
PRODUCT_PACKAGES += \
dump_image \
e2fsck \
erase_image \
flash_image \
make_ext4fs
# Service Mode Secret Code
PRODUCT_PACKAGES += \
SamsungServiceMode
# MADTeam modifications
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/bin/madconfig:system/bin/madconfig \
device/samsung/callisto/prebuilt/etc/init.d/02madteam:system/etc/init.d/02madteam \
device/samsung/callisto/prebuilt/etc/init.d/05mountsd:system/etc/init.d/05mountsd
# Hardware properties
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/base/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
# Boot animation
PRODUCT_COPY_FILES += \
vendor/cyanogen/prebuilt/ldpi/media/bootanimation.zip:system/media/bootanimation.zip
# Kernel modules
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/modules/acc_cal_param.ko:root/lib/modules/acc_cal_param.ko \
device/samsung/callisto/prebuilt/modules/fsr.ko:root/lib/modules/fsr.ko \
device/samsung/callisto/prebuilt/modules/fsr_stl.ko:root/lib/modules/fsr_stl.ko \
device/samsung/callisto/prebuilt/modules/ramzswap.ko:system/lib/modules/ramzswap.ko \
device/samsung/callisto/prebuilt/modules/rfs_glue.ko:root/lib/modules/rfs_glue.ko \
device/samsung/callisto/prebuilt/modules/rfs_fat.ko:root/lib/modules/rfs_fat.ko \
device/samsung/callisto/prebuilt/modules/sec_param.ko:root/lib/modules/sec_param.ko
# Board-specific init & scripts
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/init.gt-i5510.rc:root/init.gt-i5510.rc \
device/samsung/callisto/prebuilt/ueventd.gt-i5510.rc:root/ueventd.gt-i5510.rc
# Workaround for wifi & bluetooth mac addresses
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/bin/get_macaddrs:system/bin/get_macaddrs
# Wifi
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/etc/dhcpd/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf \
device/samsung/callisto/prebuilt/etc/wifi/hostapd.conf:system/etc/wifi/hostapd.conf \
device/samsung/callisto/prebuilt/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/samsung/callisto/prebuilt/modules/ar6000.ko:system/wifi/ar6000.ko
# VOLD configuration
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/etc/vold.fstab:system/etc/vold.fstab
# Media profiles
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/etc/media_profiles.xml:/system/etc/media_profiles.xml
# Apns conf
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/etc/apns-conf.xml:/system/etc/apns-conf.xml
# Audio
PRODUCT_COPY_FILES += \
device/samsung/callisto/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv \
device/samsung/callisto/prebuilt/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt
# Enable Google-specific location features,
# like NetworkLocationProvider and LocationCollector
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# Extended JNI checks
# The extended JNI checks will cause the system to run more slowly, but they can spot a variety of nasty bugs
# before they have a chance to cause problems.
# Default=true for development builds, set by android buildsystem.
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false
# RIL properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libargs=-d/dev/smd0 \
rild.libpath=/system/lib/libsec-ril.so \
ro.telephony.ril_class=samsung \
ro.telephony.sends_barcount=1
# Keymap properties
PRODUCT_PROPERTY_OVERRIDES += \
android.keychar.callisto_keypad0=/system/usr/keychars/sec_keypad.kcm.bin \
android.keylayout.callisto_headset=/system/usr/keylayout/sec_jack.kl \
android.keylayout.callisto_keypad0=/system/usr/keylayout/sec_keypad.kl \
hw.keyboards.0.devname=sec_keypad \
hw.keyboards.65538.devname=sec_jack
# Networking properties
PRODUCT_PROPERTY_OVERRIDES += \
mobiledata.interfaces=pdp0,wlan0,gprs,ppp0 \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=60
# Performance & graphics properties
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapsize=24m \
persist.sys.purgeable_assets=1 \
persist.sys.use_dithering=0 \
ro.media.dec.jpeg.memcap=20000000 \
ro.opengles.version=131072 \
ro.sf.lcd_density=120
# Compcache properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.compcache.default=18
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/callisto/prebuilt/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product-if-exists, vendor/samsung/callisto/callisto-vendor.mk)
$(call inherit-product, build/target/product/full_base.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# LDPI assets
PRODUCT_LOCALES += ldpi mdpi
PRODUCT_NAME := full_callisto
PRODUCT_BRAND := samsung
PRODUCT_DEVICE := callisto
PRODUCT_MODEL := GT-I5510
PRODUCT_MANUFACTURER := samsung