forked from LegacyXperia/android_device_semc_msm7x30-common
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmsm7x30.mk
172 lines (143 loc) · 5.92 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
# 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)
$(call inherit-product, device/semc/msm7x30-common/resources.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
# Common device specific configs
PRODUCT_COPY_FILES += \
$(COMMON_PATH)/rootdir/system/etc/media_profiles.xml:system/etc/media_profiles.xml \
$(COMMON_PATH)/rootdir/system/etc/media_codecs.xml:system/etc/media_codecs.xml \
$(COMMON_PATH)/rootdir/system/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(COMMON_PATH)/rootdir/system/etc/vold.fstab:system/etc/vold.fstab \
$(COMMON_PATH)/rootdir/fstab.semc:root/fstab.semc \
$(COMMON_PATH)/rootdir/init.semc.rc:root/init.semc.rc \
$(COMMON_PATH)/rootdir/ueventd.semc.rc:root/ueventd.semc.rc \
$(COMMON_PATH)/rootdir/sbin/postrecoveryboot.sh:root/sbin/postrecoveryboot.sh
# 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
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.usb.default \
audio.primary.msm7x30 \
audio_policy.msm7x30 \
libaudio-resampler \
libaudioparameter
# Graphics
PRODUCT_PACKAGES += \
gralloc.msm7x30 \
copybit.msm7x30 \
hwcomposer.msm7x30
# Hal
PRODUCT_PACKAGES += \
camera.semc \
power.msm7x30 \
gps.msm7x30 \
lights.msm7x30 \
sensors.default
# QCOM OMX
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libOmxVdec \
libOmxVenc \
libmm-omxcore \
libc2dcolorconvert
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
Torch
# WiFi
PRODUCT_PACKAGES += \
libnetcmdiface
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# Common device properties
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libril-qc-1.so \
rild.libargs=-d/dev/smd0 \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
ro.telephony.call_ring.multiple=false \
persist.ro.ril.sms_sync_sending=1 \
ro.ril.def.agps.mode=2 \
ro.ril.def.agps.feature=1
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=15 \
ro.com.google.locationfeatures=1 \
ro.product.locale.language=en \
ro.product.locale.region=US \
ro.use_data_netmgrd=true \
ro.tethering.kb_disconnect=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
# QCOM
PRODUCT_PROPERTY_OVERRIDES += \
com.qc.hardware=true \
debug.sf.hw=1 \
debug.egl.hw=1 \
debug.mdpcomp.logs=0 \
hwui.disable_vsync=true
# Low Power Audio
PRODUCT_PROPERTY_OVERRIDES += \
lpa.decode=false \
lpa.use-stagefright=false
# Resampler quality
PRODUCT_PROPERTY_OVERRIDES += \
af.resampler.quality=255
# Set default USB interface
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb
# Increase speed for UMS transfer
PRODUCT_PROPERTY_OVERRIDES += \
ro.vold.umsdirtyratio=50
# Fix camcorder
PRODUCT_PROPERTY_OVERRIDES += \
debug.camcorder.disablemeta=1
# Enable repeatable keys in CWM
PRODUCT_PROPERTY_OVERRIDES += \
ro.cwm.enable_key_repeat=true
# Disable excessive dalvik debug messages
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.debug.alloc=0
# Set default number of background apps to 10
PRODUCT_PROPERTY_OVERRIDES += \
sys.mem.max_hidden_apps=10
# Extra debugging props
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)