-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_mione_plus.mk
104 lines (87 loc) · 4.04 KB
/
device_mione_plus.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
#
# Copyright (C) 2012 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.
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# common msm8660 configs
$(call inherit-product, device/xiaomi/msm8660-common/msm8660.mk)
$(call inherit-product-if-exists, vendor/xiaomi/mione_plus/mione_plus-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/xiaomi/mione_plus/overlay
# Light
PRODUCT_PACKAGES += \
lights.mione
# gps.conf
PRODUCT_COPY_FILES += \
device/xiaomi/mione_plus/configs/gps.conf:system/etc/gps.conf
# mac support for mione_plus
# credit: huangqiwu
# https://github.com/mirom/android_device_xiaomi_mione_plus/commit/cf62e83ee96d90f0735c56b85fb8e252574c644d
PRODUCT_PACKAGES += \
libreadmac
# Hostapd (Required for Wi-Fi)
PRODUCT_PACKAGES += \
hostapd_cli \
calibrator \
hostapd
# Ramdisk files
PRODUCT_COPY_FILES += \
device/xiaomi/mione_plus/ramdisk/init.mione.rc:root/init.mione.rc \
device/xiaomi/mione_plus/ramdisk/init.qcom.class_core.sh:root/init.qcom.class_core.sh \
device/xiaomi/mione_plus/ramdisk/init.qcom.class_main.sh:root/init.qcom.class_main.sh \
device/xiaomi/mione_plus/ramdisk/init.qcom.rc:root/init.qcom.rc \
device/xiaomi/mione_plus/ramdisk/init.qcom.sh:root/init.qcom.sh \
device/xiaomi/mione_plus/ramdisk/init.qcom.usb.rc:root/init.qcom.usb.rc \
device/xiaomi/mione_plus/ramdisk/init.qcom.usb.sh:root/init.qcom.usb.sh \
device/xiaomi/mione_plus/ramdisk/init.target.rc:root/init.target.rc \
device/xiaomi/mione_plus/ramdisk/ueventd.mione.rc:root/ueventd.mione.rc \
device/xiaomi/mione_plus/ramdisk/fstab.mione:root/fstab.mione \
device/xiaomi/mione_plus/ramdisk/sbin/chargeonlymode:root/sbin/chargeonlymode
# WiFi
PRODUCT_PACKAGES += \
dhcpcd.conf \
hostapd \
hostapd_default.conf \
wpa_supplicant \
wpa_supplicant.conf
# Bluetooth
PRODUCT_PACKAGES += \
bt_vendor.conf
# Input device config
PRODUCT_COPY_FILES += \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/synaptics_rmi4_i2c.idc \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/ft5x0x.idc \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/sensor00fn11.idc \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/sensor00fn54.idc \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc \
device/xiaomi/mione_plus/configs/mxt224_ts_input.idc:system/usr/idc/mXT-touch.idc
# Kernel modules
ifeq ($(TARGET_PREBUILT_KERNEL),)
PRODUCT_COPY_FILES += $(shell \
find device/xiaomi/mione_plus/prebuilt -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
endif
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.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.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-flags=m=y \
persist.sys.timezone=Asia/Shanghai
# xiaomi mione wifi config
$(call inherit-product, device/xiaomi/mione_plus/mione_bcm43xx.mk)
# dalvik tweak
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)