forked from corphish/android_device_samsung_mint
-
Notifications
You must be signed in to change notification settings - Fork 3
/
device_mint2g.mk
executable file
·182 lines (144 loc) · 5.68 KB
/
device_mint2g.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
#
# Copyright (C) 2013 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.
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
## (2) Also get non-open-source specific aspects if available
$(call inherit-product-if-exists, vendor/samsung/mint2g/mint2g-vendor.mk)
# Use the Dalvik VM specific for devices with 512 MB of RAM
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Inherit common aspects of board
$(call inherit-product, device/samsung/sprd-common/common.mk)
## overlays
DEVICE_PACKAGE_OVERLAYS += device/samsung/mint2g/overlay
LOCAL_PATH := device/samsung/mint2g
# Init Files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/init.sp8810.rc:root/init.sp8810.rc \
$(LOCAL_PATH)/rootdir/init.sp8810.usb.rc:root/init.sp8810.usb.rc \
$(LOCAL_PATH)/rootdir/fstab.sp8810:root/fstab.sp8810 \
$(LOCAL_PATH)/rootdir/ueventd.sp8810.rc:root/ueventd.sp8810.rc \
$(LOCAL_PATH)/rootdir/bin/charge:root/bin/charge \
$(LOCAL_PATH)/rootdir/modem_control:root/modem_control \
$(LOCAL_PATH)/rootdir/bin/poweroff_alarm:root/bin/poweroff_alarm \
$(LOCAL_PATH)/rootdir/bin/vcharged:root/bin/vcharged \
$(LOCAL_PATH)/rootdir/bin/rawdatad:root/bin/rawdatad
# System init fragments
SYSTEM_INIT_RC_FILES := \
$(LOCAL_PATH)/rootdir/system/etc/init/at_distributor.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/calibrationinit.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/charge.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/data.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/healthd.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/nvitem.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/rild.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/ss_daemon.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/symlink.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/telephony.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/vcharged.rc \
$(LOCAL_PATH)/rootdir/system/etc/init/wifi.rc
PRODUCT_COPY_FILES += \
$(foreach f,$(SYSTEM_INIT_RC_FILES),$(f):system/etc/init/$(notdir $(f)))
# Idc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sec_touchscreen.idc:system/usr/idc/sec_touchscreen.idc
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/sprd-keypad.kl:system/usr/keylayout/sprd-keypad.kl
# Bluetooth Vendor Configuration
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/usetc/bluetooth/bt_vendor.conf
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072 \
# These are the hardware-specific settings that are stored in system properties.
# Note that the only such settings should be the ones that are too low-level to
# be reachable from resources or other mechanisms.
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=180
#Wifi
PRODUCT_PACKAGES += \
wpa_supplicant \
hostapd \
wpa_supplicant.conf
# CPUFreq driver by @psych.half
PRODUCT_PACKAGES += \
cpufreq-sc8810.ko
# Graphics
PRODUCT_PACKAGES += \
libUMP
# Camera
PRODUCT_PACKAGES += \
camera.sc8810
# Hw params
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio_para:system/etc/audio_para \
$(LOCAL_PATH)/codec_pga.xml:system/etc/codec_pga.xml\
$(LOCAL_PATH)/tiny_hw.xml:system/etc/tiny_hw.xml
# Media config
MEDIA_CONFIGS := \
$(LOCAL_PATH)/media_codecs.xml \
$(LOCAL_PATH)/media_profiles.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml
PRODUCT_COPY_FILES += \
$(foreach f,$(MEDIA_CONFIGS),$(f):system/etc/$(notdir $(f)))
# 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 \
wifi.interface=wlan0 \
ro.zygote.disable_gl_preload=true \
persist.msms.phone_count=2 \
persist.radio.multisim.config=dsds \
ro.telephony.call_ring.multiple=0 \
dalvik.vm.heapgrowthlimit=46m \
dalvik.vm.heapsize=92m \
ro.telephony.ril_class=SamsungMint2GRIL
ro.telephony.call_ring=0
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=adb,mtp \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.adb.secure=0 \
persist.service.adb.enable=1
# ART device props
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-Xms=8m \
dalvik.vm.dex2oat-Xmx=96m \
dalvik.vm.dex2oat-flags=--no-watch-dog \
dalvik.vm.dex2oat-filter=interpret-only \
dalvik.vm.image-dex2oat-Xms=48m \
dalvik.vm.image-dex2oat-Xmx=48m \
dalvik.vm.image-dex2oat-filter=speed
# Force use old camera api
PRODUCT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
PRODUCT_TAGS += dalvik.gc.type-precise
# Boot animation
TARGET_SCREEN_HEIGHT := 320
TARGET_SCREEN_WIDTH := 240
# Aapt conf
PRODUCT_AAPT_PREF_CONFIG := ldpi