-
Notifications
You must be signed in to change notification settings - Fork 2
/
device_venus.mk
218 lines (186 loc) · 9.5 KB
/
device_venus.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 2016 The Android Open Source 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.
#
# Operator Name Database (for automatic recognition of network and APN)
PRODUCT_COPY_FILES := \
$(LOCAL_PATH)/global/voicemail-conf.xml:system/etc/voicemail-conf.xml \
$(LOCAL_PATH)/global/apns-conf.xml:system/etc/apns-conf.xml \
$(LOCAL_PATH)/global/apns-conf-nolte.xml:system/etc/apns-conf-nolte.xml \
$(LOCAL_PATH)/global/virtualNets-conf.xml:system/etc/virtualNets-conf.xml \
$(LOCAL_PATH)/global/globalAutoAdapt-conf.xml:system/etc/globalAutoAdapt-conf.xml \
$(LOCAL_PATH)/global/globalMatchs-conf.xml:system/etc/globalMatchs-conf.xml \
$(LOCAL_PATH)/global/ons/ons.bin:system/etc/ons/ons.bin \
$(LOCAL_PATH)/global/xml/hw_defaults.xml:system/etc/xml/hw_defaults.xml \
$(LOCAL_PATH)/global/xml/mccTable_V2.xml:system/etc/xml/mccTable_V2.xml
# Copy Prebuilt Kernel
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/kernel:kernel
# Overlays (Disable overlays for now)
#DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
# DPI Selection
PRODUCT_AAPT_CONFIG := xxhdpi xhdpi hdpi normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_AAPT_PREBUILT_DPI := xxhdpi xhdpi hdpi
# Ramdisk + Selinux Configurations
$(call inherit-product, $(LOCAL_PATH)/ramdisk/ramdisk_venus.mk)
# Add openssh support for remote debugging and job submission
PRODUCT_PACKAGES += ssh sftp scp sshd ssh-keygen sshd_config start-ssh uim wpa_supplicant
# Build and run only ART
PRODUCT_RUNTIMES := runtime_libart_default
# Build BT a2dp audio HAL
PRODUCT_PACKAGES += audio.a2dp.default
# Needed to sync the system clock with the RTC clock
PRODUCT_PACKAGES += hwclock
# Include USB speed switch App
PRODUCT_PACKAGES += UsbSpeedSwitch
# Build libion for new double-buffering HDLCD driver
PRODUCT_PACKAGES += libion
# Build gatord daemon for DS-5/Streamline
PRODUCT_PACKAGES += gatord
# Build gralloc for Juno
PRODUCT_PACKAGES += gralloc.hi6210sft
# OpenGL Renderer
PRODUCT_PACKAGES += libGLES_android
# Build Props
PRODUCT_PROPERTY_OVERRIDES += \
ro.secure=0 \
ro.adb.secure=0 \
ro.allow.mock.location=0 \
ro.debuggable=1 \
ro.magic.api.version=0.1 \
persist.sys.usb.config=adb \
ro.opengles.version=196609 \
ro.sf.lcd_density=480 \
hw.lcd.lcd_density=480
# Extended OpenGL Renderer Configurations
PRODUCT_PROPERTY_OVERRIDES += \
ro.hwui.texture_cache_size=72 \
ro.hwui.texture_cache_flushrate=0.4 \
ro.hwui.layer_cache_size=48 \
ro.hwui.path_cache_size=32 \
ro.hwui.shape_cache_size=2 \
ro.hwui.drop_shadow_cache_size=6 \
ro.hwui.gradient_cache_size=1 \
ro.hwui.text_large_cache_height=1024 \
ro.hwui.text_large_cache_width=2048 \
ro.hwui.text_small_cache_height=1024 \
ro.hwui.text_small_cache_width=1024 \
ro.hwui.r_buffer_cache_size=8
# Force disable Strict Mode (red flashing screen borders)
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.strictmode.visual=0 \
persist.sys.strictmode.disable=1
# Dalvik Flags
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
# Off charging mode
PRODUCT_PACKAGES += \
charger_res_images
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.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.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.camera.external.xml:system/etc/permissions/android.hardware.camera.external.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.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.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.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.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.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 \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
frameworks/native/data/etc/android.software.webview.xml:system/etc/permissions/android.software.webview.xml \
frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml
# RIL
#PRODUCT_PROPERTY_OVERRIDES += \
# audioril.lib=libhuawei-audio-ril.so \
# ro.telephony.ril_class=HuaweiRIL
# Extra Packages
#PRODUCT_PACKAGES += \
# audio.primary.default \
# audio_policy.stub \
# audio.a2dp.default \
# audio.usb.default \
# audio.r_submix.default \
# libaudioutils \
# libtinyalsa \
# tinyplay \
# tinycap \
# tinymix \
# tinypcminfo \
# sound_trigger.primary.hi6210sft \
# libion.huawei \
# libwpa_client \
# wpa_supplicant \
# wpa_supplicant-conf
# Shim Libraries (will be added after fixed boot)
#PRODUCT_PACKAGES += \
# libboringssl-compat \
# libhw_cutils \
# libhw_gui \
# libhw_log
# Security Enhanced Linux Configurations
#BOARD_SEPOLICY_DIRS += \
# $(LOCAL_PATH)/selinux
# Phone Modem Prop
PRODUCT_COPY_FILES += $(LOCAL_PATH)/phone.prop:system/phone.prop
# Audio Configurations
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/audio/audio_effects.conf:system/etc/audio_effects.conf \
# $(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf
# Media Profiles (Patched)
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
# $(LOCAL_PATH)/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
# $(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
# Bluetooth Configurations
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/bluetooth/auto_pair_devlist.conf:system/etc/bluetooth/auto_pair_devlist.conf \
# $(LOCAL_PATH)/bluetooth/bt_did.conf:system/etc/bluetooth/bt_did.conf \
# $(LOCAL_PATH)/bluetooth/bt_stack_beta.conf:system/etc/bluetooth/bt_stack_beta.conf \
# $(LOCAL_PATH)/bluetooth/bt_stack_log.conf:system/etc/bluetooth/bt_stack_log.conf \
# $(LOCAL_PATH)/bluetooth/bt_stack.conf:system/etc/bluetooth/bt_stack.conf \
# $(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
# WiFi Configurations
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/wifi/hostapd_hisi.conf:system/etc/wifi/hostapd_hisi.conf \
# $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
# $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
# $(LOCAL_PATH)/wifi/wpa_supplicant_hisi.conf:system/etc/wifi/wpa_supplicant_hisi.conf \
# $(LOCAL_PATH)/wifi/wpa_supplicant.conf:system/etc/wpa_supplicant.conf
#
# GPS Configurations
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
# $(LOCAL_PATH)/gps/gpsconfig.xml:system/etc/gpsconfig.xml
# Thermal Configurations (These will be added later)
# CPU Profiles (These will be added later)
# Shims
PRODUCT_PACKAGES += \
libshim_liblog