-
Notifications
You must be signed in to change notification settings - Fork 38
/
msm7x30.mk
218 lines (180 loc) · 7.96 KB
/
msm7x30.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
# Copyright (C) 2011-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.
# These is the hardware-specific overlay, which points to the location
# of hardware-specific resource overrides, typically the frameworks and
# application settings that are stored in resourced.
DEVICE_PACKAGE_OVERLAYS += device/semc/msm7x30-common/overlay
COMMON_PATH := device/semc/msm7x30-common
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# These are the common 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.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.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.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.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
# Init scripts
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/init.semc.rc:root/init.semc.rc \
$(COMMON_PATH)/rootdir/init.semc.usb.rc:root/init.semc.usb.rc \
$(COMMON_PATH)/rootdir/ueventd.semc.rc:root/ueventd.semc.rc
# Reboot to recovery related scripts
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/sbin/pre-recovery.sh:root/sbin/pre-recovery.sh
# fstab
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/fstab.semc:root/fstab.semc
# Common device specific configs
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/system/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(COMMON_PATH)/rootdir/system/etc/media_profiles.xml:system/etc/media_profiles.xml
# Media codecs
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(COMMON_PATH)/rootdir/system/etc/media_codecs.xml:system/etc/media_codecs.xml
# Common keylayouts
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/system/usr/keylayout/msm_pmic_pwr_key.kl:system/usr/keylayout/msm_pmic_pwr_key.kl \
$(COMMON_PATH)/rootdir/system/usr/keylayout/simple_remote.kl:system/usr/keylayout/simple_remote.kl \
$(COMMON_PATH)/rootdir/system/usr/keylayout/simple_remote_appkey.kl:system/usr/keylayout/simple_remote_appkey.kl
# Offline charging animation
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_01.png:system/semc/chargemon/data/charging_animation_01.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_02.png:system/semc/chargemon/data/charging_animation_02.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_03.png:system/semc/chargemon/data/charging_animation_03.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_04.png:system/semc/chargemon/data/charging_animation_04.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_05.png:system/semc/chargemon/data/charging_animation_05.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_06.png:system/semc/chargemon/data/charging_animation_06.png \
$(COMMON_PATH)/animations/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT)/charging_animation_07.png:system/semc/chargemon/data/charging_animation_07.png
# Boot logo
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/bootlogo/$(TARGET_SCREEN_WIDTH)x$(TARGET_SCREEN_HEIGHT).rle:root/initlogo.rle
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
audio.primary.msm7x30 \
libaudio-resampler \
libaudioparameter
# Adreno
PRODUCT_PACKAGES += \
libstlport
# BoringSSL compat symbols wrapper
PRODUCT_PACKAGES += \
libboringssl-compat
# Camera
PRODUCT_PACKAGES += \
libshim_camera \
Snap
# Graphics
PRODUCT_PACKAGES += \
copybit.msm7x30 \
gralloc.msm7x30 \
hwcomposer.msm7x30 \
memtrack.msm7x30 \
libgenlock \
libmemalloc \
liboverlay \
libqdutils \
libtilerenderer
# Hal
PRODUCT_PACKAGES += \
power.msm7x30 \
gps.msm7x30 \
lights.msm7x30 \
sensors.msm7x30
# QCOM OMX
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libOmxVdec \
libOmxVenc \
libc2dcolorconvert
# Recovery
PRODUCT_PACKAGES += \
keycheck
# IPv6 tethering
PRODUCT_PACKAGES += \
ebtables \
ethertypes
# Live wallpapers picker
PRODUCT_PACKAGES += LiveWallpapersPicker
# ART
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-filter=balanced \
dalvik.vm.dex2oat-swap=false \
dalvik.vm.image-dex2oat-filter=speed
# Google
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase.ms=android-sonymobile \
ro.com.google.locationfeatures=1
# Radio
PRODUCT_PROPERTY_OVERRIDES += \
rild.libargs=-d/dev/smd0 \
rild.libpath=/system/lib/libril-qc-1.so \
ro.telephony.call_ring.multiple=false \
ro.ril.def.agps.feature=1 \
ro.ril.def.agps.mode=2 \
ro.use_data_netmgrd=true
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.hw=1 \
debug.composition.type=mdp \
persist.hwc.mdpcomp.enable=true \
debug.mdpcomp.maxlayer=3 \
debug.mdpcomp.idletime=-1
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number.
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# Newer camera API isn't supported.
PRODUCT_PROPERTY_OVERRIDES += \
camera2.portability.force_api=1
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
audio.offload.disable=1
# Increase speed for UMS transfer
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.umsdirtyratio=20
# IO Scheduler
PRODUCT_PROPERTY_OVERRIDES += \
sys.io.scheduler=bfq
# For applications to determine if they should turn off specific memory-intensive
# features that work poorly on low-memory devices.
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true \
persist.sys.force_highendgfx=true
# Reduce background apps limit to 16 on low-tier devices
PRODUCT_PROPERTY_OVERRIDES += \
ro.sys.fw.bg_apps_limit=16
# Set max background services
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.max_starting_bg=8
# Disable atlas services on low-ram targets
PRODUCT_PROPERTY_OVERRIDES += \
config.disable_atlas=true
# Disable strict mode
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.strictmode.visual=0 \
persist.sys.strictmode.disable=1
# proprietary side of the board
$(call inherit-product, vendor/semc/msm7x30-common/msm7x30-common-vendor.mk)