forked from thune-xiaobai/Android_device_xiaomi_pisces
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdevice_pisces.mk
212 lines (177 loc) · 8.74 KB
/
device_pisces.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
# vim:et:ts=4:sts=4
LOCAL_PATH := device/xiaomi/pisces
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
$(call inherit-product-if-exists, vendor/xiaomi/pisces/pisces-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
PRODUCT_CHARACTERISTICS := nosdcard
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=adb \
persist.sys.isUsbOtgEnabled=1 \
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
# permissions file from AOSP
PRODUCT_COPY_FILES += \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.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.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.ethernet.xml:system/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.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.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.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.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/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
# permissions file from vendor
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/permissions/com.broadcom.bt.xml:system/etc/permissions/com.broadcom.bt.xml \
$(LOCAL_PATH)/permissions/com.broadcom.nfc.xml:system/etc/permissions/com.broadcom.nfc.xml \
$(LOCAL_PATH)/permissions/com.nvidia.graphics.xml:system/etc/permissions/com.nvidia.graphics.xml \
$(LOCAL_PATH)/permissions/com.nvidia.miracast.xml:system/etc/permissions/com.nvidia.miracast.xml \
$(LOCAL_PATH)/permissions/com.nvidia.nvsi.xml:system/etc/permissions/com.nvidia.nvsi.xml \
$(LOCAL_PATH)/permissions/com.nvidia.nvstereoutils.xml:system/etc/permissions/com.nvidia.nvstereoutils.xml \
$(LOCAL_PATH)/permissions/com.nvidia.wifi.xml:system/etc/permissions/com.nvidia.wifi.xml \
$(LOCAL_PATH)/permissions/com.vzw.nfc.xml:system/etc/permissions/com.vzw.nfc.xml \
$(LOCAL_PATH)/permissions/org.simalliance.openmobileapi.xml:system/etc/permissions/org.simalliance.openmobileapi.xml \
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/prebuilt/system,system) \
# boot logo
TARGET_BOOTANIMATION_HALF_RES := true
# init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/adb_keys:root/adb_keys \
$(LOCAL_PATH)/ramdisk/fstab.pisces:root/fstab.pisces \
$(LOCAL_PATH)/ramdisk/fstab.zram_128:root/fstab.zram_128 \
$(LOCAL_PATH)/ramdisk/fstab.zram_256:root/fstab.zram_256 \
$(LOCAL_PATH)/ramdisk/fstab.zram_512:root/fstab.zram_512 \
$(LOCAL_PATH)/ramdisk/init.hdcp.rc:root/init.hdcp.rc \
$(LOCAL_PATH)/ramdisk/init.modem_imc.rc:root/init.modem_imc.rc \
$(LOCAL_PATH)/ramdisk/init.modem_sprd.rc:root/init.modem_sprd.rc \
$(LOCAL_PATH)/ramdisk/init.nv_dev_board.usb.rc:root/init.nv_dev_board.usb.rc \
$(LOCAL_PATH)/ramdisk/init.pisces.rc:root/init.pisces.rc \
$(LOCAL_PATH)/ramdisk/init.quickboot.rc:root/init.quickboot.rc \
$(LOCAL_PATH)/ramdisk/ueventd.pisces.rc:root/ueventd.pisces.rc \
# safe mount_ext4, dualboot/mount helper script
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bin/dualboot.sh:system/bin/dualboot.sh \
$(LOCAL_PATH)/bin/mount_ext4.sh:system/bin/mount_ext4.sh \
$(LOCAL_PATH)/bin/upgrade_layout.sh:system/bin/upgrade_layout.sh \
PRODUCT_PACKAGES += \
dumpe2fs \
# ril
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.apm_sim_not_pwdn=1 \
# powerhal
PRODUCT_PACKAGES += \
power.tegra \
# gps
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/gps/gpsconfigftm.xml:system/etc/gpsconfigftm.xml \
$(LOCAL_PATH)/gps/gpsconfig.xml:system/etc/gps/gpsconfig.xml \
# bluetooth
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bluetooth/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf \
# camera
PRODUCT_PACKAGES += \
camera.pisces \
camera.vendor.tegra \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/camera/model_frontal.xml:system/etc/model_frontal.xml \
$(LOCAL_PATH)/camera/nvcamera.conf:system/etc/nvcamera.conf \
# media
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/media/enctune.conf:system/etc/enctune.conf \
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/audio/asound.conf:system/etc/asound.conf \
$(LOCAL_PATH)/audio/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/audio/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/audio/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
PRODUCT_PACKAGES += \
audio.primary.tegra \
audio.a2dp.default \
audio.usb.default \
audio.r_submix.default \
libaudioutils \
libp4hread \
audio.usb.default \
tinycap \
tinymix \
tinypcminfo \
tinyplay \
# Graphic
PRODUCT_PACKAGES += \
hwcomposer.tegra \
libnvcap_video \
libnvomxadaptor \
# Key layout
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/keylayout,system/usr/keylayout) \
# Misc hardwares
PRODUCT_PACKAGES += \
lights.pisces \
# Charger
PRODUCT_PACKAGES += \
charger_res_images \
# QuickBoot
PRODUCT_PACKAGES += \
QuickBoot \
PRODUCT_COPY_FILES += \
bootable/recovery/fonts/18x32.png:root/res/images/font.png \
# Misc
PRODUCT_PACKAGES += \
librs_jni \
libnetcmdiface \
e2fsck \
# NFC
PRODUCT_PACKAGES += \
nfc_nci.bcm2079x.default \
NfcNci \
Tag \
com.android.nfc_extras \
SmartcardService \
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
# Vibrator
PRODUCT_PACKAGES += \
immvibed \
libImmVibeJ \
vibrator.pisces \
# Vendor Apps
PRODUCT_PACKAGES += \
AMAPNetworkLocation \
Cit \
NvCPLSvc \
PRODUCT_PACKAGES += \
libwpa_client \
hostapd \
dhcpcd.conf \
wpa_supplicant \
wpa_supplicant.conf \
PRODUCT_PACKAGES += \
MI3TDSettings \
libshim_icuuc \
libshim_list \