forked from CyanogenMod/android_device_lge_p970
-
Notifications
You must be signed in to change notification settings - Fork 3
/
p970.mk
138 lines (115 loc) · 5.12 KB
/
p970.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
$(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)
$(call inherit-product-if-exists, vendor/lge/p970/p970-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/lge/p970/overlay
## Dummy file to help RM identify the model
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/dummy-rm:root/bootimages/ON_480x800_08fps_0000.rle
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.p970.rc:root/init.black.rc \
$(LOCAL_PATH)/init.p970.usb.rc:root/init.black.usb.rc \
$(LOCAL_PATH)/ueventd.p970.rc:root/ueventd.black.rc \
$(LOCAL_PATH)/configs/fstab.p970:root/fstab.black \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml
# 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.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.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
# RIL stuffs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/ipc_channels.config:system/etc/ipc_channels.config \
$(LOCAL_PATH)/init.vsnet:system/bin/init.vsnet \
$(LOCAL_PATH)/init.vsnet-down:system/bin/init.vsnet-down
## GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/gps_brcm_conf.xml:system/etc/gps_brcm_conf.xml
## Wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifimac/wlan-precheck:system/bin/wlan-precheck \
$(LOCAL_PATH)/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/configs/nvram.txt:system/etc/wifi/nvram.txt \
$(LOCAL_PATH)/configs/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
## Touchscreen confs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hub_synaptics_touch.kl:system/usr/keylayout/hub_synaptics_touch.kl \
$(LOCAL_PATH)/configs/hub_synaptics_touch.idc:system/usr/idc/hub_synaptics_touch.idc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/Hookkey.kl:system/usr/keylayout/Hookkey.kl
## Alsa configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/asound.conf:system/etc/asound.conf
# Charger mode
PRODUCT_PACKAGES += \
charger \
charger_res_images
PRODUCT_PACKAGES += \
power.black \
prb \
lgcpversion \
wifimac
# OMX components
PRODUCT_PACKAGES += \
libstagefrighthw \
libbridge \
cexec.out \
libPERF \
libOMX_Core \
libLCML \
libOMX.TI.Video.Decoder \
libOMX.TI.Video.encoder \
libOMX.TI.WBAMR.decode \
libOMX.TI.AAC.encode \
libOMX.TI.G722.decode \
libOMX.TI.MP3.decode \
libOMX.TI.WMA.decode \
libOMX.TI.Video.encoder \
libOMX.TI.WBAMR.encode \
libOMX.TI.G729.encode \
libOMX.TI.AAC.decode \
libOMX.TI.VPP \
libOMX.TI.G711.encode \
libOMX.TI.JPEG.encoder \
libOMX.TI.G711.decode \
libOMX.TI.ILBC.decode \
libOMX.TI.ILBC.encode \
libOMX.TI.AMR.encode \
libOMX.TI.G722.encode \
libOMX.TI.JPEG.decoder \
libOMX.TI.G726.encode \
libOMX.TI.G729.decode \
libOMX.TI.Video.Decoder \
libOMX.TI.AMR.decode \
libOMX.TI.G726.decode
PRODUCT_PACKAGES += \
hwcomposer.black \
lights.p970 \
audio.a2dp.default \
libaudioutils \
libtiutils \
libion \
libomap_mm_library_jni
#camera.omap3 \#
$(call inherit-product, build/target/product/full.mk)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
PRODUCT_AAPT_CONFIG := normal hdpi
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_p970
PRODUCT_DEVICE := p970
PRODUCT_MODEL := LG-P970
PRODUCT_MANUFACTURER := LGE