forked from szlkiev/android_device_semc_msm7x30-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsm7x30.mk
167 lines (148 loc) · 6.44 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
#
# Copyright (C) 2011 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
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.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.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.xml:system/etc/permissions/android.hardware.touchscreen.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
# Common device specific configs
PRODUCT_COPY_FILES += \
device/semc/msm7x30-common/prebuilt/media_profiles.xml:system/etc/media_profiles.xml \
device/semc/msm7x30-common/prebuilt/media_codecs.xml:system/etc/media_codecs.xml \
device/semc/msm7x30-common/prebuilt/audio_policy.conf:system/etc/audio_policy.conf \
device/semc/msm7x30-common/prebuilt/10hostapconf:system/etc/init.d/10hostapconf \
device/semc/msm7x30-common/prebuilt/10dhcpcd:system/etc/init.d/10dhcpcd \
device/semc/msm7x30-common/prebuilt/11storage:system/etc/init.d/11storage \
device/semc/msm7x30-common/prebuilt/ueventd.semc.rc:root/ueventd.semc.rc \
device/semc/msm7x30-common/prebuilt/vold.fstab:system/etc/vold.fstab \
device/semc/msm7x30-common/prebuilt/fstab:root/fstab \
device/semc/msm7x30-common/prebuilt/fstab.semc:root/fstab.semc \
device/semc/msm7x30-common/prebuilt/postrecoveryboot.sh:root/sbin/postrecoveryboot.sh \
device/semc/msm7x30-common/prebuilt/nandroid-md5.sh:root/sbin/nandroid-md5.sh
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.msm7x30 \
audio_policy.msm7x30
# Graphics
PRODUCT_PACKAGES += \
gralloc.msm7x30 \
copybit.msm7x30 \
hwcomposer.msm7x30 \
libgenlock \
libtilerenderer \
libmemalloc \
liboverlay
# Hal
PRODUCT_PACKAGES += \
power.semc \
gps.semc \
lights.semc \
camera.semc \
sensors.default
# QCOM OMX
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libOmxVdec \
libOmxVenc \
libmm-omxcore \
libdivxdrmdecrypt
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
LegacyCamera \
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 += \
ro.opengles.version=131072 \
rild.libpath=/system/lib/libril-qc-1.so \
rild.libargs=-d/dev/smd0 \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
ro.ril.def.agps.mode=2 \
ro.ril.def.agps.feature=1 \
ro.telephony.call_ring.multiple=false \
keyguard.no_require_sim=true \
ro.com.google.locationfeatures=1 \
ro.product.locale.language=en \
ro.product.locale.region=US \
persist.ro.ril.sms_sync_sending=1 \
ro.use_data_netmgrd=true \
ro.tethering.kb_disconnect=1 \
com.qc.hardware=true \
debug.sf.hw=1 \
debug.composition.type=gpu \
hwui.render_dirty_regions=false \
hwui.disable_vsync=true \
debug.mdpcomp.logs=0 \
BUILD_UTC_DATE=0 \
persist.sys.usb.config=mass_storage,adb \
debug.camcorder.disablemeta=1 \
ro.lcd_min_brightness=20 \
dalvik.vm.dexopt-data-only=1 \
ro.debuggable=1 \
persist.sys.strictmode.visual=0 \
persist.sys.strictmode.disable=1 \
debug.performance.tuning=1 \
video.accelerate.hw=1 \
ro.hardware.respect_als=true
# Better video streaming
PRODUCT_PROPERTY_OVERRIDES += \
media.stagefright.enable-meta=true \
media.stagefright.enable-scan=true \
media.stagefright.enable-http=true \
media.stagefright.enable-record=false
# Better internet browsing & download speed
PRODUCT_PROPERTY_OVERRIDES += \
net.tcp.buffersize.default=6144,87380,110208,6144,16384,110208 \
net.tcp.buffersize.wifi=262144,524288,1048576,262144,524288,1048576 \
net.tcp.buffersize.hsdpa=6144,262144,1048576,6144,262144,1048576 \
net.tcp.buffersize.umts=6144,87380,110208,6144,16384,110208 \
net.tcp.buffersize.hspa=6144,87380,262144,6144,16384,262144 \
net.tcp.buffersize.gprs=6144,8760,11680,6144,8760,11680 \
net.tcp.buffersize.edge=6144,26280,35040,6144,16384,35040
# System prop for sending transmit power request to RIL during WiFi hotspot on/off
PRODUCT_PROPERTY_OVERRIDES += \
ro.ril.transmitpower=true
# Disable Sending Usage Data
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.nocheckin=1
# power saving
PRODUCT_PROPERTY_OVERRIDES += \
ro.ril.disable.power.collapse=0
# Saves some battery without reducing performances
PRODUCT_PROPERTY_OVERRIDES += \
wifi.supplicant_scan_interval=180 \
pm.sleep_mode=1