-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
132 lines (113 loc) · 4.89 KB
/
device.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
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, device/motorola/msm8960-common/msm8960.mk)
LOCAL_PATH := device/motorola/vanquish-common
TARGET_SPECIFIC_HEADER_PATH := $(LOCAL_PATH)/include
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
#scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/scripts/init.goldfish.sh:system/etc/init.goldfish.sh \
$(LOCAL_PATH)/scripts/init.qcom.bt.sh:system/etc/init.qcom.bt.sh \
$(LOCAL_PATH)/scripts/init.qcom.coex.sh:system/etc/init.qcom.coex.sh \
$(LOCAL_PATH)/scripts/init.qcom.fm.sh:system/etc/init.qcom.fm.sh \
$(LOCAL_PATH)/scripts/init.qcom.mdm_links.sh:system/etc/init.qcom.mdm_links.sh \
$(LOCAL_PATH)/scripts/init.qcom.modem_links.sh:system/etc/init.qcom.modem_links.sh \
$(LOCAL_PATH)/scripts/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh \
$(LOCAL_PATH)/scripts/qcamerasrvwrapper.sh:system/bin/qcamerasrvwrapper.sh \
$(LOCAL_PATH)/scripts/sensorsqcomwrapper.sh:system/bin/sensorsqcomwrapper.sh \
$(LOCAL_PATH)/scripts/mount_pds.sh:system/bin/mount_pds.sh
#init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/root/ueventd.qcom.rc:root/ueventd.qcom.rc \
$(LOCAL_PATH)/root/init.mmi.usb.rc:root/init.mmi.usb.rc \
$(LOCAL_PATH)/root/init.mmi.usb.sh:root/init.mmi.usb.sh \
$(LOCAL_PATH)/root/init.msm.rc:root/init.msm.rc \
$(LOCAL_PATH)/root/init.qcom.sh:root/init.qcom.sh \
$(LOCAL_PATH)/root/init.qcom.class_core.sh:root/init.qcom.class_core.sh \
$(LOCAL_PATH)/root/init.qcom.class_main.sh:root/init.qcom.class_main.sh \
$(LOCAL_PATH)/root/init.qcom.rc:root/init.qcom.rc \
$(LOCAL_PATH)/root/fstab.qcom:root/fstab.qcom \
$(LOCAL_PATH)/root/init.target.rc:root/init.target.rc
#media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
#audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/snd_soc_msm_2x:system/etc/snd_soc_msm/snd_soc_msm_2x
#config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/vold.fstab:system/etc/vold.fstab
#wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_cfg.dat:system/etc/firmware/wlan/prima/WCNSS_cfg.dat \
$(LOCAL_PATH)/proprietary/wlanprima/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/prima/WCNSS_qcom_cfg.ini
# EGL config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/egl.cfg:system/lib/egl/egl.cfg
#safestrap support
PRODUCT_COPY_FILES += \
system/core/rootdir/init.rc:system/etc/rootfs/init.rc \
system/core/rootdir/ueventd.rc:system/etc/rootfs/ueventd.rc \
$(LOCAL_PATH)/root/init.qcom.rc:system/etc/rootfs/init.qcom.rc \
$(LOCAL_PATH)/root/init.target.rc:system/etc/rootfs/init.target.rc \
$(LOCAL_PATH)/root/init.mmi.usb.rc:system/etc/rootfs/init.mmi.usb.rc \
$(LOCAL_PATH)/root/ueventd.qcom.rc:system/etc/rootfs/ueventd.qcom.rc \
$(LOCAL_PATH)/safestrap/init.safestrap.rc:system/etc/rootfs/init.safestrap.rc \
$(LOCAL_PATH)/safestrap/default.prop:system/etc/rootfs/default.prop \
$(OUT)/root/sbin/adbd:system/etc/rootfs/sbin/adbd \
$(OUT)/fake_packages/init2:system/etc/rootfs/init
# CM-specific init file for SafeStrap
PRODUCT_COPY_FILES += \
vendor/cm/prebuilt/common/etc/init.local.rc:system/etc/rootfs/init.cm.rc
#misc
PRODUCT_PROPERTY_OVERRIDES += \
persist.fuse_sdcard=true \
ro.usb.mtp_usbnet=0x2e32 \
ro.usb.mtp_usbnet_adb=0x2e33 \
ro.usb.cdrom=0x2e20 \
ro.usb.ms=0x2e21 \
ro.usb.ms_adb=0x2e22 \
ro.usb.ptp=0x2e30 \
ro.usb.ptp_adb=0x2e31 \
ro.hdmi.enable=true \
ro.product.model.exif=RAZR_HD
#wifi
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.qc.sub.rstrtlvl=3 \
persist.sys.qc.sub.rdump.on=1 \
persist.sys.qc.sub.rdump.max=20
# QCOM Display
PRODUCT_PROPERTY_OVERRIDES += \
debug.egl.hw=1 \
debug.sf.hw=1 \
debug.gr.numframebuffers=3 \
persist.sys.ui.hw=true \
debug.composition.type=c2d \
debug.egl.recordable.rgba8888=1 \
debug.enabletr=0 \
ro.hwui.text_cache_width=2048
# Radio and Telephony
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/system/lib/libril-qc-qmi-1.so \
ril.subscription.types=NV,RUIM \
keyguard.no_require_sim=true \
ro.use_data_netmgrd=true \
ro.ril.transmitpower=true \
persist.radio.apm_sim_not_pwdn=1 \
persist.radio.call_type=1 \
persist.audio.fluence.mode=endfire \
persist.audio.vr.enable=false \
ro.qc.sdk.audio.fluencetype=fluence \
persist.audio.handset.mic=digital \
ro.config.vc_call_vol_steps=7 \
persist.timed.enable=true
# IDC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/melfas-ts.idc:system/usr/idc/melfas-ts.idc \
$(LOCAL_PATH)/idc/qwerty2.idc:system/usr/idc/qwerty2.idc \
$(LOCAL_PATH)/idc/qwerty.idc:system/usr/idc/qwerty.idc \
$(LOCAL_PATH)/idc/evfwd.idc:system/usr/idc/evfwd.idc
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0