-
Notifications
You must be signed in to change notification settings - Fork 0
/
p990.mk
219 lines (177 loc) · 8.43 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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
DEVICE_PACKAGE_OVERLAYS += device/lge/p990/overlay
#MINI_GAPPS := true
#$(call inherit-product, vendor/google/tiny_gapps_nonneon_tonyp.mk)
$(call inherit-product, vendor/djnoxd/vendor_djnoxd.mk)
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/config/config-bcm.mk)
# Board-specific init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/ramdisk/init_recovery.rc:root/init_recovery.rc \
$(LOCAL_PATH)/ramdisk/init.cm-star.rc:root/init.cm-star.rc \
$(LOCAL_PATH)/ramdisk/init.star.usb.rc:root/init.star.usb.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh \
$(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
# Audio files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/asound.conf:system/etc/asound.conf \
$(LOCAL_PATH)/config/audio_policy.conf:system/etc/audio_policy.conf
# media files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml
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 that are hardware-specific
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.bq.gpu_to_cpu_unsupported=1 \
sys.disable_ext_animation=1 \
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 \
ro.lge.audio_soundexception=true \
wifi.interface=wlan0 \
wifi.supplicant_scan_interval=15 \
tf.enable=y \
drm.service.enabled=true
# force transparent statusbar
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.force_transbar=true
# Graphic glitches fix
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.render_dirty_regions=false
# We want the dalvik-cache to be for system & user apps on the /data partition
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dexopt-data-only=1
# Disable camera early graph connect as we can't prebuild graph due to memory
# constraints in whistler.
PRODUCT_PROPERTY_OVERRIDES += \
nv-camera-disable-early-graph=1
# Do not preload the EGL/GL drivers in Zygote at boot time.
# Our tegra drivers does not seem to support it
PRODUCT_PROPERTY_OVERRIDES += \
ro.zygote.disable_gl_preload=true
# Disable JIT code cache to free up some ram when the device is running
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.jit.codecachesize=0
# For applications to determine if they should turn off specific memory-intensive
# features that work poorly on low-memory devices.
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true
# The OpenGL ES API level that is natively supported by this device.
# This is a 16.16 fixed point number. -> Opengles 2.0
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=131072
# Optimize the Dalvik Properties for low ram
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=5m \
dalvik.vm.heapgrowthlimit=64m \
dalvik.vm.heapsize=128m \
dalvik.vm.heaptargetutilization=0.80 \
dalvik.vm.heapminfree=512k \
dalvik.vm.heapmaxfree=2m
$(call inherit-product, build/target/product/full_base_telephony.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 \
libemoji \
screencap \
audio.a2dp.default \
audio.usb.default \
hwcomposer.default \
com.android.future.usb.accessory
# Enable Torch
PRODUCT_PACKAGES += Torch
PRODUCT_PACKAGES += \
libnetcmdiface
# Set default USB interface
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb
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 += \
$(LOCAL_PATH)/ramdisk/init.p990.rc:root/init.star.rc \
$(LOCAL_PATH)/ramdisk/ueventd.tegra.rc:root/ueventd.star.rc \
$(LOCAL_PATH)/ramdisk/fstab.star:root/fstab.star
# TWRP
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/twrp.fstab:recovery/root/etc/twrp.fstab
#Disable SELinux since it needs some more configuration
#PRODUCT_PROPERTY_OVERRIDES += \
# ro.boot.selinux=disabled \
# ro.build.selinux=0
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
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 \
$(LOCAL_PATH)/kernel/bthid.ko:system/lib/modules/bthid.ko
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/kernel/kowalski/power.tegra.so:system/lib/hw/power.tegra.so \
$(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 \
$(LOCAL_PATH)/kernel/kowalski/KernelControl.apk:system/app/KernelControl.apk
PRODUCT_PACKAGES += \
lgcpversion
# F2FS filesystem
PRODUCT_PACKAGES += \
mkfs.f2fs \
fsck.f2fs \
fibmap.f2fs \
f2fstat
PRODUCT_NAME := full_p990
PRODUCT_DEVICE := p990
PRODUCT_MODEL := Optimus 2x
# OpenDelta
PRODUCT_PACKAGES += OpenDelta