forked from XNovathor/android_device_sony_lotus
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlotus.mk
97 lines (68 loc) · 3.4 KB
/
lotus.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
# Inherit from AOSP
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
# Inherit from the common montblanc definitions
$(call inherit-product, device/sony/montblanc-common/montblanc.mk)
# Inherit from the device specific vendor definitions
$(call inherit-product-if-exists, vendor/sony/lotus/lotus-vendor.mk)
# Device specific settings overlays
DEVICE_PACKAGE_OVERLAYS += device/sony/lotus/overlay
# Device specific configuration scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/fstab.st-ericsson:root/fstab.st-ericsson \
$(LOCAL_PATH)/config/init.st-ericsson.device.rc:root/init.st-ericsson.device.rc \
$(LOCAL_PATH)/config/media_profiles.xml:system/etc/media_profiles.xml
# Device specific hardware configuration script
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/dash.conf:system/etc/dash.conf \
$(LOCAL_PATH)/prebuilt/hw_config.sh:system/etc/hw_config.sh \
$(LOCAL_PATH)/config/cflashlib.cfg:system/etc/cflashlib.cfg \
$(LOCAL_PATH)/config/flashled_param_config.cfg:system/etc/flashled_param_config.cfg
# Device specific bootlogo and charging animation
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/logo-320x480.rle:root/logo.rle \
$(LOCAL_PATH)/prebuilt/bootanimation.zip:system/media/bootanimation.zip
$(call inherit-product, device/sony/lotus/prebuilt/resources-320x480.mk)
# Device specific headers
TARGET_SPECIFIC_HEADER_PATH += device/sony/lotus/include
#TWRP
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/twrp.fstab:recovery/root/etc/twrp.fstab
# Device specific USB configuration script
PRODUCT_COPY_FILES += $(LOCAL_PATH)/config/init.st-ericsson.usb.rc:root/init.st-ericsson.usb.rc
# Device specific keylayouts and touchscreen configurations files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/config/AB8500_Hs_Button.kl:system/usr/keylayout/AB8500_Hs_Button.kl \
$(LOCAL_PATH)/config/simple_remote.kl:system/usr/keylayout/simple_remote.kl \
$(LOCAL_PATH)/config/simple_remote_appkey.kl:system/usr/keylayout/simple_remote_appkey.kl \
$(LOCAL_PATH)/config/cyttsp_key.kl:system/usr/keylayout/cyttsp_key.kl \
$(LOCAL_PATH)/config/ux500-ske-keypad.kl:system/usr/keylayout/ux500-ske-keypad.kl \
$(LOCAL_PATH)/config/cyttsp-spi.idc:system/usr/idc/cyttsp-spi.idc \
# Device specific display resolutions
# Reference: http://developer.android.com/guide/practices/screens_support.html
# Note: In PRODUCT_AAPT_PREF_CONFIG set the proper one (e.g. hdpi), in PRODUCT_AAPT_CONFIG set the proper one and the previous one (e.g. mdpi)
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_AAPT_CONFIG := normal mdpi mdpi
# Android kind of memory
PRODUCT_PROPERTY_OVERRIDES += ro.build.characteristics=nosdcard
# PC Companion kind of memory
PRODUCT_PROPERTY_OVERRIDES += ro.semc.product.user_storage=emmc_only
# Hardware video codecs configuration
PRODUCT_PROPERTY_OVERRIDES += \
ste.video.dec.mpeg4.in.size=8192 \
ste.video.enc.out.buffercnt=5 \
ste.video.dec.recycle.delay=1 \
ste.video.decoder.max.hwmem=0x2600000 \
ste.video.decoder.max.res=720p \
ste.video.decoder.h264.max.lev=3.2
# Device specific proprieties
# References:
# - http://source.android.com/devices/tuning.html
# - http://en.wikipedia.org/wiki/Pixel_density#Calculation_of_monitor_PPI
# - https://source.android.com/devices/low-ram.html
PRODUCT_PROPERTY_OVERRIDES += \
ro.hwui.texture_cache_size=4 \
ro.hwui.layer_cache_size=3 \
ro.hwui.path_cache_size=1 \
ro.sf.lcd_density=160 \
ro.config.low_ram=true \
dalvik.vm.heapminfree=1m