forked from CyanogenMod/android_device_lge_p880
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp880.mk
126 lines (105 loc) · 6.22 KB
/
p880.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
$(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/p880/p880-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/lge/p880/overlay
PRODUCT_TAGS += dalvik.gc.type-precise
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
# This device is xhdpi
PRODUCT_AAPT_CONFIG := normal hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
LOCAL_PATH := device/lge/p880
## Recovery
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh \
$(LOCAL_PATH)/prebuilt/recovery.sh:system/bin/setup-recovery
## Boot image
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.x3.rc:root/init.x3.rc \
$(LOCAL_PATH)/init.x3.usb.rc:root/init.x3.usb.rc \
$(LOCAL_PATH)/ueventd.x3.rc:root/ueventd.x3.rc \
$(LOCAL_PATH)/fstab.x3:root/fstab.x3
## Miscellaneous configs
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/ipc_channels.config:system/etc/ipc_channels.config \
$(LOCAL_PATH)/configs/nfcee_access.xml:system/etc/nfcee_access.xml \
$(LOCAL_PATH)/configs/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
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 \
$(LOCAL_PATH)/configs/nvcamera.conf:system/etc/nvcamera.conf
## GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/lge.cer:system/etc/cert/lge.cer \
$(LOCAL_PATH)/configs/hmconfig.txt:system/etc/hmconfig.txt
## Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/MHLRCP.kl:system/usr/keylayout/MHLRCP.kl \
$(LOCAL_PATH)/configs/tegra-snd-max98088.kl:system/usr/keylayout/tegra-snd-max98088.kl \
$(LOCAL_PATH)/configs/touch_dev.kl:system/usr/keylayout/touch_dev.kl \
$(LOCAL_PATH)/configs/touch_dev.idc:system/usr/idc/touch_dev.idc
## ALSA Config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/asound.conf:system/etc/asound.conf \
$(LOCAL_PATH)/configs/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
$(LOCAL_PATH)/configs/alsa/pcm/dsnoop.conf:system/usr/share/alsa/pcm/dsnoop.conf \
$(LOCAL_PATH)/configs/alsa/pcm/center_lfe.conf:system/usr/share/alsa/pcm/center_lfe.conf \
$(LOCAL_PATH)/configs/alsa/pcm/modem.conf:system/usr/share/alsa/pcm/modem.conf \
$(LOCAL_PATH)/configs/alsa/pcm/dpl.conf:system/usr/share/alsa/pcm/dpl.conf \
$(LOCAL_PATH)/configs/alsa/pcm/default.conf:system/usr/share/alsa/pcm/default.conf \
$(LOCAL_PATH)/configs/alsa/pcm/surround50.conf:system/usr/share/alsa/pcm/surround50.conf \
$(LOCAL_PATH)/configs/alsa/pcm/surround51.conf:system/usr/share/alsa/pcm/surround51.conf \
$(LOCAL_PATH)/configs/alsa/pcm/rear.conf:system/usr/share/alsa/pcm/rear.conf \
$(LOCAL_PATH)/configs/alsa/pcm/surround71.conf:system/usr/share/alsa/pcm/surround71.conf \
$(LOCAL_PATH)/configs/alsa/pcm/front.conf:system/usr/share/alsa/pcm/front.conf \
$(LOCAL_PATH)/configs/alsa/pcm/surround40.conf:system/usr/share/alsa/pcm/surround40.conf \
$(LOCAL_PATH)/configs/alsa/pcm/dmix.conf:system/usr/share/alsa/pcm/dmix.conf \
$(LOCAL_PATH)/configs/alsa/pcm/iec958.conf:system/usr/share/alsa/pcm/iec958.conf \
$(LOCAL_PATH)/configs/alsa/pcm/side.conf:system/usr/share/alsa/pcm/side.conf \
$(LOCAL_PATH)/configs/alsa/pcm/surround41.conf:system/usr/share/alsa/pcm/surround41.conf \
$(LOCAL_PATH)/configs/alsa/cards/aliases.conf:system/usr/share/alsa/cards/aliases.conf \
$(LOCAL_PATH)/configs/alsa/alsa.conf:system/usr/share/alsa/alsa.conf
$(call inherit-product, build/target/product/full.mk)
# Permission files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/nvcpud.xml::system/etc/permissions/nvcpud.xml \
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.nfc.xml:system/etc/permissions/android.hardware.nfc.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 \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
# Charger mode
PRODUCT_PACKAGES += \
charger \
charger_res_images
PRODUCT_PACKAGES += \
audio.a2dp.default \
com.android.future.usb.accessory
# NFC packages
PRODUCT_PACKAGES += \
libnfc \
libnfc_jni \
Nfc \
Tag
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/init.rmnet:system/bin/init.rmnet \
$(LOCAL_PATH)/prebuilt/init.rmnet-down:system/bin/init.rmnet-down \
$(LOCAL_PATH)/prebuilt/init.rawip:system/bin/init.rawip
# For SELinux
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/51selinux:system/etc/init.d/51selinux
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_p880
PRODUCT_DEVICE := p880
PRODUCT_MODEL := LG-P880
PRODUCT_MANUFACTURER := LGE