forked from android-trebon/android_device_samsung_trebon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrebon.mk
213 lines (177 loc) · 7.96 KB
/
trebon.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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# Device overlays
DEVICE_PACKAGE_OVERLAYS += device/samsung/trebon/overlay
# Video
PRODUCT_PACKAGES += \
libstagefrighthw \
libmm-omxcore \
libOmxCore
# Graphics
PRODUCT_PACKAGES += \
copybit.msm7x27a \
gralloc.msm7x27a \
hwcomposer.msm7x27a \
libtilerenderer
# Misc.
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs \
com.android.future.usb.accessory
# Audio
PRODUCT_PACKAGES += \
audio.primary.msm7x27a \
audio_policy.msm7x27a \
audio.a2dp.default \
audio.usb.default \
audio_policy.conf \
libaudioutils
# Other HALs
PRODUCT_PACKAGES += \
camera.msm7x27a \
lights.msm7x27a \
gps.msm7x27a \
power.msm7x27a \
libhealthd.msm7x27a
# FM radio
PRODUCT_PACKAGES += \
qcom.fmradio \
libqcomfm_jni \
FM2
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# 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.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.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.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
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/samsung/trebon/prebuilt/etc/media_codecs.xml:system/etc/media_codecs.xml
# Camera
PRODUCT_COPY_FILES += \
device/samsung/trebon/camera/camera.msm7x27a.so:system/lib/hw/camera.msm7x27a.so
# Rootdir
PRODUCT_COPY_FILES += \
device/samsung/trebon/rootdir/init.qcom.rc:root/init.qcom.rc \
device/samsung/trebon/rootdir/init.qcom.usb.rc:root/init.qcom.usb.rc \
device/samsung/trebon/rootdir/ueventd.qcom.rc:root/ueventd.qcom.rc \
device/samsung/trebon/rootdir/lpm.rc:root/lpm.rc \
device/samsung/trebon/rootdir/fstab.qcom:root/fstab.qcom
# Recovery
PRODUCT_COPY_FILES += \
device/samsung/trebon/recovery/sbin/rmt_storage_recovery:recovery/root/sbin/rmt_storage_recovery \
device/samsung/trebon/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh \
device/samsung/trebon/recovery/postrecoveryboot.sh:recovery/system/bin/postrecoveryboot.sh
# FM
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/etc/init.qcom.fm.sh:/system/etc/init.qcom.fm.sh
# Network
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/etc/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
device/samsung/trebon/prebuilt/etc/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
device/samsung/trebon/prebuilt/etc/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
device/samsung/trebon/prebuilt/bin/get_macaddrs:system/bin/get_macaddrs
# Audio
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/etc/audio_policy.conf:system/etc/audio_policy.conf \
device/samsung/trebon/prebuilt/etc/AutoVolumeControl.txt:system/etc/AutoVolumeControl.txt \
device/samsung/trebon/prebuilt/etc/AudioFilter.csv:system/etc/AudioFilter.csv
# Keychar
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/usr/keychars/7x27a_kp.kcm.bin:system/usr/keychars/7x27a_kp.kcm.bin \
device/samsung/trebon/prebuilt/usr/keychars/surf_keypad.kcm.bin:system/usr/keychars/surf_keypad.kcm.bin \
# Keylayout
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/usr/keylayout/7x27a_kp.kl:system/usr/keylayout/7x27a_kp.kl \
device/samsung/trebon/prebuilt/usr/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
device/samsung/trebon/prebuilt/usr/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \
device/samsung/trebon/prebuilt/usr/keylayout/sec_powerkey.kl:system/usr/keylayout/sec_powerkey.kl \
device/samsung/trebon/prebuilt/usr/keylayout/surf_keypad.kl:system/usr/keylayout/surf_keypad.kl \
device/samsung/trebon/prebuilt/usr/keylayout/sec_touchscreen.kl:system/usr/keylayout/sec_touchscreen.kl
# Sensor calibration files
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/etc/calib.dat:system/etc/calib.dat \
device/samsung/trebon/prebuilt/etc/param.dat:system/etc/param.dat \
device/samsung/trebon/prebuilt/etc/sensors.dat:system/etc/sensors.dat
# Touchscreen configuration
PRODUCT_COPY_FILES += \
device/samsung/trebon/prebuilt/usr/idc/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc
# Properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libsec-ril.so \
rild.libargs=-d/dev/smd0 \
ro.telephony.ril_class=SamsungRIL \
ro.telephony.ril.v3=datacall,icccardstatus,facilitylock \
ro.telephony.call_ring.multiple=false
PRODUCT_PROPERTY_OVERRIDES += \
ro.bluetooth.remote.autoconnect=true \
ro.bluetooth.request.master=true \
ro.bt.bdaddr_path=/data/misc/bluedroid/bdaddr \
ro.qualcomm.bluetooth.dun=true \
ro.qualcomm.bluetooth.ftp=true
PRODUCT_PROPERTY_OVERRIDES += \
debug.gr.numframebuffers=3 \
debug.egl.recordable.rgba8888=1 \
debug.composition.type=dyn \
debug.hwc.dynThreshold=1.9 \
ro.bq.gpu_to_cpu_unsupported=1 \
ro.max.fling_velocity=4000 \
ro.opengles.version=131072 \
ro.sf.lcd_density=160
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1 \
dalvik.vm.jit.codecachesize=1 \
ro.config.low_ram=true \
dalvik.vm.jit.codecachesize=0
PRODUCT_PROPERTY_OVERRIDES += \
lpa.decode=false
PRODUCT_PROPERTY_OVERRIDES += \
com.qc.hardware=true \
dev.pm.dyn_sample_period=700000 \
dev.pm.dyn_samplingrate=1 \
ro.vendor.extension_library=/system/lib/libqc-opt.so
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb \
ro.vold.umsdirtyratio=50 \
persist.sys.vold.switchablepair=sdcard0,sdcard1
PRODUCT_PROPERTY_OVERRIDES += \
persist.webview.provider=classic
PRODUCT_PROPERTY_OVERRIDES += \
ro.fm.analogpath.supported=true \
ro.fm.transmitter=false \
ro.fm.mulinst.recording.support=false
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=180
$(call inherit-product, build/target/product/full.mk)
$(call inherit-product, vendor/samsung/msm7x27a-common/blobs.mk)
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.secure=0 \
ro.adb.secure=0
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=2
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_AAPT_CONFIG := normal mdpi hdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
# Torch
PRODUCT_PACKAGES += \
Torch
# Splash Screen
PRODUCT_COPY_FILES += \
device/samsung/trebon/rootdir/GT-S7500.rle:root/GT-S7500.rle
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml
$(call inherit-product, vendor/samsung/trebon/blobs.mk)