forked from ali-rais/android_device_samsung_logan2g
-
Notifications
You must be signed in to change notification settings - Fork 1
/
device_logan2g.mk
201 lines (169 loc) · 6.66 KB
/
device_logan2g.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
#
# 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.
#
# Get minimum languages available
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Get non-open-source specific aspects if available
$(call inherit-product-if-exists, vendor/samsung/logan2g/logan2g-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)
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk)
# Overlay
DEVICE_PACKAGE_OVERLAYS += device/samsung/logan2g/overlay
PRODUCT_LOCALES += hdpi
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Set local path
LOCAL_PATH := device/samsung/logan2g
# Softlink sh
$(shell mkdir -p $(LOCAL_PATH)/../../../out/target/product/logan2g/recovery/root/system/bin)
$(shell ln -sf -t $(LOCAL_PATH)/../../../out/target/product/logan2g/recovery/root/system/bin ../../sbin/sh)
# Files to be copied
# Init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/fstab.sc6820i:root/fstab.sc6820i \
$(LOCAL_PATH)/rootdir/init.bt.rc:root/init.bt.rc \
$(LOCAL_PATH)/rootdir/init.sc6820i.rc:root/init.sc6820i.rc \
$(LOCAL_PATH)/rootdir/init.sc6820i.usb.rc:root/init.sc6820i.usb.rc \
$(LOCAL_PATH)/rootdir/lpm.rc:root/lpm.rc \
$(LOCAL_PATH)/rootdir/ueventd.sc6820i.rc:root/ueventd.sc6820i.rc \
$(LOCAL_PATH)/rootdir/bin/charge:root/bin/charge \
$(LOCAL_PATH)/rootdir/bin/poweroff_alarm:root/bin/poweroff_alarm \
$(LOCAL_PATH)/rootdir/bin/rawdatad:root/bin/rawdatad \
$(LOCAL_PATH)/rootdir/init.rc:root/init.rc
# Memtrack
PRODUCT_PACKAGES += \
memtrack.sc6820i
#Compat
PRODUCT_PACKAGES += \
libstlport
# Idc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/Zinitix_tsp.idc:system/usr/idc/Zinitix_tsp.idc
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayouts/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/keylayouts/sci-keypad.kl:system/usr/keylayout/sci-keypad.kl
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/default_gain.conf:system/etc/default_gain.conf \
$(LOCAL_PATH)/configs/devicevolume.xml:system/etc/devicevolume.xml \
$(LOCAL_PATH)/configs/formatvolume.xml:system/etc/formatvolume.xml
# Hw Params
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_para:system/etc/audio_para \
$(LOCAL_PATH)/configs/codec_pga.xml:system/etc/codec_pga.xml\
$(LOCAL_PATH)/configs/tiny_hw.xml:system/etc/tiny_hw.xml \
$(LOCAL_PATH)/configs/audio_hw.xml:system/etc/audio_hw.xml
# These are the hardware-specific features
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.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.xml:system/etc/permissions/android.hardware.location.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.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.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.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# Filesystem
PRODUCT_PACKAGES += \
setup_fs \
# Wi-Fi
PRODUCT_PACKAGES += \
macloader \
dhcpcd.conf \
hostapd \
libnetcmdiface \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=180
# IPv6 tethering
PRODUCT_PACKAGES += \
ebtables \
ethertypes
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.sc6820i \
audio_policy.sc6820i \
audio.r_submix.default \
audio.usb.default \
audio_vbc_eq \
libaudio-resampler \
libatchannel \
libtinyalsa
# Usb accessory
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
# Service mode
PRODUCT_PACKAGES += \
SamsungServiceMode
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
Snap \
Gallery2
# Properties
# Default properties
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=adb,mtp \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1
# ADB. derp :P
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.adb.secure=0 \
persist.service.adb.enable=1
# Google-specific location properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
ro.com.google.networklocation=1
# Device props
PRODUCT_PROPERTY_OVERRIDES := \
keyguard.no_require_sim=true \
ro.com.android.dataroaming=false \
persist.sys.sprd.modemreset=0
# 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.
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.android.checkjni=0 \
dalvik.vm.checkjni=false \
dalvik.vm.heapstartsize=5m \
dalvik.vm.heapgrowthlimit=96m \
dalvik.vm.heapsize=128m \
wifi.interface=wlan0 \
mobiledata.interfaces=rmnet0 \
ro.zygote.disable_gl_preload=true \
persist.radio.multisim.config=dsds \
ro.telephony.ril_class=SamsungSPRDRIL \
ro.multisim.simslotcount=2 \
ro.telephony.call_ring.multiple=0 \
ro.telephony.call_ring=0 \
ro.crypto.state=unsupported \
ro.com.google.gmsversion=4.1_r6 \