forked from cm10-1-marvel/android_device_htc_msm7x27-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
msm7x27.mk
142 lines (118 loc) · 4.78 KB
/
msm7x27.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
#
# 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.
#
DEVICE_PACKAGE_OVERLAYS += device/htc/msm7x27-common/overlay
# Permissions
PRODUCT_COPY_FILES += \
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.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.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.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.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 \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
# USB
PRODUCT_COPY_FILES += \
device/htc/msm7x27-common/init.msm7x27.usb.rc:root/init.msm7x27.usb.rc
# Media
PRODUCT_COPY_FILES += \
device/htc/msm7x27-common/libaudio/audio_policy.conf:system/etc/audio_policy.conf \
device/htc/msm7x27-common/media_codecs.xml:system/etc/media_codecs.xml \
device/htc/msm7x27-common/media_profiles.xml:system/etc/media_profiles.xml
# Common msm7x27 firmware
PRODUCT_COPY_FILES += \
device/htc/msm7x27-common/firmware/bcm4329.hcd:system/etc/firmware/bcm4329.hcd \
device/htc/msm7x27-common/firmware/fw_bcm4329.bin:system/etc/firmware/fw_bcm4329.bin \
device/htc/msm7x27-common/firmware/fw_bcm4329_apsta.bin:system/etc/firmware/fw_bcm4329_apsta.bin
## Audio
PRODUCT_PACKAGES += \
audio_policy.msm7x27 \
audio.primary.msm7x27 \
libtinyalsa
## Camera
#PRODUCT_PACKAGES += \
# camera.msm7x27
## Misc
PRODUCT_PACKAGES += \
lights.msm7x27 \
com.android.future.usb.accessory \
brcm_patchram_plus \
Superuser
### Add system daemons
PRODUCT_PACKAGES += \
rild
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
setup_fs
## RIL
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libhtc_ril.so \
ro.ril.enable.dtm=1 \
ro.ril.hsdpa.category=8 \
ro.ril.hsupa.category=5 \
ro.ril.def.agps.mode=2 \
ro.ril.hsxpa=2 \
ro.ril.gprsclass=12
## Interfaces
PRODUCT_PROPERTY_OVERRIDES += \
mobiledata.interfaces=rmnet0,rmnet1,rmnet2,gprs,ppp0 \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15
## Graphics
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=160 \
debug.sf.hw=1 \
debug.sf.no_hw_vsync=1 \
debug.gr.numframebuffers=2 \
debug.composition.type=gpu \
persist.sys.prefer_16bpp=1 \
persist.sys.use_dithering=0
## Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.checkjni=false \
dalvik.vm.dexopt-data-only=1 \
dalvik.vm.dexopt-flags=v=a,o=v,m=y,u=y \
dalvik.vm.heapstartsize=5m \
dalvik.vm.heapgrowthlimit=24m \
dalvik.vm.heapsize=64m
## Misc
PRODUCT_PROPERTY_OVERRIDES += \
settings.display.brightness=100 \
ro.com.google.locationfeatures=0 \
ro.setupwizard.enable_bypass=1 \
persist.sys.usb.config=mass_storage,adb \
persist.sys.purgeable_assets=1
# Disable ADB authentication until it works
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=0
# SELinux - we're not ready for enforcing mode yet
PRODUCT_PROPERTY_OVERRIDES += \
ro.boot.selinux=permissive
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Inherit mdpi-common
$(call inherit-product, device/mdpi-common/mdpi.mk)
# Inherit qcom/msm7x27
$(call inherit-product, device/qcom/msm7x27/msm7x27.mk)
### Artwork
PRODUCT_LOCALES += mdpi
# Fall back to hdpi when mdpi is missing
PRODUCT_AAPT_CONFIG := normal mdpi hdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
# Include Adreno200 vendor blobs
# http://git.cryptomilk.org/projects/marvel/android_vendor_qcom_msm7x27.git/
$(call inherit-product, vendor/qcom/msm7x27/qcom-vendor.mk)
$(call inherit-product, vendor/htc/msm7x27-common/vendor.mk)