forked from djnoxd-p990/android_device_lge_p990
-
Notifications
You must be signed in to change notification settings - Fork 4
/
p990.mk
166 lines (134 loc) · 6.74 KB
/
p990.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
DEVICE_PACKAGE_OVERLAYS += device/lge/p990/overlay
# Board-specific init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init_recovery.rc:root/init_recovery.rc \
$(LOCAL_PATH)/init.cm-star.rc:root/init.cm-star.rc \
$(LOCAL_PATH)/init.star.usb.rc:root/init.star.usb.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh \
$(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/asound.conf:system/etc/asound.conf \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/egl.cfg:system/lib/egl/egl.cfg \
$(LOCAL_PATH)/prebuilt/setup-recovery:system/bin/setup-recovery \
$(LOCAL_PATH)/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/dhcpcd.conf:system/etc/dhcpcd/dhcpcd.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/star_synaptics.idc:system/usr/idc/star_synaptics.idc \
$(LOCAL_PATH)/prebuilt/star_synaptics.kl:system/usr/keylayout/star_synaptics.kl \
$(LOCAL_PATH)/prebuilt/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/prebuilt/tegra-snd-wm8994.kl:system/usr/keylayout/tegra-snd-wm8994.kl \
$(LOCAL_PATH)/prebuilt/usb_keyboard_102_en_us.kl:system/usr/keylayout/usb_keyboard_102_en_us.kl \
$(LOCAL_PATH)/prebuilt/usb_keyboard_102_en_us.kcm.bin:system/usr/keychars/usb_keyboard_102_en_us.kcm.bin
# 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
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072 \
ro.telephony.call_ring.multiple=false \
ro.telephony.call_ring.delay=3000 \
ro.telephony.call_ring.absent=true \
ro.hardware.respect_als=true \
ro.bt.bdaddr_path=/sys/devices/platform/bd_address/bdaddr_if \
debug.sf.electron_frames=42 \
nv-camera-disable-early-graph=1 \
dalvik.vm.dexopt-data-only=1 \
ro.lge.audio_soundexception=true
# low memory
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true \
dalvik.vm.jit.codecachesize=0
# force transparent statusbar
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.force_transbar=true
# Disable SELinux
PRODUCT_PROPERTY_OVERRIDES += \
ro.boot.selinux=disabled \
ro.build.selinux=0
$(call inherit-product, build/target/product/full_base_telephony.mk)
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
PRODUCT_LOCALES += hdpi
## Ugly space-saving hack
PRODUCT_PACKAGES += \
srec-en
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/10-movestuff.sh:system/addon.d/10-movestuff.sh
## LGE stuffs
PRODUCT_PACKAGES += \
bridgeutil \
lights.star \
libbridge \
libbridge_jni \
screencap \
audio.a2dp.default \
audio.usb.default \
hwcomposer.default \
com.android.future.usb.accessory
# Enable Torch
PRODUCT_PACKAGES += Torch
#wlan
PRODUCT_PACKAGES += \
libnetcmdiface
# Set default USB interface
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp \
sys.disable_ext_animation=1
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_MANUFACTURER := LGE
# The gps config appropriate for this device
$(call inherit-product, device/common/gps/gps_eu.mk)
# Inherit non-open-source blobs.
$(call inherit-product, vendor/lge/p990/p990-vendor.mk)
# Board-specific init
PRODUCT_COPY_FILES += \
device/lge/p990/init.p990.rc:root/init.star.rc \
$(LOCAL_PATH)/ueventd.tegra.rc:root/ueventd.star.rc \
$(LOCAL_PATH)/fstab.star:root/fstab.star
# TWRP
PRODUCT_COPY_FILES += \
device/lge/p990/twrp.fstab:recovery/root/etc/twrp.fstab
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/charger:root/charger \
$(foreach f,$(wildcard $(LOCAL_PATH)/prebuilt/res/images/charger/*),$(f):root/res/images/charger/$(notdir $(f))) \
$(foreach f,$(wildcard $(LOCAL_PATH)/prebuilt/res/images/security/*),$(f):root/res/images/security/$(notdir $(f)))
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.vsnet:system/bin/init.vsnet \
$(LOCAL_PATH)/init.vsnet-down:system/bin/init.vsnet-down \
$(LOCAL_PATH)/gps_brcm_conf.xml:system/etc/gps_brcm_conf.xml
# Build kernel module instead of copying
#PRODUCT_COPY_FILES += \
# $(LOCAL_PATH)/prebuilt/wireless.ko:system/lib/modules/wireless.ko
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/check_sdcard.sh:system/bin/check_sdcard.sh \
$(LOCAL_PATH)/lgdrm.img:system/bin/lgdrm.img
# prebuilt kernel stuff
LOCAL_KERNEL := device/lge/p990/kernel/zImage
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel \
#PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/kernel/kowalski/power.tegra.so:system/lib/hw/power.tegra.so \
$(LOCAL_PATH)/kernel/kowalski/KowalskiManager.apk:system/app/KowalskiManager.apk \
$(LOCAL_PATH)/kernel/kowalski/95kowalski:system/etc/init.d/95kowalski \
$(LOCAL_PATH)/kernel/kowalski/alsa_amixer:system/xbin/alsa_amixer \
$(LOCAL_PATH)/kernel/kowalski/iwconfig:system/xbin/iwconfig \
$(LOCAL_PATH)/kernel/kowalski/iwlist:system/xbin/iwlist
PRODUCT_PACKAGES += \
lgcpversion
WIFI_BAND := 802_11_BG
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
PRODUCT_NAME := full_p990
PRODUCT_DEVICE := p990
PRODUCT_MODEL := LG-P990