forked from aftersilence/ics_acer_liquid
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevice_salsa.mk
executable file
·165 lines (140 loc) · 5.88 KB
/
device_salsa.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
#############################################################################
# #
# Acer liquid build file, based on codeaurora tree qsd8250_ffa #
# #
# Created by Koudelka and xian1243 #
# #
#############################################################################
#TARGET_PREBUILT_KERNEL := $(LOCAL_PATH)/kernel
#PRODUCT_COPY_FILES += \
# $(TARGET_PREBUILT_KERNEL):kernel
# Packages to include
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
lights.salsa \
gps.salsa \
libcamera \
LiquidParts
# OMX
PRODUCT_PACKAGES += \
libstagefrighthw \
libOmxCore \
libmm-omxcore \
libOmxVdec \
libOmxVidEnc
# GPU
PRODUCT_PACKAGES += \
gralloc.qsd8k \
camera.qsd8k \
libQcomUI \
libtilerenderer \
liboverlay \
librs_jni
#Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio_policy.salsa \
audio.primary.salsa
# e2fsprogs
PRODUCT_PACKAGES += \
libext2fs \
libext2_uuid \
libext2_e2p \
libext2_blkid \
libext2_com_err \
libext2_profile \
resize2fs \
mke2fs \
tune2fs \
badblocks \
e2fsck
# proprietary side of the device
$(call inherit-product-if-exists, vendor/acer/salsa/salsa-vendor.mk)
$(call inherit-product, frameworks/base/build/phone-hdpi-512-dalvik-heap.mk)
# we have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_LOCALES := en
# Passion uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# Check generic.mk/languages_full.mk to see what applications/languages are installed turns out all languages get included if I don't specify, but some seem to be missing the actuall translation.
$(call inherit-product, build/target/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# Pick up overlay for features that depend on non-open-source files
DEVICE_PACKAGE_OVERLAYS := device/acer/salsa/overlay
# Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/base/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml \
frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/base/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
## (3) Finally, the least specific parts, i.e. the non-GSM-specific aspects
# Additional settings used in AOSP builds
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.locationfeatures=1 \
keyguard.no_require_sim=true \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.dataroaming=false \
ro.sf.lcd_density=240 \
rild.libpath=/system/lib/libril-acer-1.so \
rild.libargs=-d/dev/smd0 \
ro.ril.hsxpa=1 \
ro.ril.gprsclass=10 \
ro.setupwizard.enable_bypass=1 \
dalvik.vm.lockprof.threshold=500 \
dalvik.vm.verify-bytecode=false \
dalvik.vm.dexopt-flags=v=n,o=v \
dalvik.vm.execution-mode=int:jit \
dalvik.vm.checkjni=false \
debug.sf.hw=1 \
ro.zram.default=0 \
ro.media.dec.aud.wma.enabled=1 \
ro.media.dec.vid.wmv.enabled=1 \
hwui.render_dirty_regions=false \
hwui.disable_vsync=true \
BUILD_UTC_DATE=0 \
persist.ro.ril.sms_sync_sending=1
PRODUCT_PROPERTY_OVERRIDES += ro.vold.umsdirtyratio=20
# Acer specific proximity sensor calibration
PRODUCT_PROPERTY_OVERRIDES += \
hw.acer.psensor_calib_max_base=32717 \
hw.acer.psensor_calib_min_base=32716 \
hw.acer.psensor_thres=500 \
hw.acer.psensor_mode=1
# Acer hardware revision
PRODUCT_PROPERTY_OVERRIDES += \
ro.hw_version=6
# Speed up scrolling
PRODUCT_PROPERTY_OVERRIDES += \
windowsmgr.max_events_per_sec=260
# Default network type.
# 0 => WCDMA preferred, 3 => GSM/AUTO (PRL) preferred
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=3
# WiFi configuration
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=eth0 \
wifi.supplicant_scan_interval=180
# 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
# This is a high density device with more memory, so larger vm heaps for it.
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1
# proprietary side of the device
$(call inherit-product-if-exists, device/acer/salsa/SalsaProprietary.mk)
# Overrides
PRODUCT_BRAND := acer
PRODUCT_NAME := cm_salsa
PRODUCT_DEVICE := salsa
PRODUCT_MODEL := A1
PRODUCT_MANUFACTURER := Acer