forked from Evervolv/android_device_samsung_skyrocket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
full_skyrocket.mk
208 lines (178 loc) · 9.81 KB
/
full_skyrocket.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
#
# Copyright (C) 2011 The Evervolv 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.
#
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# The gps config appropriate for this device
PRODUCT_COPY_FILES += \
device/samsung/skyrocket/prebuilt/system/etc/gps.conf:system/etc/gps.conf
## (1) First, the most specific values, i.e. the aspects that are specific to GSM
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-samsung \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1 \
ro.com.google.gmsversion=4.0.3_r0 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.dexopt-flags=m=y
# Kernel
PRODUCT_COPY_FILES += \
device/samsung/skyrocket/prebuilt/root/init:root/init \
device/samsung/skyrocket/prebuilt/root/init.goldfish.rc:root/init.goldfish.rc \
device/samsung/skyrocket/prebuilt/root/init.qcom.lpm_boot.sh:root/init.qcom.lpm_boot.sh \
device/samsung/skyrocket/prebuilt/root/init.qcom.rc:root/init.qcom.rc \
device/samsung/skyrocket/prebuilt/root/init.qcom.sh:root/init.qcom.sh \
device/samsung/skyrocket/prebuilt/root/init.qcom.usb.rc:root/init.qcom.usb.rc \
device/samsung/skyrocket/prebuilt/root/init.qcom.usb.sh:root/init.qcom.usb.sh \
device/samsung/skyrocket/prebuilt/root/init.rc:root/init.rc \
device/samsung/skyrocket/prebuilt/root/init.target.rc:root/init.target.rc \
device/samsung/skyrocket/prebuilt/root/initlogo.rle:root/initlogo.rle \
device/samsung/skyrocket/prebuilt/root/lpm.rc:root/lpm.rc \
device/samsung/skyrocket/prebuilt/root/ueventd.goldfish.rc:root/ueventd.goldfish.rc \
device/samsung/skyrocket/prebuilt/root/ueventd.rc:root/ueventd.rc \
device/samsung/skyrocket/prebuilt/system/lib/modules/ansi_cprng.ko:root/lib/modules/ansi_cprng.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/cls_flow.ko:root/lib/modules/cls_flow.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/dal_remotetest.ko:root/lib/modules/dal_remotetest.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/dhd.ko:root/lib/modules/dhd.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/dma_test.ko:root/lib/modules/dma_test.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/evbug.ko:root/lib/modules/evbug.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/gspca_main.ko:root/lib/modules/gspca_main.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/ksapi.ko:root/lib/modules/ksapi.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/lcd.ko:root/lib/modules/lcd.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/msm-buspm-dev.ko:root/lib/modules/msm-buspm-dev.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/msm_tsif.ko:root/lib/modules/msm_tsif.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/qcedev.ko:root/lib/modules/qcedev.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/qce.ko:root/lib/modules/qce.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/qcrypto.ko:root/lib/modules/qcrypto.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/sch_dsmark.ko:root/lib/modules/sch_dsmark.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/scsi_wait_scan.ko:root/lib/modules/scsi_wait_scan.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/spidev.ko:root/lib/modules/spidev.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/tsif_chrdev.ko:root/lib/modules/tsif_chrdev.ko \
device/samsung/skyrocket/prebuilt/system/lib/modules/vibrator.ko:root/lib/modules/vibrator.ko \
# USB
ADDITIONAL_DEFAULT_PROPERTIES += \
persist.service.adb.enable=1
#Using prebuilt libril.so right now
#PRODUCT_COPY_FILES += \
#device/samsung/skyrocket/prebuilt/system/lib/libril.so:system/lib/libril.so
#Add touchscreen config file
PRODUCT_COPY_FILES += \
device/samsung/skyrocket/prebuilt/system/usr/idc/qwerty.idc:system/usr/idc/qwerty.idc
device/samsung/skyrocket/prebuilt/system/usr/idc/qwerty2.idc:system/usr/idc/qwerty2.idc
## (2) Also get non-open-source GSM-specific aspects if available
$(call inherit-product-if-exists, vendor/samsung/skyrocket/skyrocket-vendor.mk)
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-samsung \
ro.com.google.clientidbase.ms=android-att-us \
ro.com.google.clientidbase.am=android-att-us \
ro.com.google.clientidbase.yt=android-samsung \
ro.com.google.clientidbase.gmm=android-samsung \
ro.product.model=SAMSUNG-SGH-I727 \
gsm.sim.operator.alpha=att \
gsm.operator.alpha=att \
gsm.sim.operator.numeric=310120 \
gsm.operator.numeric=310120 \
gsm.sim.operator.iso-country=us \
gsm.operator.iso-country=us \
ro.com.google.locationfeatures=1 \
ro.setupwizard.enable_bypass=1
DEVICE_PACKAGE_OVERLAYS += device/samsung/skyrocket/overlay
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-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.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
PRODUCT_PACKAGES += \
audio.a2dp.default \
gralloc.msm8660 \
hwcomposer.msm8660 \
libOmxCore \
libOmxVenc \
libOmxVdec \
libstagefrighthw \
com.android.future.usb.accessory
# This does need to be part of PRODUCT_PACKAGES but currently results in no video \
copybit.msm8660 \
# These PRODUCT_PACKAGES are enabled by default and do not need to be listed \
librs_jni \
libgenlock \
libmemalloc \
liboverlay \
libQcomUI \
libdivxdrmdecrypt \
# Keylayouts
PRODUCT_COPY_FILES += \
device/samsung/skyrocket/prebuilt/system/usr/keychars/qwerty2.kcm.bin:system/usr/keychars/qwerty2.kcm.bin \
device/samsung/skyrocket/prebuilt/system/usr/keychars/qwerty.kcm.bin:system/usr/keychars/qwerty.kcm.bin \
device/samsung/skyrocket/prebuilt/system/usr/keychars/sec_key.kcm.bin:system/usr/keychars/sec_key.kcm.bin \
device/samsung/skyrocket/prebuilt/system/usr/keychars/sec_touchkey.kcm.bin:system/usr/keychars/sec_touchkey.kcm.bin \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/sec_key.kl:system/usr/keylayout/sec_key.kl \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/qwerty.kl:system/usr/keylayout/qwerty.kl \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/sec_power_key.kl:system/usr/keylayout/sec_power_key.kl \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/sec_touchkey.kl:system/usr/keylayout/sec_touchkey.kl \
device/samsung/skyrocket/prebuilt/system/usr/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Temporary hack
ADDITIONAL_DEFAULT_PROPERTIES += \
persist.service.adb.enable=1 \
ro.secure=0
#NFC Support
PRODUCT_PACKAGES += \
libnfc \
libnfc_jni \
Nfc \
Tag
#Optional Add on packages
PRODUCT_PACKAGES += \
Camera \
Superuser \
su \
Stk
# NFC EXTRAS add-on API
PRODUCT_PACKAGES += \
com.android.nfc_extras
PRODUCT_PACKAGES += \
nfc.skyrocket
PRODUCT_LOCALES += en
PRODUCT_COPY_FILES += \
device/samsung/skyrocket/prebuilt/system/etc/vold.fstab:system/etc/vold.fstab \
device/samsung/skyrocket/prebuilt/system/etc/apns-conf.xml:system/etc/apns-conf.xml \
device/samsung/skyrocket/prebuilt/system/etc/spn-conf.xml:system/etc/spn-conf.xml \
device/samsung/skyrocket/prebuilt/system/etc/voicemail-conf.xml:system/etc/voicemail-conf.xml
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/skyrocket/prebuilt/root/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
$(call inherit-product, build/target/product/full_base_telephony.mk)
PRODUCT_NAME := full_skyrocket
PRODUCT_DEVICE := SGH-I727
PRODUCT_MODEL := SGH-I727
PRODUCT_MANUFACTURER := Samsung