forked from LineageOS/android_device_lge_iprj-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iprj.mk
127 lines (109 loc) · 5.07 KB
/
iprj.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
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_us_supl.mk)
PRODUCT_TAGS += dalvik.gc.type-precise
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
DEVICE_PACKAGE_OVERLAYS += device/lge/iprj-common/overlay
# This device is xhdpi. However the platform doesn't
# currently contain all of the bitmaps at xhdpi density so
# we do this little trick to fall back to the hdpi version
# if the xhdpi doesn't exist.
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/config/media_codecs.xml:system/etc/media_codecs.xml
$(call inherit-product, build/target/product/full.mk)
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.iprj-common.rc:root/init.iprj-common.rc \
$(LOCAL_PATH)/ueventd.iprj.rc:root/ueventd.iprj.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.iprj.usb.rc:root/init.iprj.usb.rc \
$(LOCAL_PATH)/prebuilt/boot_logo_00000.rle:root/bootimages/boot_logo_00000.rle \
$(LOCAL_PATH)/prebuilt/init.qcom.sh:root/init.qcom.sh \
$(LOCAL_PATH)/prebuilt/init.qcom.post_boot.sh:system/etc/init.qcom.post_boot.sh \
$(LOCAL_PATH)/prebuilt/init.qcom.baseband.sh:system/etc/init.qcom.baseband.sh
## Configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/atcmd_virtual_kbd.kl:system/usr/keylayout/atcmd_virtual_kbd.kl \
$(LOCAL_PATH)/config/ffa-keypad_qwerty.kl:system/usr/keylayout/ffa-keypad_qwerty.kl \
$(LOCAL_PATH)/config/pmic8058_pwrkey.kl:system/usr/keylayout/pmic8058_pwrkey.kl \
$(LOCAL_PATH)/config/synaptics_ts.kl:system/usr/keylayout/touch_dev.kl \
$(LOCAL_PATH)/config/synaptics_ts.idc:system/usr/idc/touch_dev.idc \
$(LOCAL_PATH)/config/thermald.conf:system/etc/thermald.conf
# WiFi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf
# Permission files
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.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.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.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.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
# HW HALS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/audio_policy.conf:system/vendor/etc/audio_policy.conf
PRODUCT_PACKAGES += \
hdmid \
libgenlock \
libmemalloc \
liboverlay \
gralloc.msm8660 \
hwcomposer.msm8660 \
copybit.msm8660 \
lights.iprj \
gps.iprj \
audio.primary.iprj \
audio_policy.msm8660 \
audio_policy.conf \
audio.a2dp.default \
power.iprj \
com.android.future.usb.accessory
# OMX
#
PRODUCT_PACKAGES += \
libstagefrighthw \
libdivxdrmdecrypt \
libOmxVdec \
libOmxVenc \
libOmxAacEnc \
libOmxAmrEnc \
libmm-omxcore \
libOmxCore
PRODUCT_PACKAGES += \
hwaddrs \
firmware_init
# Charger mode
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Common properties
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=320 \
mobiledata.interfaces=rmnet_sdio0,rmnet_sdio1 \
rild.libpath=/system/lib/libril-qc-qmi-1.so \
DEVICE_PROVISIONED=1 \
ro.telephony.ril_class=LGEQualcommUiccRIL \
wifi.interface=wlan0 \
debug.sf.hw=1 \
debug.enabletr=true \
debug.composition.type=dyn \
persist.sys.usb.config=mtp,adb \
ro.opengles.version=131072 \
com.qc.hardware=true \
ro.bt.bdaddr_path=/data/misc/bd_addr \
ro.ril.shutdown=true \
debug.mdpcomp.maxlayer=3 \
debug.mdpcomp.logs=0
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_MANUFACTURER := LGE
PRODUCT_BRAND := lge