-
Notifications
You must be signed in to change notification settings - Fork 18
/
common.mk
161 lines (135 loc) · 4.71 KB
/
common.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
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
PRODUCT_PROPERTY_OVERRIDES += \
keyguard.no_require_sim=true \
ro.com.google.clientidbase=android-google \
ro.url.legal=http://www.google.com/intl/%s/mobile/android/basic/phone-legal.html \
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/basic/privacy.html \
ro.com.android.wifi-watchlist=GoogleGuest \
ro.setupwizard.enterprise_mode=1 \
ro.com.android.dateformat=MM-dd-yyyy \
ro.com.android.dataroaming=false \
ro.opa.eligible_device=true \
ro.setupwizard.rotation_locked=true \
ro.caf.version=$(shell grep "<default revision=" .repo/manifest.xml | awk -F'"' '{print $$2}' | awk -F "/" '{print $$3}') \
ro.aosp-caf.version=$(shell grep "/AOSP-CAF" -A1 .repo/manifest.xml | tail -1 | awk -F'"' '{print $$2}' | awk -F "/" '{print $$3}')
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.selinux=1
# Thank you, please drive thru!
PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
# Backup Tool
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
vendor/custom/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
vendor/custom/prebuilt/common/bin/blacklist:system/addon.d/blacklist \
vendor/custom/prebuilt/common/bin/whitelist:system/addon.d/whitelist \
# Bootanimation
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/media/bootanimation.zip:system/media/bootanimation.zip
# init.d support
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/bin/sysinit:system/bin/sysinit \
vendor/custom/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/custom/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
# Init file
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/etc/init/init.local.rc:system/etc/init/init.local.rc
# Bring in camera effects
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
vendor/custom/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
# Enable SIP+VoIP on all targets
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml
# Enable wireless Xbox 360 controller support
PRODUCT_COPY_FILES += \
frameworks/base/data/keyboards/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_0719.kl
# Misc packages
PRODUCT_PACKAGES += \
BluetoothExt \
libemoji \
libsepol \
e2fsck \
mke2fs \
tune2fs \
bash \
powertop \
mount.exfat \
fsck.exfat \
mkfs.exfat \
mkfs.f2fs \
fsck.f2fs \
fibmap.f2fs \
mkfs.ntfs \
fsck.ntfs \
mount.ntfs \
gdbserver \
micro_bench \
oprofiled \
sqlite3 \
strace \
Terminal \
WallpaperPicker
# Telephony packages
PRODUCT_PACKAGES += \
messaging \
CellBroadcastReceiver \
Stk \
telephony-ext
PRODUCT_BOOT_JARS += \
telephony-ext
# RCS
PRODUCT_PACKAGES += \
rcscommon \
rcscommon.xml \
rcsservice \
rcs_service_aidl \
rcs_service_aidl.xml \
rcs_service_aidl_static \
rcs_service_api \
rcs_service_api.xml
# Snapdragon packages
PRODUCT_PACKAGES += \
MusicFX \
SnapdragonGallery \
SnapdragonMusic
# Include explicitly to work around GMS issues
PRODUCT_PACKAGES += \
libprotobuf-cpp-full \
librsjni
# OMS
PRODUCT_PACKAGES += \
ThemeInterfacer
# Mms depends on SoundRecorder for recorded audio messages
PRODUCT_PACKAGES += \
SoundRecorder
# Custom off-mode charger
ifneq ($(WITH_CUSTOM_CHARGER),false)
PRODUCT_PACKAGES += \
charger_res_images \
custom_charger_res_images \
font_log.png \
libhealthd.custom
endif
# World APN list
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml
# Selective SPN list for operator number who has the problem.
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
PRODUCT_PACKAGE_OVERLAYS += \
vendor/custom/overlay/common
# Proprietary latinime libs needed for Keyboard swyping
ifneq ($(filter arm64,$(TARGET_ARCH)),)
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
else
PRODUCT_COPY_FILES += \
vendor/custom/prebuilt/common/lib64/libjni_latinime.so:system/lib64/libjni_latinime.so
endif
# by default, do not update the recovery with system updates
PRODUCT_PROPERTY_OVERRIDES += persist.sys.recovery_update=false
ifneq ($(TARGET_BUILD_VARIANT),eng)
# Enable ADB authentication
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.adb.secure=1
endif
$(call inherit-product-if-exists, vendor/extra/product.mk)