forked from drakaz/gaosp_vendor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathI7500.mk
402 lines (377 loc) · 12.2 KB
/
I7500.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
WITH_GOOGLE := true
CYANOGEN_WITH_GOOGLE := true
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=I7500 BUILD_ID=GRJ22 BUILD_DISPLAY_ID=GRJ22 BUILD_FINGERPRINT=google/passion/passion:2.3.4/GRJ22/121341:user/release-keys
PRIVATE_BUILD_DESC="passion-user 2.3.4 GRJ22 121341 release-keys"
DEVICE_PACKAGE_OVERLAYS := device/samsung/I7500/overlay
PACKAGES.Email.OVERRIDES := Provision LatinIME QuickSearchBox
# Used by BusyBox
KERNEL_MODULES_DIR:=/system/lib/modules
#PRODUCT_SPECIFIC_DEFINES += TARGET_PREBUILT_KERNEL=
#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_DIR=gaosp-kernel
#PRODUCT_SPECIFIC_DEFINES += TARGET_KERNEL_CONFIG=gaosp_msm_defconfig
#LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
# Tiny toolbox
TINY_TOOLBOX:=false
# Enable Windows Media if supported by the board
WITH_WINDOWS_MEDIA:=true
NO_DEFAULT_SOUNDS := true
PRODUCT_POLICY := android.policy_phone
#Use v8 Javascript engine
JS_ENGINE := v8
# PROPERTIES
PRODUCT_PROPERTY_OVERRIDES := \
keyguard.no_require_sim=true \
dalvik.vm.dexopt-data-only=0 \
ro.ril.hsxpa=2 \
ro.ril.gprsclass=10 \
ro.media.dec.jpeg.memcap=10000000 \
ro.config.ringtone=Playa.ogg \
ro.config.notification_sound=regulus.ogg \
ro.config.alarm_alert=Alarm_Beep_03.ogg \
ro.sf.lcd_density=160 \
ro.telephony.default_network=0 \
dalvik.vm.execution-mode=int:fast \
ro.opengles.version=65537 \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.com.google.clientidbase=android-google \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.dataroaming=false \
net.bt.name=Galaxy \
debug.sf.hw=1 \
video.accelerate.hw=1 \
debug.performance.tuning=1 \
ro.additionalmounts=/mnt/sdcard2
# Enable Compcache by default
PRODUCT_PROPERTY_OVERRIDES += \
ro.compcache.default=18
# Chinese specific
ifdef CHINESE
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.android.dateformat=yyyy-MM-dd
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.android.dateformat=MM-dd-yyyy
endif
# Nightly
ifdef NIGHTLY
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=GAOSP-3-NIGHTLY-$(shell date +%m%d%Y)
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.modversion=GAOSP-3-PUBLIC-BETA-1
endif
# Other Files
PRODUCT_COPY_FILES += device/samsung/I7500/open/etc/apns-conf.xml:system/etc/apns-conf.xml \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
device/samsung/I7500/open/etc/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
device/samsung/I7500/open/etc/media_profiles.xml:system/etc/media_profiles.xml \
device/samsung/I7500/open/etc/resolv.conf:system/etc/resolv.conf \
device/samsung/I7500/open/etc/sysctl.conf:system/etc/sysctl.conf \
device/samsung/I7500/open/etc/terminfo/l/linux:system/etc/terminfo/l/linux \
device/samsung/I7500/open/etc/terminfo/u/unknown:system/etc/terminfo/u/unknown \
device/samsung/I7500/open/etc/fstab:system/etc/fstab \
device/samsung/I7500/open/etc/bash.bashrc:system/etc/bash.bashrc \
device/samsung/I7500/open/etc/gshadow:system/etc/gshadow \
device/samsung/I7500/open/etc/passwd:system/etc/passwd \
device/samsung/I7500/open/etc/profile:system/etc/profile \
device/samsung/I7500/open/etc/shadow:system/etc/shadow \
device/samsung/I7500/open/etc/group:system/etc/group \
device/samsung/I7500/open/etc/shells:system/etc/shells \
device/samsung/I7500/open/etc/zshrc:system/etc/zshrc \
device/samsung/I7500/open/etc/adb_shell.conf:system/etc/adb_shell.conf \
device/samsung/I7500/open/etc/gaosp.conf:system/etc/gaosp.conf \
device/samsung/I7500/open/etc/init.local.rc:system/etc/init.local.rc \
device/samsung/I7500/open/bin/rc:system/bin/rc \
device/samsung/I7500/open/bin/compcache:system/bin/compcache \
device/samsung/I7500/open/bin/handle_compcache:system/bin/handle_compcache \
device/samsung/I7500/open/bin/fix_permissions:system/bin/fix_permissions \
device/samsung/I7500/open/bin/openvpn-up.sh:system/xbin/openvpn-up.sh \
device/samsung/I7500/open/bin/htop:system/xbin/htop \
device/samsung/I7500/open/bin/irssi:system/xbin/irssi \
device/samsung/I7500/open/bin/lsof:system/xbin/lsof \
device/samsung/I7500/open/bin/powertop:system/xbin/powertop \
device/samsung/I7500/open/bin/shutdown:system/xbin/shutdown \
device/samsung/I7500/open/bin/voldupdater:system/xbin/voldupdater \
device/samsung/I7500/open/bin/remountro:system/xbin/remountro \
device/samsung/I7500/open/bin/remountrw:system/xbin/remountrw \
device/samsung/I7500/open/bin/zsh:system/xbin/zsh \
device/samsung/I7500/open/bin/bash:system/bin/bash \
device/samsung/I7500/open/bin/sysinit:system/bin/sysinit \
device/samsung/I7500/open/bin/fbvncserver:system/bin/fbvncserver \
device/samsung/I7500/open/bin/changepasswd:system/bin/changepasswd \
device/samsung/I7500/open/bin/dropbear:system/xbin/dropbear \
device/samsung/I7500/open/bin/dropbear-keygen:system/xbin/dropbear-keygen \
device/samsung/I7500/open/bin/dropbearkey:system/xbin/dropbearkey \
device/samsung/I7500/open/bin/busybox:system/xbin/busybox \
device/samsung/I7500/proprietary/bin/BCM4325D1_004.002.004.0153.0156.hcd:system/bin/BCM4325D1_004.002.004.0153.0156.hcd \
device/samsung/I7500/open/apps/serviceModeApp.apk:system/app/serviceModeApp.apk \
device/samsung/I7500/open/apps/HotRebootFree.apk:system/app/HotRebootFree.apk \
device/samsung/I7500/open/boot/bootanimation.zip:system/media/bootanimation.zip \
device/samsung/I7500/open/boot/bootanimation_old.zip:system/media/bootanimation_old.zip \
device/samsung/I7500/open/boot/logo.rle:root/logo.rle \
device/samsung/I7500/open/modules/zram.ko:system/lib/modules/zram.ko \
device/samsung/I7500/open/lib/librun.so:system/lib/librun.so \
device/samsung/I7500/open/etc/init.d/00banner:system/etc/init.d/00banner \
device/samsung/I7500/open/etc/init.d/01sysctl:system/etc/init.d/01sysctl \
device/samsung/I7500/open/etc/init.d/04modules:system/etc/init.d/04modules \
device/samsung/I7500/open/etc/init.d/20userinit:system/etc/init.d/20userinit \
device/samsung/I7500/proprietary/etc/rtecdc.bin:system/etc/rtecdc_apsta.bin \
device/samsung/I7500/proprietary/etc/rtecdc.bin:system/etc/rtecdc.bin \
device/samsung/I7500/open/boot/ueventd.samsung.rc:root/ueventd.samsung.rc \
device/samsung/I7500/proprietary/lib/set_grp_id:system/bin/set_grp_id \
device/samsung/I7500/proprietary/lib/libaudioeq.so:system/lib/libaudioeq.so \
device/samsung/I7500/proprietary/lib/libmm-qcamera-tgt.so:system/lib/libmm-qcamera-tgt.so \
device/samsung/I7500/proprietary/lib/libmmjpeg.so:system/lib/libmmjpeg.so \
device/samsung/I7500/proprietary/lib/libmmcamera.so:system/lib/libmmcamera.so \
device/samsung/I7500/proprietary/lib/libOmxH264Dec.so:system/lib/libOmxH264Dec.so \
device/samsung/I7500/proprietary/lib/libmm-adspsvc.so:system/lib/libmm-adspsvc.so \
device/samsung/I7500/proprietary/lib/libOmxMpeg4Dec.so:system/lib/libOmxMpeg4Dec.so \
device/samsung/I7500/proprietary/lib/libOmxVidEnc.so:system/lib/libOmxVidEnc.so \
device/samsung/I7500/proprietary/lib/egl/libGLES_qcom.so:system/lib/egl/libGLES_qcom.so \
device/samsung/I7500/proprietary/bin/akmd2:system/bin/akmd2 \
device/samsung/I7500/proprietary/lib/libgps.so:system/lib/libgps.so \
device/samsung/I7500/proprietary/lib/libloc_api.so:system/lib/libloc_api.so \
device/samsung/I7500/proprietary/lib/libloc.so:system/lib/libloc.so \
device/samsung/I7500/proprietary/lib/libloc-rpc.so:system/lib/libloc-rpc.so \
device/samsung/I7500/proprietary/lib/libcommondefs.so:system/lib/libcommondefs.so
# Prebuilt libraries that are needed to build open-source libraries
PRODUCT_COPY_FILES += \
device/samsung/I7500/proprietary/lib/libloc.so:obj/lib/libloc.so
# Packages
PRODUCT_PACKAGES := \
bouncycastle \
com.android.location.provider \
com.android.location.provider.xml \
core \
core-junit \
create_test_dmtrace \
dalvikvm \
dexdeps \
dexdump \
dexlist \
dexopt \
dmtracedump \
dvz \
dx \
ext \
hprof-conv \
icu.dat \
jasmin \
jasmin.jar \
libcrypto \
libdex \
libdvm \
libexpat \
libicui18n \
libicuuc \
libjavacore \
libcyanogen-dsp \
libnativehelper \
libnfc_ndef \
libsqlite_jni \
libssl \
libz \
openvpn \
sqlite-jdbc \
azerty.kcm \
framework-res \
AlarmClock \
AlarmProvider \
Androidian \
AndroidTerm \
AccountAndSyncSettings \
ADWLauncher \
AndroidTerm \
ApplicationsProvider \
Bluetooth \
Browser \
Bugreport \
Calculator \
Calendar \
CalendarProvider \
Camera \
CertInstaller \
CMParts \
CMPartsHelper \
Contacts \
ContactsProvider \
CustomLocale \
Cyanbread \
DefaultContainerService \
DownloadProvider \
DownloadProviderUi \
DeskClock \
DrmProvider \
DSPManager \
Email \
FileManager \
Gallery \
Gallery3D \
GaospConf \
GoogleContactsProvider \
GoogleSearch \
Home \
HTMLViewer \
IM \
ImProvider \
klogtail \
LatinIME \
Launcher2 \
LiveWallpapersPicker \
ManagementProvider \
MediaProvider \
Mms \
Music \
PackageInstaller \
Pacman \
Phone \
PicoTts \
Protips \
QuickSearchBox \
Settings \
SettingsProvider \
SoundRecoder \
SubscribedFeedsProvider \
Superuser \
Sync \
SyncProvider \
SystemUI \
Stk \
TelephonyProvider \
Term \
ThemeManager \
ThemeChooser \
com.tmobile.themes \
TtsService \
Updater \
UserDictionaryProvider \
VoiceDialer \
VpnServices \
WebSearchProvider \
Torch \
sensors.I7500 \
copybit.msm7k \
gralloc.msm7k \
gps.I7500 \
lights.msm7k \
libcamera \
libmmcamera.so \
libmm-qcamera-tgt.so \
libmmjpeg.so \
libterm \
libOmxCore \
libmm-adspsvc.so \
libOmxH264Dec.so \
libOmxMpeg4Dec.so \
libOmxVidEnc.so \
libGLES_qcom.so \
libjni_flash \
libjni_flashwidget \
flash_image \
librs_jni \
bootcmdutil
# Check : building for chinese people ?
ifdef CHINESE
PRODUCT_PACKAGES += \
PinyinIME
else
ifdef JAPENESE
PRODUCT_PACKAGES += \
OpenWnn \
libWnnEngDic \
libWnnJpnDic \
libwnndict
else
PRODUCT_PACKAGES += \
LatinIME
endif
endif
# Check if we build with google or not
ifndef WITH_GOOGLE
PRODUCT_PACKAGES += \
Provision \
GoogleSearch
endif
# Locales
PRODUCT_LOCALES := \
en_GB \
ar_EG \
ar_IL \
bg_BG \
ca_ES \
cs_CZ \
da_DK \
de_AT \
de_CH \
de_DE \
de_LI \
el_GR \
en_AU \
en_CA \
en_IE \
en_IN \
en_NZ \
en_SG \
en_US \
en_ZA \
es_ES \
es_US \
fi_FI \
fr_BE \
fr_CA \
fr_CH \
fr_FR \
he_IL \
hi_IN \
hr_HR \
hu_HU \
id_ID \
it_CH \
it_IT \
iw_IL \
ja_JP \
ko_KR \
lt_LT \
lv_LV \
nb_NO \
nl_BE \
nl_NL \
pl_PL \
pt_BR \
pt_PT \
ro_RO \
ru_RU \
sk_SK \
sl_SI \
sr_RS \
sv_SE \
th_TH \
tl_PH \
tr_TR \
uk_UA \
vi_VN \
zh_CN \
zh_TW
# Pick up some sounds - stick with the short list to save space
# on smaller devices.
$(call inherit-product-if-exists, frameworks/base/data/sounds/OriginalAudio.mk)
# Get the TTS language packs
$(call inherit-product-if-exists, external/svox/pico/lang/all_pico_languages.mk)
# Get the list of languages.
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Overrides
PRODUCT_BRAND := Samsung
PRODUCT_NAME := I7500
PRODUCT_DEVICE := I7500
PRODUCT_BOARD := I7500
PRODUCT_MANUFACTURER := Samsung
BUILD_ID := PUBLIC_BETA1