-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathcommon.mk
More file actions
169 lines (140 loc) · 5.08 KB
/
common.mk
File metadata and controls
169 lines (140 loc) · 5.08 KB
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
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
PRODUCT_PROPERTY_OVERRIDES += \
ro.build.selinux=1
# Thank you, please drive thru!
PRODUCT_PROPERTY_OVERRIDES += persist.sys.dun.override=0
TARGET_BOOTANIMATION_480P := $(shell \
if [ $(TARGET_SCREEN_WIDTH) -le 720 ]; then \
echo 'true'; \
else \
echo ''; \
fi )
# Bootanimation
ifeq ($(TARGET_BOOTANIMATION_480P),true)
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/media/bootanimation-480p.zip:system/media/bootanimation.zip
else
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/media/bootanimation.zip:system/media/bootanimation.zip
endif
# Backup Tool
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/bin/backuptool.sh:install/bin/backuptool.sh \
vendor/aosp/prebuilt/common/bin/backuptool.functions:install/bin/backuptool.functions \
vendor/aosp/prebuilt/common/bin/blacklist:system/addon.d/blacklist \
vendor/aosp/prebuilt/common/bin/whitelist:system/addon.d/whitelist \
vendor/aosp/prebuilt/common/addon.d/71-layers.sh:system/addon.d/71-layers.sh
# Include LatinIME dictionaries
PRODUCT_PACKAGE_OVERLAYS += vendor/aosp/overlay/dictionaries
# init.d support
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/bin/sysinit:system/bin/sysinit \
vendor/aosp/prebuilt/common/etc/init.d/00banner:system/etc/init.d/00banner \
vendor/aosp/prebuilt/common/etc/init.d/90userinit:system/etc/init.d/90userinit
# Init file
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/etc/init.local.rc:root/init.aosp.rc
# Bring in camera effects
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/media/LMprec_508.emd:system/media/LMprec_508.emd \
vendor/aosp/prebuilt/common/media/PFFprec_600.emd:system/media/PFFprec_600.emd
# SuperSU
ifeq ($(BOARD_VENDOR),sony)
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/etc/UPDATE-SuperSU-2.52.zip:system/addon.d/UPDATE-SuperSU.zip \
vendor/aosp/prebuilt/common/etc/init.d/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon
else
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/etc/UPDATE-SuperSU.zip:system/addon.d/UPDATE-SuperSU.zip \
vendor/aosp/prebuilt/common/etc/init.d/99SuperSUDaemon:system/etc/init.d/99SuperSUDaemon
endif
# Substratum
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/app/Substratum/Substratum.apk:system/app/Substratum/Substratum.apk
# 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 \
MusicFX \
LatinIME \
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 \
masquerade \
Terminal
# Stagefright FFMPEG plugin
PRODUCT_PACKAGES += \
libffmpeg_extractor \
libffmpeg_omx \
media_codecs_ffmpeg.xml
PRODUCT_PROPERTY_OVERRIDES += \
media.sf.omx-plugin=libffmpeg_omx.so \
media.sf.extractor-plugin=libffmpeg_extractor.so
# Telephony packages
PRODUCT_PACKAGES += \
CellBroadcastReceiver \
Stk
# Mms depends on SoundRecorder for recorded audio messages
PRODUCT_PACKAGES += \
SoundRecorder
# World APN list
PRODUCT_COPY_FILES += \
vendor/aosp/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/aosp/prebuilt/common/etc/selective-spn-conf.xml:system/etc/selective-spn-conf.xml
# Overlays & Include LatinIME dictionaries
PRODUCT_PACKAGE_OVERLAYS += \
vendor/aosp/overlay/common \
vendor/aosp/overlay/dictionaries
# Proprietary latinime libs needed for Keyboard swyping
ifneq ($(filter arm64,$(TARGET_ARCH)),)
PRODUCT_COPY_FILES += \
vendor/aosp/prebuilt/common/lib/libjni_latinime.so:system/lib/libjni_latinime.so
else
PRODUCT_COPY_FILES += \
vendor/aosp/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
ADDITIONAL_DEFAULT_PROPERTIES += ro.adb.secure=1
endif
$(call inherit-product-if-exists, vendor/extra/product.mk)
PRODUCT_PACKAGES += \
messaging \
LiveWallpapers \
LiveWallpapersPicker