-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathgolfu.mk
151 lines (125 loc) · 4.93 KB
/
golfu.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
#Full base telephony
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
#Languages
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# The GPS configuration appropriate for this device.
$(call inherit-product, device/common/gps/gps_eu_supl.mk)
# proprietary side of the device
$(call inherit-product-if-exists, vendor/htc/golfu/golfu-vendor.mk)
DEVICE_PACKAGE_OVERLAYS += device/htc/golfu/overlay
# Graphics
PRODUCT_PACKAGES += \
libgenlock \
gralloc.msm7x27a \
copybit.msm7x27a \
hwcomposer.msm7x27a \
memtrack.msm7x27a \
libqdMetaData
# Video decoding
PRODUCT_PACKAGES += \
libOmxCore \
libstagefrighthw \
libdashplayer
# Audio
PRODUCT_PACKAGES += \
audio.primary.msm7x27a \
audio_policy.msm7x27a \
audio.a2dp.default \
audio.usb.default \
libaudioutils \
libaudio-resampler
# GPS
PRODUCT_PACKAGES += \
gps.msm7x27a
# Lights
PRODUCT_PACKAGES += \
lights.msm7x27a
# Power HAL
PRODUCT_PACKAGES += \
power.msm7x27a
#Health HAL
PRODUCT_PACKAGES += \
libhealthd.msm7x27a
# Camera
PRODUCT_PACKAGES += \
libsurfaceflinger_client
# NFC
PRODUCT_PACKAGES += \
libnfc \
libnfc_jni \
Nfc \
Tag \
com.android.nfc_extras
# Bluetooth
PRODUCT_PACKAGES += \
btmac
# FM Radio
#PRODUCT_PACKAGES += \
# FM2 \
# libqcomfm_jni \
# qcom.fmradio
# Misc
PRODUCT_PACKAGES += \
com.android.future.usb.accessory \
dexpreopt \
librpc
# Filesystem management tools
#PRODUCT_PACKAGES += \
make_ext4fs \
e2fsck \
setup_fs \
mkfs.f2fs \
fsck.f2fs \
make_f2fs \
mkf2fsuserimg.sh ls
# Ramdisk
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/htc/golfu/ramdisk,root)
RECOVERY_VARIANT := omni
# Recovery
ifeq ($(RECOVERY_VARIANT),omni)
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/htc/golfu/prebuilt/recovery/omni,recovery/root)
else
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/htc/golfu/prebuilt/recovery/cm,recovery/root)
endif
# Prebuilt
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/htc/golfu/prebuilt/system,system)
# Hardware properties
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
#Publish that we support the live wallpaper feature.
PRODUCT_COPY_FILES += \
packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
#Disable mobile data on first boot, low ram device flag
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.low_ram=true \
ro.com.android.mobiledata=false \
ro.com.android.dataroaming=false \
ro.sys.fw.bg_apps_limit=12 \
ro.config.max_starting_bg=6
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.adb.secure=0 \
ro.secure=0
$(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
PRODUCT_AAPT_CONFIG := normal mdpi
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0