-
Notifications
You must be signed in to change notification settings - Fork 1
/
device_delos3geur.mk
110 lines (90 loc) · 5.07 KB
/
device_delos3geur.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
$(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/samsung/delos3geur/delos3geur-vendor.mk)
LOCAL_PATH := device/samsung/delos3geur
PRODUCT_AAPT_PREF_CONFIG := hdpi
PRODUCT_AAPT_CONFIG := mdpi hdpi
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := $(LOCAL_PATH)/kernel_mtp
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
#PRODUCT_COPY_FILES += \
# $(LOCAL_KERNEL):kernel
# Maybe someday this will be required enough
#TARGET_BUILD_TYPE := debug
# list from 4.4.4 by weritos
PRODUCT_COPY_FILES += frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml
#PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.telephony.cdma.xml:system/etc/permissions/android.hardware.telephony.cdma.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml
PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
#PRODUCT_COPY_FILES += frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml
# proprietary files
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/system,system)
# copy libaudcal manually
PRODUCT_COPY_FILES += $(LOCAL_PATH)/system/lib/libaudcal.so:obj/lib/libaudcal.so
# Graphics
# copybit, gralloc, hwcomposer, lights: hardware/qcom/display
# build HALs ONLY, there's no need to enumerate all shared libs there
PRODUCT_PACKAGES += gralloc.msm7x27a
PRODUCT_PACKAGES += copybit.msm7x27a
PRODUCT_PACKAGES += lights.msm7x27a
PRODUCT_PACKAGES += hwcomposer.msm7x27a
# Audio
# audio.primary, audio_policy: hardware/qcom/audio || device/samsung/delos3geur/audio
PRODUCT_PACKAGES += audio.primary.msm7x27a
PRODUCT_PACKAGES += audio_policy.msm7x27a
#PRODUCT_PACKAGES += audio.a2dp.default
#PRODUCT_PACKAGES += audio.usb.default
# GPS (disabled)
PRODUCT_PACKAGES += gps.msm7x27a
#PRODUCT_PACKAGES += libgps.utils
#PRODUCT_PACKAGES += libloc_api-rpc
#PRODUCT_PACKAGES += libloc_api_v02
# Misc
#PRODUCT_PACKAGES += libhealthd.msm7x27a
PRODUCT_PACKAGES += power.msm7x27a
PRODUCT_PACKAGES += charger
PRODUCT_PACKAGES += rild2
# libmm-omxcore, libOmxCore: hardware/qcom/media
# Java applications
PRODUCT_PACKAGES += Torch
PRODUCT_PACKAGES += CMUpdater
# https://source.android.com/compatibility/cts/setup
#ro.product.first_api_level indicates the first api level, device has been commercially launched on.
PRODUCT_PROPERTY_OVERRIDES += ro.product.first_api_level=16
# files for boot.img
PRODUCT_COPY_FILES += $(call find-copy-subdir-files,*,$(LOCAL_PATH)/ramdisk,root)
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=0
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.secure=0
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.debuggable=1
#ro.allow.mock.location=0
# this seems to be compatible with CM adbd
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += service.adb.root=1
# ",adb" is automatically appended on eng builds
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.sys.usb.config=mtp
# is this obsolete?
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.service.adb.root=1
# Grace5921 said that this is compatible with 4.2+. Believe him.
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += persist.service.adb.enable=1
TARGET_OTA_ASSERT_DEVICE := delos3geur,i8552,gt-i8552,GT-I8552
# Actually build
$(call inherit-product, build/target/product/full.mk)
BUILD_VERSION_TAGS := \"vivienne_nelson\"
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_NAME := full_delos3geur
PRODUCT_DEVICE := delos3geur
PRODUCT_BRAND := Samsung
PRODUCT_MANUFACTURER := Samsung
PRODUCT_MODEL := GT-I8552